3
0
Fork 0
forked from mirrors/nixpkgs

pktgen: fix runtime paths

The Lua and lscpu path substitution got accidentally removed in
with commit 605b8095ca
This commit is contained in:
Ruslan Babayev 2017-01-01 15:37:59 -08:00
parent 2c288548b9
commit 1bead81275

View file

@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = [ "-march=core2" ];
postPatch = ''
substituteInPlace lib/lua/src/luaconf.h --replace /usr/local $out
substituteInPlace lib/common/lscpu.h --replace /usr/bin/lscpu ${utillinux}/bin/lscpu
'';
installPhase = ''
install -d $out/bin
install -m 0755 app/app/${RTE_TARGET}/app/pktgen $out/bin