Merge pull request #197590 from helsinki-systems/upd/nvme-cli
nvme-cli: 1.16 -> 2.1.2
This commit is contained in:
commit
a11f8032aa
1 changed files with 23 additions and 9 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue