haskell overrides: admit old overrides
This commit is contained in:
parent
4005029bf6
commit
5de8b8530c
@ -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;
|
||||
});
|
||||
}
|
||||
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user