From 7e472d6dc2b3bdc6be73038fba513e7641e82bfd Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 9 Dec 2021 09:28:18 +0100 Subject: [PATCH] dpdk: move rdma-core dependency to propagated This allows for static building against DPDK. I would rather have all nixpkgs users link properly against the shared libraries, but fixing odp-dpdk looks like it will require patching their autoconf scripts. --- pkgs/os-specific/linux/dpdk/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/dpdk/default.nix b/pkgs/os-specific/linux/dpdk/default.nix index f5d3ca5eaec0..7592be483f53 100644 --- a/pkgs/os-specific/linux/dpdk/default.nix +++ b/pkgs/os-specific/linux/dpdk/default.nix @@ -36,10 +36,15 @@ in stdenv.mkDerivation rec { libpcap numactl openssl.dev - rdma-core zlib ] ++ lib.optionals mod kernel.moduleBuildDependencies; + # Propagated to support current DPDK users in nixpkgs which statically link + # with the framework (e.g. odp-dpdk). + propagatedBuildInputs = [ + rdma-core + ]; + postPatch = '' patchShebangs config/arm buildtools '';