diff options
Diffstat (limited to '3 resources/nix/packages/Apply custom patches.md')
-rw-r--r-- | 3 resources/nix/packages/Apply custom patches.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/3 resources/nix/packages/Apply custom patches.md b/3 resources/nix/packages/Apply custom patches.md new file mode 100644 index 0000000..370c53a --- /dev/null +++ b/3 resources/nix/packages/Apply custom patches.md @@ -0,0 +1,17 @@ +#nix #packages #overlay + +--- +We can apply patches to existing packages using [[Overlays]]: +```nix +final: prev { + nova = prev.nova.overrideAttrs (old: { + patches = (old.patches or []) ++ [ + prev.fetchpatch { + url = "https://github.com/owner/repo/commit/hash.patch"; + hash = "somehash"; + }) + ./relative.patch + ] + }) +} +``` |