stockholm/tv/5pkgs/haskell/default.nix

25 lines
661 B
Nix
Raw Normal View History

2018-11-30 08:41:32 +00:00
with import <stockholm/lib>;
let
overrides = self: super:
mapNixDir (path: self.callPackage path {}) [
<stockholm/krebs/5pkgs/haskell>
./.
];
in
self: super: {
haskell = super.haskell // {
packages = mapAttrs (name: value:
if hasAttr "override" value
2022-09-13 19:22:15 +00:00
then value.override (old: {
overrides =
composeExtensions (old.overrides or (_: _: { })) overrides;
})
2018-11-30 08:41:32 +00:00
else value
) super.haskell.packages;
};
2022-09-13 19:22:15 +00:00
haskellPackages = super.haskellPackages.override (old: {
overrides =
composeExtensions (old.overrides or (_: _: { })) overrides;
});
2018-11-30 08:41:32 +00:00
}