iproute: patchshebangs to work on 'hostPlatform' (not build)

This commit is contained in:
Will Dietz 2018-02-13 13:55:43 -06:00
parent 767bddbd80
commit b0c4138a3b

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, lib, flex, bison, db, iptables, pkgconfig }: { fetchurl, stdenv, lib, flex, bash, bison, db, iptables, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "iproute2-${version}"; name = "iproute2-${version}";
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = '' postInstall = ''
PATH=${stdenv.shell}/bin:$PATH patchShebangs $out/sbin PATH=${bash}/bin:$PATH patchShebangs $out/sbin
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {