Merge remote-tracking branch 'ni/für-lassulus'

This commit is contained in:
lassulus 2022-09-13 21:26:47 +02:00
commit 44c4c2cbb4
2 changed files with 14 additions and 8 deletions

View File

@ -8,11 +8,13 @@ in
haskell = super.haskell // {
packages = mapAttrs (name: value:
if hasAttr "override" value
then value.override { inherit overrides; }
then value.override (old: {
overrides = composeExtensions (old.overrides or (_: _: {})) overrides;
})
else value
) super.haskell.packages;
};
haskellPackages = super.haskellPackages.override {
inherit overrides;
};
haskellPackages = super.haskellPackages.override (old: {
overrides = composeExtensions (old.overrides or (_: _: {})) overrides;
});
}

View File

@ -10,11 +10,15 @@ in
haskell = super.haskell // {
packages = mapAttrs (name: value:
if hasAttr "override" value
then value.override { inherit overrides; }
then value.override (old: {
overrides =
composeExtensions (old.overrides or (_: _: { })) overrides;
})
else value
) super.haskell.packages;
};
haskellPackages = super.haskellPackages.override {
inherit overrides;
};
haskellPackages = super.haskellPackages.override (old: {
overrides =
composeExtensions (old.overrides or (_: _: { })) overrides;
});
}