From 00b9970aae4e2cb472c793b9809bfb18fff8a37f Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 24 May 2017 02:25:21 +0200 Subject: krebs/5pkgs: import directory contents as overlays --- krebs/5pkgs/default.nix | 13 ++++++++----- 1 file 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 ; - {} - // 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 {}; -- cgit v1.2.3