diff options
author | Ruslan Babayev <ruslan@babayev.com> | 2017-01-01 15:37:59 -0800 |
---|---|---|
committer | Ruslan Babayev <ruslan@babayev.com> | 2017-01-01 15:44:21 -0800 |
commit | 1bead812759e5de28afdf11bcb7c1ca869cb6b68 (patch) | |
tree | 44146802c8e598e5d0667b5bc3f4ce2a03cd90fa /pkgs/os-specific/linux/pktgen | |
parent | 2c288548b93b657365c27a0132a43ba0080870cc (diff) | |
download | nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.tar nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.tar.gz nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.tar.bz2 nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.tar.lz nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.tar.xz nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.tar.zst nixlib-1bead812759e5de28afdf11bcb7c1ca869cb6b68.zip |
pktgen: fix runtime paths
The Lua and lscpu path substitution got accidentally removed in with commit 605b8095ca11a678af83364549d8fc72ba3f4219
Diffstat (limited to 'pkgs/os-specific/linux/pktgen')
-rw-r--r-- | pkgs/os-specific/linux/pktgen/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/pktgen/default.nix b/pkgs/os-specific/linux/pktgen/default.nix index 2aa4d26f913e..68237d70f519 100644 --- a/pkgs/os-specific/linux/pktgen/default.nix +++ b/pkgs/os-specific/linux/pktgen/default.nix @@ -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 |