mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pktgen: 22.07.1 -> 23.10.0
This commit is contained in:
parent
aa4ecea0ee
commit
3316e3b546
@ -18,23 +18,15 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pktgen";
|
||||
version = "22.07.1";
|
||||
version = "23.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pktgen";
|
||||
repo = "Pktgen-DPDK";
|
||||
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 ];
|
||||
|
||||
buildInputs = [
|
||||
@ -47,9 +39,7 @@ stdenv.mkDerivation rec {
|
||||
GUI = lib.optionalString withGtk "true";
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
# Needed with GCC 12
|
||||
"-Wno-error=address"
|
||||
"-Wno-error=use-after-free"
|
||||
"-Wno-error=sign-compare"
|
||||
];
|
||||
|
||||
# requires symbols from this file
|
||||
|
Loading…
Reference in New Issue
Block a user