blob: 7e9ee75218fa865c5a96d780c04ae10b1ba46786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
self: super:
with self.stockholm.lib;
let
overrides = self: super: mapNixDir (path: self.callPackage path {}) ./.;
in
{
haskell = super.haskell // {
packages = mapAttrs (name: value:
if hasAttr "override" value
then value.override (old: {
overrides = composeExtensions (old.overrides or (_: _: {})) overrides;
})
else value
) super.haskell.packages;
};
haskellPackages = super.haskellPackages.override (old: {
overrides = composeExtensions (old.overrides or (_: _: {})) overrides;
});
}
|