Skip to content

Commit

Permalink
pktgen: fix runtime paths
Browse files Browse the repository at this point in the history
The Lua and lscpu path substitution got accidentally removed in
with commit 605b809

(cherry picked from commit 1bead81)
  • Loading branch information
abuibrahim authored and joachifm committed Jan 2, 2017
1 parent 65ce9ce commit cdfd269
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/os-specific/linux/pktgen/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit cdfd269

Please sign in to comment.