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