From 18981e240ba29604f5dbaafc6ca0d37c51bddc5a Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 25 Nov 2024 23:58:15 +0000 Subject: [PATCH] nixos/nvme: Update to libnvme v1.11.1 to fix LTS kernels --- nixos/modules/nvme/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/nvme/default.nix b/nixos/modules/nvme/default.nix index 2670fb7..77c03de 100644 --- a/nixos/modules/nvme/default.nix +++ b/nixos/modules/nvme/default.nix @@ -5,7 +5,15 @@ let cfg = config.my.nvme; nvme-cli = pkgs.nvme-cli.override { - libnvme = pkgs.libnvme.overrideAttrs (o: { + libnvme = pkgs.libnvme.overrideAttrs (o: rec { + # TODO: Remove when 1.11.1 releases (see https://github.com/linux-nvme/libnvme/pull/914) + version = "1.11.1"; + src = pkgs.fetchFromGitHub { + owner = "linux-nvme"; + repo = "libnvme"; + rev = "v${version}"; + hash = "sha256-CEGr7PDOVRi210XvICH8iLYDKn8S9bGruBO4tycvsT8="; + }; patches = (if (o ? patches) then o.patches else [ ]) ++ [ ./libnvme-hostconf.patch ]; }); };