mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #44881 from sh4r3m4n/fix-checksec
checksec: switch to binutils-unwrapped
This commit is contained in:
commit
f9a7de9668
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, file, findutils, binutils, glibc, coreutils, sysctl }:
|
{ stdenv, fetchurl, file, findutils, binutils-unwrapped, glibc, coreutils, sysctl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "checksec-${version}";
|
name = "checksec-${version}";
|
||||||
@ -26,9 +26,9 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace $out/bin/checksec --replace find ${findutils}/bin/find
|
substituteInPlace $out/bin/checksec --replace find ${findutils}/bin/find
|
||||||
substituteInPlace $out/bin/checksec --replace "file $" "${file}/bin/file $"
|
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 "xargs file" "xargs ${file}/bin/file"
|
||||||
substituteInPlace $out/bin/checksec --replace " readelf -" " ${binutils.out}/bin/readelf -"
|
substituteInPlace $out/bin/checksec --replace " readelf -" " ${binutils-unwrapped}/bin/readelf -"
|
||||||
substituteInPlace $out/bin/checksec --replace "(readelf -" "(${binutils.out}/bin/readelf -"
|
substituteInPlace $out/bin/checksec --replace "(readelf -" "(${binutils-unwrapped}/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-unwrapped}/bin/readelf"
|
||||||
substituteInPlace $out/bin/checksec --replace "/sbin/sysctl -" "${sysctl}/bin/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 -"
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user