This commit is contained in:
mjallen18
2026-03-10 09:56:06 -05:00
parent 9daf43e3f3
commit 75c64f2499
9 changed files with 246 additions and 21 deletions

View File

@@ -54,6 +54,16 @@ in
};
}).overrideAttrs
(prevAttrs: {
# Apply patches with --forward (skip already-merged/reversed hunks) and
# --fuzz=3 (tolerate minor context mismatches due to kernel version skew).
patchPhase = ''
runHook prePatch
for p in $patches; do
echo "applying patch $p"
patch -p1 --forward --fuzz=3 < "$p" || true
done
runHook postPatch
'';
postPatch = prevAttrs.postPatch + configfile.extraVerPatch;
# bypasses https://github.com/NixOS/nixpkgs/issues/216529
passthru =