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:
Artturin 2023-09-01 06:25:51 +03:00
parent 3d68e13d71
commit 620f9f11f8

View file

@ -27,9 +27,12 @@ stdenv.mkDerivation rec {
}) })
]; ];
preConfigure = '' postPatch = ''
# Don't try to create /var/lib/arpd: # Don't try to create /var/lib/arpd:
sed -e '/ARPDDIR/d' -i Makefile sed -e '/ARPDDIR/d' -i Makefile
substituteInPlace Makefile \
--replace "CC := gcc" "CC ?= $CC"
''; '';
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];