diff options
Diffstat (limited to '3 resources/nix/packages')
-rw-r--r-- | 3 resources/nix/packages/Apply custom patches.md | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/3 resources/nix/packages/Apply custom patches.md b/3 resources/nix/packages/Apply custom patches.md deleted file mode 100644 index 370c53a..0000000 --- a/3 resources/nix/packages/Apply custom patches.md +++ /dev/null @@ -1,17 +0,0 @@ -#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 - ] - }) -} -``` |