summary refs log tree commit diff
path: root/pkgs/os-specific/linux/forkstat
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2021-12-20 16:04:22 +0100
committerGitHub <noreply@github.com>2021-12-20 16:04:22 +0100
commite6a705413dc61807006a74b03e563c7ce91abb42 (patch)
tree8b71709c63aa0744416b45df4c6687741cb99aea /pkgs/os-specific/linux/forkstat
parent0f2042888dc840eb68e3be4f2e31f20ba2109202 (diff)
downloadnixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.tar
nixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.tar.gz
nixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.tar.bz2
nixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.tar.lz
nixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.tar.xz
nixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.tar.zst
nixpkgs-e6a705413dc61807006a74b03e563c7ce91abb42.zip
forkstat: 0.02.16 -> 0.02.17
Upstream has moved
(#151318)
Diffstat (limited to 'pkgs/os-specific/linux/forkstat')
-rw-r--r--pkgs/os-specific/linux/forkstat/default.nix27
1 files changed, 16 insertions, 11 deletions
diff --git a/pkgs/os-specific/linux/forkstat/default.nix b/pkgs/os-specific/linux/forkstat/default.nix
index 09c9c660285..1c3f3342e08 100644
--- a/pkgs/os-specific/linux/forkstat/default.nix
+++ b/pkgs/os-specific/linux/forkstat/default.nix
@@ -1,20 +1,25 @@
-{ stdenv, lib, fetchurl }:
+{ stdenv, lib, fetchFromGitHub }:
 
 stdenv.mkDerivation rec {
   pname = "forkstat";
-  version = "0.02.16";
-  src = fetchurl {
-    url = "https://kernel.ubuntu.com/~cking/tarballs/forkstat/forkstat-${version}.tar.xz";
-    sha256 = "1rrzvlws9725dy2jq5k4zfv669ngrb2klhla6wvir8nwh53jms4w";
+  version = "0.02.17";
+
+  src = fetchFromGitHub {
+    owner = "ColinIanKing";
+    repo = pname;
+    rev = "V${version}";
+    hash = "sha256-Rw1Xwst0+seksTLL+v3IUEojGjwCERwF89xkk70npUU=";
   };
-  installFlags = [ "DESTDIR=$(out)" ];
-  postInstall = ''
-    mv $out/usr/* $out
-    rm -r $out/usr
-  '';
+
+  installFlags = [
+    "BINDIR=${placeholder "out"}/bin"
+    "MANDIR=${placeholder "out"}/share/man/man8"
+    "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
+  ];
+
   meta = with lib; {
     description = "Process fork/exec/exit monitoring tool";
-    homepage = "https://kernel.ubuntu.com/~cking/forkstat/";
+    homepage = "https://github.com/ColinIanKing/forkstat";
     license = licenses.gpl2;
     platforms = platforms.linux;
     maintainers = with maintainers; [ womfoo ];