diff options
Diffstat (limited to 'pkgs/development/libraries/spdk')
-rw-r--r-- | pkgs/development/libraries/spdk/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/spdk/default.nix b/pkgs/development/libraries/spdk/default.nix new file mode 100644 index 00000000000..b712d426304 --- /dev/null +++ b/pkgs/development/libraries/spdk/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, python, cunit, dpdk, libaio, libuuid, numactl, openssl }: + +stdenv.mkDerivation rec { + name = "spdk-${version}"; + version = "18.04"; + + src = fetchFromGitHub { + owner = "spdk"; + repo = "spdk"; + rev = "v${version}"; + sha256 = "07i13jkf63h5ld9djksxl445v1mj6m5cbq4xydix9y5qcxwlss3n"; + }; + + nativeBuildInputs = [ python ]; + + buildInputs = [ cunit dpdk libaio libuuid numactl openssl ]; + + 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"; + homepage = http://www.spdk.io; + license = licenses.bsd3; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ orivej ]; + }; +} |