mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
treewide: cleanup procps uses
This commit is contained in:
parent
ce8ce600ae
commit
ef428ab202
|
@ -1,4 +1,4 @@
|
|||
{ mkDerivation, stdenv, lib, fetchFromGitHub, fetchpatch, procps ? null
|
||||
{ mkDerivation, stdenv, lib, fetchFromGitHub, fetchpatch, procps
|
||||
, qtbase, qtwebengine, qtwebkit
|
||||
, cmake
|
||||
, syncthing
|
||||
|
|
|
@ -35,8 +35,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
# perl is used for testing go vet
|
||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper ]
|
||||
++ optionals stdenv.isLinux [ procps ];
|
||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper procps ];
|
||||
buildInputs = [ cacert pcre ]
|
||||
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
||||
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
||||
|
|
|
@ -35,8 +35,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
# perl is used for testing go vet
|
||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper ]
|
||||
++ optionals stdenv.isLinux [ procps ];
|
||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper procps ];
|
||||
buildInputs = [ cacert pcre ]
|
||||
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
||||
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, targetPackages
|
||||
, fetchurl, fetchgit, fetchzip, file, python2, tzdata, procps
|
||||
, fetchurl, fetchgit, fetchzip, file, python2, tzdata, ps
|
||||
, llvm, jemalloc, ncurses, darwin, rustPlatform, git, cmake, curl
|
||||
, which, libffi, gdb
|
||||
, version
|
||||
|
@ -19,8 +19,6 @@ let
|
|||
inherit (stdenv.lib) optional optionalString;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
|
||||
procps = if stdenv.isDarwin then darwin.ps else args.procps;
|
||||
|
||||
llvmShared = llvm.override { enableSharedLibraries = true; };
|
||||
|
||||
target = builtins.replaceStrings [" "] [","] (builtins.toString targets);
|
||||
|
@ -127,7 +125,7 @@ stdenv.mkDerivation {
|
|||
|
||||
# ps is needed for one of the test cases
|
||||
nativeBuildInputs =
|
||||
[ file python2 procps rustPlatform.rust.rustc git cmake
|
||||
[ file python2 ps rustPlatform.rust.rustc git cmake
|
||||
which libffi
|
||||
]
|
||||
# Only needed for the debuginfo tests
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, file, findutils, binutils, glibc, procps, coreutils }:
|
||||
{ stdenv, fetchurl, file, findutils, binutils, glibc, procps, coreutils, sysctl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "checksec-${version}";
|
||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace $out/bin/checksec --replace " readelf -" " ${binutils.out}/bin/readelf -"
|
||||
substituteInPlace $out/bin/checksec --replace "(readelf -" "(${binutils.out}/bin/readelf -"
|
||||
substituteInPlace $out/bin/checksec --replace "command_exists readelf" "command_exists ${binutils.out}/bin/readelf"
|
||||
substituteInPlace $out/bin/checksec --replace "/sbin/sysctl -" "${procps}/sbin/sysctl -"
|
||||
substituteInPlace $out/bin/checksec --replace "/sbin/sysctl -" "${sysctl}/bin/sysctl -"
|
||||
substituteInPlace $out/bin/checksec --replace "/usr/bin/id -" "${coreutils}/bin/id -"
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{stdenv, fetchurl, openssl, nettools, iproute, procps}:
|
||||
{stdenv, fetchurl, openssl, nettools, iproute, sysctl}:
|
||||
|
||||
let baseName = "gogoclient";
|
||||
version = "1.2";
|
||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||
--replace "/sbin/ifconfig" "${nettools}/bin/ifconfig" \
|
||||
--replace "/sbin/route" "${nettools}/bin/route" \
|
||||
--replace "/sbin/ip" "${iproute}/sbin/ip" \
|
||||
--replace "/sbin/sysctl" "${procps}/sbin/sysctl"
|
||||
--replace "/sbin/sysctl" "${sysctl}/bin/sysctl"
|
||||
sed -i -e 's/^.*Exec \$route -A.*$/& metric 128/' $out/template/linux.sh
|
||||
'';
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1xvv2mnkfqa657w8y4q2zrchhindngdzij9fbalcg1gggz4zdwcm";
|
||||
};
|
||||
|
||||
buildInputs = [ zsh coreutils txt2tags ]
|
||||
++ optional stdenv.isLinux [ inetutils procps ];
|
||||
buildInputs = [ zsh coreutils txt2tags procps ]
|
||||
++ optional stdenv.isLinux [ inetutils ];
|
||||
|
||||
buildPhase = ''
|
||||
cd doc
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchurl, openconnect, intltool, pkgconfig, networkmanager, libsecret
|
||||
, withGnome ? true, gnome3, procps, kmod }:
|
||||
, withGnome ? true, gnome3, sysctl, kmod }:
|
||||
|
||||
let
|
||||
pname = "NetworkManager-openconnect";
|
||||
|
@ -24,7 +24,7 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
preConfigure = ''
|
||||
substituteInPlace "configure" \
|
||||
--replace "/sbin/sysctl" "${procps}/bin/sysctl"
|
||||
--replace "/sbin/sysctl" "${sysctl}/bin/sysctl"
|
||||
substituteInPlace "src/nm-openconnect-service.c" \
|
||||
--replace "/usr/sbin/openconnect" "${openconnect}/bin/openconnect" \
|
||||
--replace "/sbin/modprobe" "${kmod}/bin/modprobe"
|
||||
|
@ -42,4 +42,3 @@ in stdenv.mkDerivation rec {
|
|||
inherit (networkmanager.meta) maintainers platforms;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, intltool, pkgconfig, networkmanager, strongswanNM, procps
|
||||
{ stdenv, fetchurl, intltool, pkgconfig, networkmanager, strongswanNM, sysctl
|
||||
, gnome3, libgnome-keyring, libsecret }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
preConfigure = ''
|
||||
substituteInPlace "configure" \
|
||||
--replace "/sbin/sysctl" "${procps}/bin/sysctl"
|
||||
--replace "/sbin/sysctl" "${sysctl}/bin/sysctl"
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-charon=${strongswanNM}/libexec/ipsec/charon-nm" ];
|
||||
|
|
|
@ -14012,12 +14012,12 @@ with pkgs;
|
|||
|
||||
utillinuxCurses = utillinux;
|
||||
|
||||
utillinuxMinimal = appendToName "minimal" (utillinux.override {
|
||||
utillinuxMinimal = if stdenv.isLinux then appendToName "minimal" (utillinux.override {
|
||||
minimal = true;
|
||||
ncurses = null;
|
||||
perl = null;
|
||||
systemd = null;
|
||||
});
|
||||
}) else throw "utillinux is unsupported on non-Linux";
|
||||
|
||||
v4l_utils = qt5.callPackage ../os-specific/linux/v4l-utils { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue