iproute2: Dont hardcode gcc
Fix linux clang stdenv `nix build --impure --expr 'with import ./. { config = { replaceStdenv = ({ pkgs }: pkgs.clangStdenv); }; }; iproute2'`
This commit is contained in:
parent
3d68e13d71
commit
620f9f11f8
1 changed files with 4 additions and 1 deletions
|
@ -27,9 +27,12 @@ stdenv.mkDerivation rec {
|
|||
})
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
postPatch = ''
|
||||
# Don't try to create /var/lib/arpd:
|
||||
sed -e '/ARPDDIR/d' -i Makefile
|
||||
|
||||
substituteInPlace Makefile \
|
||||
--replace "CC := gcc" "CC ?= $CC"
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
|
Loading…
Reference in a new issue