diff options
author | Nikolay Amiantov <ab@fmap.me> | 2022-01-26 23:29:01 +0900 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2022-01-28 11:17:52 +0300 |
commit | 5aa4697af41090b89a84209043e5193a681df616 (patch) | |
tree | 63f816c0582c0f25e382a262ed0d8f5975144a48 /pkgs/os-specific/linux/dpdk | |
parent | 2c0b4b8510da45085a9f6b332208a3fc0f66e001 (diff) | |
download | nixpkgs-5aa4697af41090b89a84209043e5193a681df616.tar nixpkgs-5aa4697af41090b89a84209043e5193a681df616.tar.gz nixpkgs-5aa4697af41090b89a84209043e5193a681df616.tar.bz2 nixpkgs-5aa4697af41090b89a84209043e5193a681df616.tar.lz nixpkgs-5aa4697af41090b89a84209043e5193a681df616.tar.xz nixpkgs-5aa4697af41090b89a84209043e5193a681df616.tar.zst nixpkgs-5aa4697af41090b89a84209043e5193a681df616.zip |
dpdk: split examples, wrap dpdk-devbind
Diffstat (limited to 'pkgs/os-specific/linux/dpdk')
-rw-r--r-- | pkgs/os-specific/linux/dpdk/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/dpdk/default.nix b/pkgs/os-specific/linux/dpdk/default.nix index 0c44945620c..1e4f50e42df 100644 --- a/pkgs/os-specific/linux/dpdk/default.nix +++ b/pkgs/os-specific/linux/dpdk/default.nix @@ -1,9 +1,9 @@ { stdenv, lib , kernel , fetchurl -, pkg-config, meson, ninja +, pkg-config, meson, ninja, makeWrapper , libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap, rdma-core -, doxygen, python3 +, doxygen, python3, pciutils , withExamples ? [] , shared ? false }: @@ -20,6 +20,7 @@ in stdenv.mkDerivation rec { }; nativeBuildInputs = [ + makeWrapper doxygen meson ninja @@ -71,11 +72,18 @@ in stdenv.mkDerivation rec { # Remove Sphinx cache files. Not only are they not useful, but they also # contain store paths causing spurious dependencies. rm -rf $out/share/doc/dpdk/html/.doctrees + + wrapProgram $out/bin/dpdk-devbind.py \ + --prefix PATH : "${lib.makeBinPath [ pciutils ]}" '' + lib.optionalString (withExamples != []) '' - find examples -type f -executable -exec install {} $out/bin \; + mkdir -p $examples/bin + find examples -type f -executable -exec install {} $examples/bin \; ''; - outputs = [ "out" "doc" ] ++ lib.optional mod "kmod"; + outputs = + [ "out" "doc" ] + ++ lib.optional mod "kmod" + ++ lib.optional (withExamples != []) "examples"; meta = with lib; { description = "Set of libraries and drivers for fast packet processing"; |