blob: 370c53a09dfbe469a49213e5e8231489f42b330e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
]
})
}
```
|