krebs/5pkgs: import directory contents as overlays

This commit is contained in:
tv 2017-05-24 02:25:21 +02:00
parent 9874109230
commit 00b9970aae

View File

@ -1,10 +1,13 @@
pkgs: oldpkgs:
with import <stockholm/lib>;
{}
// import ./haskell pkgs oldpkgs
// import ./simple pkgs oldpkgs
// import ./test pkgs oldpkgs
// import ./writers.nix pkgs oldpkgs
foldl' mergeAttrs {}
(map
(name: import (./. + "/${name}") pkgs oldpkgs)
(filter
(name: name != "default.nix" && !hasPrefix "." name)
(attrNames (readDir ./.))))
// {
ReaktorPlugins = pkgs.callPackage ./simple/Reaktor/plugins.nix {};