diff options
author | Artturin <Artturin@artturin.com> | 2023-09-01 06:25:51 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-09-01 06:39:31 +0300 |
commit | 620f9f11f83de7fa68b346ff80adfc9914c50ce6 (patch) | |
tree | a395d674a5c38ea94ea5fb9f78debae1c4de88d6 /pkgs/os-specific/linux/iproute | |
parent | 3d68e13d7155bd25b65c02c298166cfb773ce4ea (diff) | |
download | nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.tar nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.tar.gz nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.tar.bz2 nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.tar.lz nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.tar.xz nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.tar.zst nixpkgs-620f9f11f83de7fa68b346ff80adfc9914c50ce6.zip |
iproute2: Dont hardcode gcc
Fix linux clang stdenv `nix build --impure --expr 'with import ./. { config = { replaceStdenv = ({ pkgs }: pkgs.clangStdenv); }; }; iproute2'`
Diffstat (limited to 'pkgs/os-specific/linux/iproute')
-rw-r--r-- | pkgs/os-specific/linux/iproute/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/iproute/default.nix b/pkgs/os-specific/linux/iproute/default.nix index 83ff3fd4cc3..60133dfd3dc 100644 --- a/pkgs/os-specific/linux/iproute/default.nix +++ b/pkgs/os-specific/linux/iproute/default.nix @@ -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" ]; |