From 1bead812759e5de28afdf11bcb7c1ca869cb6b68 Mon Sep 17 00:00:00 2001 From: Ruslan Babayev Date: Sun, 1 Jan 2017 15:37:59 -0800 Subject: [PATCH] pktgen: fix runtime paths The Lua and lscpu path substitution got accidentally removed in with commit 605b8095ca11a678af83364549d8fc72ba3f4219 --- pkgs/os-specific/linux/pktgen/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/pktgen/default.nix b/pkgs/os-specific/linux/pktgen/default.nix index 2aa4d26f913..68237d70f51 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