mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
checksec: switch to binutils-unwrapped
checksec needs the readelf command to work properly, which is contained in the binutils-unwrapped derivation but not in the normal binutils. Before this commit, this tool wasn't working due to that.
This commit is contained in:
parent
68b5f51d6f
commit
fb15f20845
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, file, findutils, binutils, glibc, coreutils, sysctl }:
|
||||
{ stdenv, fetchurl, file, findutils, binutils-unwrapped, glibc, coreutils, sysctl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "checksec-${version}";
|
||||
@ -26,9 +26,9 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace $out/bin/checksec --replace find ${findutils}/bin/find
|
||||
substituteInPlace $out/bin/checksec --replace "file $" "${file}/bin/file $"
|
||||
substituteInPlace $out/bin/checksec --replace "xargs file" "xargs ${file}/bin/file"
|
||||
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 " readelf -" " ${binutils-unwrapped}/bin/readelf -"
|
||||
substituteInPlace $out/bin/checksec --replace "(readelf -" "(${binutils-unwrapped}/bin/readelf -"
|
||||
substituteInPlace $out/bin/checksec --replace "command_exists readelf" "command_exists ${binutils-unwrapped}/bin/readelf"
|
||||
substituteInPlace $out/bin/checksec --replace "/sbin/sysctl -" "${sysctl}/bin/sysctl -"
|
||||
substituteInPlace $out/bin/checksec --replace "/usr/bin/id -" "${coreutils}/bin/id -"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user