Unverified Commit 0928e0db authored by maxine's avatar maxine Committed by GitHub
Browse files

Merge pull request #275436 from vifino/nvme-updates

libnvme: 1.6 -> 1.7.1; nvme-cli: 2.6 -> 2.7
parents f14a8d6e 17d6a386
Loading
Loading
Loading
Loading
+2 −21
Original line number Diff line number Diff line
@@ -11,14 +11,13 @@
, stdenv
, swig
, systemd
, fetchpatch
# ImportError: cannot import name 'mlog' from 'mesonbuild'
, withDocs ? stdenv.hostPlatform.canExecute stdenv.buildPlatform
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libnvme";
  version = "1.6";
  version = "1.7.1";

  outputs = [ "out" ] ++ lib.optionals withDocs [ "man" ];

@@ -26,27 +25,9 @@ stdenv.mkDerivation (finalAttrs: {
    owner = "linux-nvme";
    repo = "libnvme";
    rev = "v${finalAttrs.version}";
    hash = "sha256-7bvjsmt16/6RycSDKIECtJ4ES7NTaspU6IMpUw0sViA=";
    hash = "sha256-hCR/K8bPXj8HthayrnwwGfI+wxpUwcWkcx3S/8h+3m8=";
  };

  patches = [
    # included in next release
    (fetchpatch {
      url = "https://github.com/linux-nvme/libnvme/commit/ff742e792725c316ba6de0800188bf36751bd1d1.patch";
      hash = "sha256-IUjPUBmGQC4oAKFFlBrjonqD2YdyNPC9siK4t/t2slE=";
    })
    # included in next release
    (fetchpatch {
      url = "https://github.com/linux-nvme/libnvme/commit/a2b8e52e46cfd888ac5a48d8ce632bd70a5caa93.patch";
      hash = "sha256-AVSWraFriErfz7dA2CjU8+ehJtAmuLxBZyBALygmrf0=";
    })
    # included in next release
    (fetchpatch {
      url = "https://github.com/linux-nvme/libnvme/commit/68c6ffb11d40a427fc1fd70ac2ac97fd01952913.patch";
      hash = "sha256-dvc1sjgCFU31/LornvJ/aRVYtPOsewkas0jS+/AwFuU=";
    })
  ];

  postPatch = ''
    patchShebangs scripts
  '';
+2 −4
Original line number Diff line number Diff line
@@ -10,13 +10,13 @@

stdenv.mkDerivation rec {
  pname = "nvme-cli";
  version = "2.6";
  version = "2.7";

  src = fetchFromGitHub {
    owner = "linux-nvme";
    repo = "nvme-cli";
    rev = "v${version}";
    hash = "sha256-MFyBkwTNOBQdHWj7In1OquRIAsjsd4/DHYfUyFA9YDQ=";
    hash = "sha256-qijzXucNE+M8fOEtNaoQYX41HeJOMtg/cJFCUJyS6Ew=";
  };

  mesonFlags = [
@@ -33,8 +33,6 @@ stdenv.mkDerivation rec {
    libnvme
    json_c
    zlib
  ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform libhugetlbfs) [
    libhugetlbfs
  ];

  meta = with lib; {