summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-05-24 02:25:21 +0200
committertv <tv@krebsco.de>2017-05-24 02:25:21 +0200
commit00b9970aae4e2cb472c793b9809bfb18fff8a37f (patch)
treeb8c9d55b64fa107f7334adcbd8c88418749b4eb9 /krebs/5pkgs/default.nix
parent98741092302a796554b727f54cef1316b405562d (diff)
krebs/5pkgs: import directory contents as overlays
Diffstat (limited to 'krebs/5pkgs/default.nix')
-rw-r--r--krebs/5pkgs/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/krebs/5pkgs/default.nix b/krebs/5pkgs/default.nix
index 6dbb0954f..820f0cdc8 100644
--- a/krebs/5pkgs/default.nix
+++ b/krebs/5pkgs/default.nix
@@ -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 {};