tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / ps / psmisc / package.nix
blobd96dfa9456b7e63b4fd89ad67e078a49abff3d51
2   lib,
3   stdenv,
4   fetchFromGitLab,
5   autoconf,
6   automake,
7   gettext,
8   ncurses,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "psmisc";
13   version = "23.7";
15   src = fetchFromGitLab {
16     owner = pname;
17     repo = pname;
18     rev = "v${version}";
19     hash = "sha256-49YpdIh0DxLHfxos4sw1HUkV0XQBqmm4M9b0T4eN2xI=";
20   };
22   nativeBuildInputs = [
23     autoconf
24     automake
25     gettext
26   ];
27   buildInputs = [ ncurses ];
29   preConfigure =
30     lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
31       # Goes past the rpl_malloc linking failure
32       export ac_cv_func_malloc_0_nonnull=yes
33       export ac_cv_func_realloc_0_nonnull=yes
34     ''
35     + ''
36       echo $version > .tarball-version
37       ./autogen.sh
38     '';
40   meta = with lib; {
41     homepage = "https://gitlab.com/psmisc/psmisc";
42     description = "Set of small useful utilities that use the proc filesystem (such as fuser, killall and pstree)";
43     platforms = platforms.linux;
44     license = licenses.gpl2Plus;
45     maintainers = with maintainers; [ ryantm ];
46   };