stockholm/tv/5pkgs/haskell/default.nix
2023-09-04 12:02:52 +02:00

29 lines
756 B
Nix

with import ./lib;
let
overrides = self: super:
mapNixDir (path: self.callPackage path {}) [
<stockholm/krebs/5pkgs/haskell>
./.
] // {
xmonad-tv = self.callPackage ./xmonad-tv {
pager = self.desktop-pager;
};
};
in
self: super: {
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;
});
}