nixpkgs-suyu/pkgs/development/libraries/spdk/default.nix
Jörg Thalheim 8ab19de80d
Merge pull request #122588 from Mic92/dpdk
dpdk: 20.05 -> 21.02
2021-05-24 08:15:17 +01:00

52 lines
968 B
Nix

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