summary refs log tree commit diff
path: root/pkgs/os-specific/linux/procps-ng/default.nix
blob: 9ecc0c5bcb573c7b6bb2d5b0a4a302cd57dfbba9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, fetchurl, pkgconfig, ncurses, systemd }:

stdenv.mkDerivation rec {
  name = "procps-ng-3.3.10";

  src = fetchurl {
    url = "mirror://sourceforge/procps-ng/${name}.tar.xz";
    sha256 = "013z4rzy3p5m1zp6mmynpblv0c6zlcn91pw4k2vymz2djyc6ybm0";
  };

  buildInputs = [ pkgconfig ncurses systemd ];

  makeFlags = "usrbin_execdir=$(out)/bin";

  enableParallelBuilding = true;

  crossAttrs = {
    CC = stdenv.cross.config + "-gcc";
  };

  # Too red
  configureFlags = [
    "--disable-modern-top"
    "--enable-watch8bit"
    "--with-systemd"
    "--enable-skill"
    "--enable-oomem"
    "--enable-sigwinch"
  ];

  meta = with stdenv.lib; {
    homepage = http://sourceforge.net/projects/procps-ng/;
    description = "Utilities that give information about processes using the /proc filesystem";
    priority = 10; # less than coreutils, which also provides "kill" and "uptime"
    maintainers = with maintainers; [ wkennington ];
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}