From 620f9f11f83de7fa68b346ff80adfc9914c50ce6 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 1 Sep 2023 06:25:51 +0300 Subject: [PATCH] iproute2: Dont hardcode gcc Fix linux clang stdenv `nix build --impure --expr 'with import ./. { config = { replaceStdenv = ({ pkgs }: pkgs.clangStdenv); }; }; iproute2'` --- pkgs/os-specific/linux/iproute/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/iproute/default.nix b/pkgs/os-specific/linux/iproute/default.nix index 83ff3fd4cc3b..60133dfd3dc1 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" ];