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