tv pkgs haskell: init

This commit is contained in:
tv 2018-11-30 09:41:32 +01:00
parent 5f0b1b8035
commit 4319a38680

View File

@ -0,0 +1,20 @@
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
then value.override { inherit overrides; }
else value
) super.haskell.packages;
};
haskellPackages = super.haskellPackages.override {
inherit overrides;
};
}