diff options
author | Ruslan Babayev <ruslan@babayev.com> | 2016-06-09 19:45:46 -0700 |
---|---|---|
committer | Ruslan Babayev <ruslan@babayev.com> | 2016-06-15 22:17:03 -0700 |
commit | de67e77e3f9140c1c35d7775ec19ae6bb772b1b0 (patch) | |
tree | 1ed6650e6df63c9d3b93fd2de66f7aed030777bb /pkgs/os-specific/linux/odp-dpdk | |
parent | 7b21572b90fac73e0ed4950d3a894e2d00b42d19 (diff) | |
download | nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.tar nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.tar.gz nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.tar.bz2 nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.tar.lz nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.tar.xz nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.tar.zst nixpkgs-de67e77e3f9140c1c35d7775ec19ae6bb772b1b0.zip |
odp-dpdk: init at 1.8.0.0
Signed-off-by: Ruslan Babayev <ruslan@babayev.com>
Diffstat (limited to 'pkgs/os-specific/linux/odp-dpdk')
-rw-r--r-- | pkgs/os-specific/linux/odp-dpdk/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/odp-dpdk/default.nix b/pkgs/os-specific/linux/odp-dpdk/default.nix new file mode 100644 index 00000000000..85a6675ee90 --- /dev/null +++ b/pkgs/os-specific/linux/odp-dpdk/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchgit, autoreconfHook, openssl, libpcap, dpdk, bash }: + +stdenv.mkDerivation rec { + name = "odp-dpdk-${version}"; + version = "1.8.0.0"; + + src = fetchgit { + url = "https://git.linaro.org/lng/odp-dpdk.git"; + rev = "438a207a39bad213cdc03929452a8199caef5d8c"; + sha256 = "0k4g5zbirbfdcgqz0nbn9san66y178qnigyvrr2apj3apzjjy7zv"; + }; + + nativeBuildInputs = [ autoreconfHook bash ]; + buildInputs = [ stdenv openssl dpdk libpcap ]; + + RTE_SDK = "${dpdk}"; + RTE_TARGET = "x86_64-native-linuxapp-gcc"; + + patchPhase = '' + substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh + echo -n ${version} > .scmversion + ''; + + dontDisableStatic = true; + + configureFlags = [ + "--with-platform=linux-dpdk" + "--disable-shared" + "--disable-shared-dpdk" + "--with-sdk-install-path=${dpdk}/${RTE_TARGET}" + ]; + + meta = with stdenv.lib; { + description = "Open Data Plane optimized for DPDK"; + homepage = http://www.opendataplane.org; + license = licenses.bsd3; + platforms = [ "x86_64-linux" ]; + maintainers = [ maintainers.abuibrahim ]; + }; +} |