nvme-cli: 1.16 -> 2.1.2

This commit is contained in:
ajs124 2022-10-24 18:38:38 +02:00
parent 4a177de7f2
commit fc48756491

View file

@ -1,26 +1,40 @@
{ lib, stdenv, fetchFromGitHub, pkg-config
, meson
, ninja
, libuuid
, libnvme
, json_c
, zlib
, python3
}:
stdenv.mkDerivation rec {
pname = "nvme-cli";
version = "1.16";
version = "2.1.2";
src = fetchFromGitHub {
owner = "linux-nvme";
repo = "nvme-cli";
rev = "v${version}";
sha256 = "sha256-/wDQxsN1sji56zfcvqx02iciYnyxjIbL85bNaRwrHYw=";
hash = "sha256-ZjgysgWMmBlN+aalI5u2vQ58XrtEbJlDPCqUN6avv08=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libuuid ];
mesonFlags = [
"-Dversion-tag=${version}"
];
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
# To omit the hostnqn and hostid files that are impure and should be unique
# for each target host:
installTargets = [ "install-spec" ];
nativeBuildInputs = [
meson
ninja
pkg-config
python3.pkgs.nose2
];
buildInputs = [
libuuid
libnvme
json_c
zlib
];
meta = with lib; {
inherit (src.meta) homepage; # https://nvmexpress.org/