stockholm/krebs/5pkgs/default.nix
tv be5f4833fe pkgs: import relative stockholm lib only once
New overlay code in inspired by <nixpkgs/pkgs/top-level/stage.nix>.
2021-10-12 22:11:08 +02:00

24 lines
463 B
Nix

let
stockholm.lib = import ../../lib;
in
with stockholm.lib;
self: super:
fix (foldl' (flip extends) (self: super) (
[
(self: super: { inherit stockholm; })
]
++
(map
(name: import (./. + "/${name}"))
(filter
(name: name != "default.nix" && !hasPrefix "." name)
(attrNames (readDir ./.))))
++
[
(self: super: {
brockman = self.haskellPackages.brockman;
reaktor2 = self.haskellPackages.reaktor2;
})
]
))