summary refs log tree commit diff
path: root/pkgs/os-specific/linux/checksec
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-03-26 18:42:46 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-03-27 18:17:37 -0500
commitef428ab202322b93930c3db0d66573c16f692c5f (patch)
treec340599d258ab4a0054556f473413681bbca9691 /pkgs/os-specific/linux/checksec
parentce8ce600ae41d3899e4a556fa9ff8a1a34374063 (diff)
downloadnixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.tar
nixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.tar.gz
nixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.tar.bz2
nixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.tar.lz
nixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.tar.xz
nixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.tar.zst
nixpkgs-ef428ab202322b93930c3db0d66573c16f692c5f.zip
treewide: cleanup procps uses
Diffstat (limited to 'pkgs/os-specific/linux/checksec')
-rw-r--r--pkgs/os-specific/linux/checksec/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/checksec/default.nix b/pkgs/os-specific/linux/checksec/default.nix
index 1a879ba3330..1ef18f703d3 100644
--- a/pkgs/os-specific/linux/checksec/default.nix
+++ b/pkgs/os-specific/linux/checksec/default.nix
@@ -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 -"
   '';