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

53 lines
968 B
Nix
Raw Normal View History

{ lib, stdenv
2020-06-30 14:08:22 +00:00
, fetchurl
, fetchFromGitHub
, fetchpatch
, ncurses
, python3
, cunit
, dpdk
, libaio
, libbsd
, libuuid
, numactl
, openssl
}:
2018-05-21 01:59:30 +00:00
2021-05-24 06:22:01 +00:00
stdenv.mkDerivation rec {
pname = "spdk";
2021-05-24 06:22:01 +00:00
version = "21.04";
2018-05-21 01:59:30 +00:00
src = fetchFromGitHub {
owner = "spdk";
repo = "spdk";
rev = "v${version}";
2021-05-24 06:22:01 +00:00
sha256 = "sha256-Xmmgojgtt1HwTqG/1ZOJVo1BcdAH0sheu40d73OJ68w=";
2018-05-21 01:59:30 +00:00
};
2020-06-30 14:08:22 +00:00
nativeBuildInputs = [
python3
];
2018-05-21 01:59:30 +00:00
2020-06-30 14:08:22 +00:00
buildInputs = [
cunit dpdk libaio libbsd libuuid numactl openssl ncurses
];
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.
2021-05-24 06:22:01 +00:00
# otherwise does not find strncpy when compiling
NIX_LDFLAGS = "-lbsd";
2018-05-21 01:59:30 +00:00
meta = with lib; {
2018-05-21 01:59:30 +00:00
description = "Set of libraries for fast user-mode storage";
homepage = "https://spdk.io/";
2018-05-21 01:59:30 +00:00
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ orivej ];
};
}