overlays/patches: factor out adding patches
This commit is contained in:
parent
b54cca8634
commit
7bc64d9672
1 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
|||
final: prev: {
|
||||
coreutils-doge = prev.coreutils.overrideAttrs (old: {
|
||||
patches = [ ./coreutils.patch ];
|
||||
final: prev:
|
||||
|
||||
let
|
||||
addPatches = package: patches: package.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ patches;
|
||||
});
|
||||
in
|
||||
{
|
||||
coreutils-doge = addPatches prev.coreutils [ ./coreutils.patch ];
|
||||
|
||||
# nitter = prev.nitter.overrideAttrs (old: {
|
||||
# patches = (old.patches or [ ]) ++ [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue