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

53 lines
968 B
Nix
Raw Normal View History

{ lib, stdenv
2020-06-30 07:08:22 -07:00
, fetchurl
, fetchFromGitHub
, fetchpatch
, ncurses
, python3
, cunit
, dpdk
, libaio
, libbsd
, libuuid
, numactl
, openssl
}:
2018-05-20 18:59:30 -07:00
stdenv.mkDerivation rec {
pname = "spdk";
version = "21.04";
2018-05-20 18:59:30 -07:00
src = fetchFromGitHub {
owner = "spdk";
repo = "spdk";
rev = "v${version}";
sha256 = "sha256-Xmmgojgtt1HwTqG/1ZOJVo1BcdAH0sheu40d73OJ68w=";
2018-05-20 18:59:30 -07:00
};
2020-06-30 07:08:22 -07:00
nativeBuildInputs = [
python3
];
2018-05-20 18:59:30 -07:00
2020-06-30 07:08:22 -07:00
buildInputs = [
cunit dpdk libaio libbsd libuuid numactl openssl ncurses
];
2018-05-20 18:59:30 -07:00
2018-05-20 20:39:54 -07:00
postPatch = ''
patchShebangs .
'';
2018-05-20 18:59:30 -07:00
configureFlags = [ "--with-dpdk=${dpdk}" ];
2019-10-30 04:34:47 -07:00
NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile.
# otherwise does not find strncpy when compiling
NIX_LDFLAGS = "-lbsd";
2018-05-20 18:59:30 -07:00
meta = with lib; {
2018-05-20 18:59:30 -07:00
description = "Set of libraries for fast user-mode storage";
homepage = "https://spdk.io/";
2018-05-20 18:59:30 -07:00
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ orivej ];
};
}