mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user