pktgen: 22.07.1 -> 23.10.0
This commit is contained in:
parent
aa4ecea0ee
commit
3316e3b546
|
@ -18,23 +18,15 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pktgen";
|
pname = "pktgen";
|
||||||
version = "22.07.1";
|
version = "23.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pktgen";
|
owner = "pktgen";
|
||||||
repo = "Pktgen-DPDK";
|
repo = "Pktgen-DPDK";
|
||||||
rev = "pktgen-${version}";
|
rev = "pktgen-${version}";
|
||||||
sha256 = "sha256-wBLGwVdn3ymUTVv7J/kbQYz4WNIgV246PHg51+FStUo=";
|
sha256 = "sha256-eujVEU+XkxF1kIGQJoBW3oXXNSqBEzx6mwR2XYoHinM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
# Ealier DPDK deprecated some macros, which were finally removed in >= 22.11
|
|
||||||
url = "https://github.com/pktgen/Pktgen-DPDK/commit/089ef94ac04629f7380f5e618443bcacb2cef5ab.patch";
|
|
||||||
sha256 = "sha256-ITU/dIfu7QPpdIVYuCuDhDG9rVF+n8i1YYn9bFmQUME=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja pkg-config ];
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -47,9 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
GUI = lib.optionalString withGtk "true";
|
GUI = lib.optionalString withGtk "true";
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString [
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
# Needed with GCC 12
|
"-Wno-error=sign-compare"
|
||||||
"-Wno-error=address"
|
|
||||||
"-Wno-error=use-after-free"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# requires symbols from this file
|
# requires symbols from this file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user