summaryrefslogtreecommitdiff
path: root/doctrine/lib/import-all.nix
diff options
context:
space:
mode:
Diffstat (limited to 'doctrine/lib/import-all.nix')
-rw-r--r--doctrine/lib/import-all.nix21
1 files changed, 0 insertions, 21 deletions
diff --git a/doctrine/lib/import-all.nix b/doctrine/lib/import-all.nix
deleted file mode 100644
index 423dd9c..0000000
--- a/doctrine/lib/import-all.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- lib,
- root,
- exclude ? ["default"],
-}:
-with builtins;
-with lib;
-# http://chriswarbo.net/projects/nixos/useful_hacks.html
- let
- basename = removeSuffix ".nix";
-
- isMatch = name: type:
- (hasSuffix ".nix" name || type == "directory")
- && ! elem (basename name) exclude;
-
- entry = name: _: {
- name = basename name;
- value = import (root + "/${name}");
- };
- in
- mapAttrs' entry (filterAttrs isMatch (readDir root))