git.iko.soy/typeable/nixpkgs
on master help sign in
psmisc: get src from GitLab
commite1a851811b2ac0d6273b285059d1481bcb4168ec authorRyan Mulligan <ryan@ryantm.com> dateWed 26 Sep 2018, 06:47 (8 years ago) parentf456291
1 file changed+21−10
pkgs/os-specific/linux/psmisc/default.nix+21−10
pkgs/os-specific/linux/psmisc/default.nix+21−10
@@ -1,19 +1,30 @@
1−{stdenv, fetchurl, ncurses}:
1+{stdenv, fetchFromGitLab, autoconf, automake, gettext, ncurses}:
22
33stdenv.mkDerivation rec {
4− name = "psmisc-23.2";
4+ pname = "psmisc";
5+ version = "23.2";
6+ name = "${pname}-${version}";
57
6− src = fetchurl {
7− url = "mirror://sourceforge/psmisc/${name}.tar.xz";
8− sha256 = "0s1kjhrik0wzqbm7hv4gkhywhjrwhp9ajw0ad05fwharikk6ah49";
8+ src = fetchFromGitLab {
9+ owner = pname;
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "0d90wmibxpkl0d7sdibvvkwpyxyg6m6ksh5gwrjh15vf1swvd5i1";
913 };
1014
11− buildInputs = [ncurses];
15+ nativeBuildInputs = [ autoconf automake gettext ];
16+ buildInputs = [ ncurses ];
1217
13− meta = {
14− homepage = http://psmisc.sourceforge.net/;
18+ preConfigure = ''
19+ echo $version > .tarball-version
20+ ./autogen.sh
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ homepage = https://gitlab.com/psmisc/psmisc;
1525 description = "A set of small useful utilities that use the proc filesystem (such as fuser, killall and pstree)";
16− platforms = stdenv.lib.platforms.linux;
17− license = stdenv.lib.licenses.gpl2Plus;
26+ platforms = platforms.linux;
27+ license = licenses.gpl2Plus;
28+ maintainers = with maintainers; [ ryantm ];
1829 };
1930}