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