tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
procps: clarify compatibility
Matthew Bauer
7 years ago
b802570f
8ab5cc32
+10
-4
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
procps-ng
default.nix
+10
-4
pkgs/os-specific/linux/procps-ng/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, ncurses, pkgconfig }:
1
1
+
{ lib, stdenv, fetchurl, ncurses, pkgconfig
2
2
+
3
3
+
# procps is mostly Linux-only. Most commands require a running Linux
4
4
+
# system (or very similar like that found in Cygwin). The one
5
5
+
# exception is ‘watch’ which is portable enough to run on pretty much
6
6
+
# any UNIX-compatible system.
7
7
+
, watchOnly ? !(stdenv.isLinux || stdenv.isCygwin) }:
2
8
3
9
stdenv.mkDerivation rec {
4
10
name = "procps-${version}";
···
14
20
nativeBuildInputs = [ pkgconfig ];
15
21
16
22
makeFlags = [ "usrbin_execdir=$(out)/bin" ]
17
17
-
++ lib.optionals stdenv.isDarwin [ "watch" "PKG_LDFLAGS="];
23
23
+
++ lib.optionals watchOnly [ "watch" "PKG_LDFLAGS="];
18
24
19
25
enableParallelBuilding = true;
20
26
···
24
30
[ "ac_cv_func_malloc_0_nonnull=yes"
25
31
"ac_cv_func_realloc_0_nonnull=yes" ];
26
32
27
27
-
installPhase = if stdenv.isDarwin then ''
33
33
+
installPhase = if watchOnly then ''
28
34
install -m 0755 -D watch $out/bin/watch
29
35
install -m 0644 -D watch.1 $out/share/man/man1/watch.1
30
36
'' else null;
···
34
40
description = "Utilities that give information about processes using the /proc filesystem";
35
41
priority = 10; # less than coreutils, which also provides "kill" and "uptime"
36
42
license = lib.licenses.gpl2;
37
37
-
platforms = lib.platforms.linux ++ lib.platforms.cygwin ++ lib.platforms.darwin;
43
43
+
platforms = lib.platforms.unix;
38
44
maintainers = [ lib.maintainers.typetetris ];
39
45
};
40
46
}