blob: 64c5f92579b8d0dc20b8ec9bc831ddf2de04518a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
with import <stockholm/lib>;
let
overrides = self: super:
listToAttrs
(map
(name: nameValuePair (removeSuffix ".nix" name)
(self.callPackage (./. + "/${name}") {}))
(filter
(name: name != "default.nix" && !hasPrefix "." name)
(attrNames (readDir ./.))));
in
self: super:
{
haskell.packages = mapAttrs (_: pkgs: pkgs.override {
inherit overrides;
}) super.haskell.packages;
haskellPackages = super.haskellPackages.override {
inherit overrides;
};
}
|