nixpkgs/pkgs/by-name/sp/spdk/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-06-30 14:08:22 +00:00
, fetchFromGitHub
, ncurses
, python3
, cunit
, dpdk
2024-03-22 09:26:13 +00:00
, fuse3
2020-06-30 14:08:22 +00:00
, libaio
, libbsd
, libuuid
, numactl
, openssl
2023-10-24 11:58:22 +00:00
, pkg-config
, zlib
, zstd
2023-10-24 11:58:22 +00:00
, libpcap
, libnl
, elfutils
2023-10-24 11:58:22 +00:00
, jansson
, ensureNewerSourcesForZipFilesHook
2020-06-30 14:08:22 +00:00
}:
2018-05-21 01:59:30 +00:00
2023-10-24 11:58:22 +00:00
stdenv.mkDerivation rec {
pname = "spdk";
2023-10-24 11:58:22 +00:00
2024-10-03 21:27:16 +00:00
version = "24.09";
2018-05-21 01:59:30 +00:00
src = fetchFromGitHub {
owner = "spdk";
repo = "spdk";
rev = "v${version}";
2024-10-03 21:27:16 +00:00
hash = "sha256-27mbIycenOk51PLQrAfU1cZcjiWddNtxoyC6Q9wxqFg=";
2023-10-24 11:58:22 +00:00
fetchSubmodules = true;
2018-05-21 01:59:30 +00:00
};
2020-06-30 14:08:22 +00:00
nativeBuildInputs = [
python3
2024-03-22 09:26:13 +00:00
python3.pkgs.pip
2023-10-24 11:58:22 +00:00
python3.pkgs.setuptools
2024-03-22 09:26:13 +00:00
python3.pkgs.wheel
python3.pkgs.wrapPython
2023-10-24 11:58:22 +00:00
pkg-config
ensureNewerSourcesForZipFilesHook
2020-06-30 14:08:22 +00:00
];
2018-05-21 01:59:30 +00:00
2020-06-30 14:08:22 +00:00
buildInputs = [
2023-10-24 11:58:22 +00:00
cunit
dpdk
2024-03-22 09:26:13 +00:00
fuse3
2023-10-24 11:58:22 +00:00
jansson
libaio
libbsd
elfutils
2023-10-24 11:58:22 +00:00
libuuid
libpcap
libnl
numactl
openssl
ncurses
zlib
zstd
2023-10-24 11:58:22 +00:00
];
2024-03-22 09:26:13 +00:00
propagatedBuildInputs = [
python3.pkgs.configshell
2020-06-30 14:08:22 +00:00
];
2018-05-21 01:59:30 +00:00
2018-05-21 03:39:54 +00:00
postPatch = ''
patchShebangs .
'';
2021-12-01 09:12:37 +00:00
enableParallelBuilding = true;
2023-10-24 11:58:22 +00:00
configureFlags = [
"--with-dpdk=${dpdk}"
];
2018-05-21 01:59:30 +00:00
postCheck = ''
python3 -m spdk
'';
2024-03-22 09:26:13 +00:00
postFixup = ''
wrapPythonPrograms
'';
env.NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile.
2021-05-24 06:22:01 +00:00
# otherwise does not find strncpy when compiling
2023-10-24 11:58:22 +00:00
env.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 ];
};
}