nixpkgs/pkgs/development/libraries/spdk/default.nix

38 lines
906 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, python, cunit, dpdk, libaio, libbsd, libuuid, numactl, openssl }:
2018-05-21 04:59:30 +03:00
stdenv.mkDerivation rec {
pname = "spdk";
2020-02-06 18:28:05 +03:00
version = "20.01";
2018-05-21 04:59:30 +03:00
src = fetchFromGitHub {
owner = "spdk";
repo = "spdk";
rev = "v${version}";
2020-02-06 18:28:05 +03:00
sha256 = "13pbl46bfzc3z10ydr1crimklyj7f0s73873bjknglw474gm52h8";
2018-05-21 04:59:30 +03:00
};
patches = [ ./spdk-dpdk-meson.patch ];
2018-05-21 04:59:30 +03:00
nativeBuildInputs = [ python ];
buildInputs = [ cunit dpdk libaio libbsd libuuid numactl openssl ];
2018-05-21 04:59:30 +03:00
2018-05-21 06:39:54 +03:00
postPatch = ''
patchShebangs .
'';
2018-05-21 04:59:30 +03:00
configureFlags = [ "--with-dpdk=${dpdk}" ];
2019-10-30 14:34:47 +03:00
NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile.
2018-05-21 04:59:30 +03:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Set of libraries for fast user-mode storage";
homepage = "https://spdk.io/";
2018-05-21 04:59:30 +03:00
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ orivej ];
};
}