summary refs log tree commit diff
path: root/pkgs/os-specific/linux/psmisc
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2018-09-26 06:47:45 -0700
committerRyan Mulligan <ryan@ryantm.com>2018-09-26 19:12:53 -0700
commite1a851811b2ac0d6273b285059d1481bcb4168ec (patch)
tree2562d9d869614a58b5db08ba2ee76ef0d16a4ca0 /pkgs/os-specific/linux/psmisc
parentf45629107a16badf96c881184dbe83d68bbd9913 (diff)
downloadnixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.tar
nixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.tar.gz
nixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.tar.bz2
nixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.tar.lz
nixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.tar.xz
nixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.tar.zst
nixpkgs-e1a851811b2ac0d6273b285059d1481bcb4168ec.zip
psmisc: get src from GitLab
Diffstat (limited to 'pkgs/os-specific/linux/psmisc')
-rw-r--r--pkgs/os-specific/linux/psmisc/default.nix31
1 files changed, 21 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/psmisc/default.nix b/pkgs/os-specific/linux/psmisc/default.nix
index c7b71d4e501..8b3906dedb1 100644
--- a/pkgs/os-specific/linux/psmisc/default.nix
+++ b/pkgs/os-specific/linux/psmisc/default.nix
@@ -1,19 +1,30 @@
-{stdenv, fetchurl, ncurses}:
+{stdenv, fetchFromGitLab, autoconf, automake, gettext, ncurses}:
 
 stdenv.mkDerivation rec {
-  name = "psmisc-23.2";
+  pname = "psmisc";
+  version = "23.2";
+  name = "${pname}-${version}";
 
-  src = fetchurl {
-    url = "mirror://sourceforge/psmisc/${name}.tar.xz";
-    sha256 = "0s1kjhrik0wzqbm7hv4gkhywhjrwhp9ajw0ad05fwharikk6ah49";
+  src = fetchFromGitLab {
+    owner = pname;
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0d90wmibxpkl0d7sdibvvkwpyxyg6m6ksh5gwrjh15vf1swvd5i1";
   };
 
-  buildInputs = [ncurses];
+  nativeBuildInputs = [ autoconf automake gettext ];
+  buildInputs = [ ncurses ];
 
-  meta = {
-    homepage = http://psmisc.sourceforge.net/;
+  preConfigure = ''
+    echo $version > .tarball-version
+    ./autogen.sh
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://gitlab.com/psmisc/psmisc;
     description = "A set of small useful utilities that use the proc filesystem (such as fuser, killall and pstree)";
-    platforms = stdenv.lib.platforms.linux;
-    license = stdenv.lib.licenses.gpl2Plus;
+    platforms = platforms.linux;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ ryantm ];
   };
 }