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