Commit 620f9f11 authored by Artturin's avatar Artturin
Browse files

iproute2: Dont hardcode gcc

Fix linux clang stdenv

`nix build --impure --expr 'with import ./. { config = { replaceStdenv = ({ pkgs }: pkgs.clangStdenv); }; }; iproute2'`
parent 3d68e13d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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" ];