3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #197590 from helsinki-systems/upd/nvme-cli

nvme-cli: 1.16 -> 2.1.2
This commit is contained in:
Jörg Thalheim 2022-10-25 14:41:25 +02:00 committed by GitHub
commit a11f8032aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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/