procps: clarify compatibility

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