linuxPackages.gasket: fix build with kernel >= 7.1

Linux 7.1 removed zap_vma_ptes(); pull in the fix from gasket-dkms that
switches to zap_special_vma_range() on 7.1+.

Fixes #535359

Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
Kyle Hendricks
2026-10-27 07:21:25 -04:00
parent 8d06f2311f
commit 1615951ca8

View File

@@ -33,6 +33,13 @@ stdenv.mkDerivation {
url = "https://github.com/google/gasket-driver/commit/6fbf8f8f8bcbc0ac9c9bef7a56f495a2c9872652.patch";
hash = "sha256-roCo0/ETWuDVtZfbpFbrmy/icNI12A/ozOGQNLTtBUs=";
})
(fetchpatch2 {
# https://github.com/NixOS/nixpkgs/issues/535359
# zap_vma_ptes() was replaced by zap_special_vma_range() in Linux 7.1
name = "linux-7.1-compat.patch";
url = "https://github.com/KyleGospo/gasket-dkms/commit/56597d14586ceebe479d43d71a462710bb4bd1ba.patch";
hash = "sha256-DlZrkcMFJgK98GKj9xy9j4QDWq9S46oPOHkWsBXswfQ=";
})
];
postPatch = ''