diff options
| author | Fabian Montero <fabian@posixlycorrect.com> | 2025-08-05 23:22:16 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-08-06 13:36:43 -0600 |
| commit | 578b0c59aa75fedf7594d4ce95b2038cc53f53cd (patch) | |
| tree | a4cddec76fc5d6d6a591ea109ad56b1082fbb8d4 /pkgs/lib | |
| parent | eecebc6ffa285678f650700d771aace2efcf2176 (diff) | |
add doctrine
Diffstat (limited to 'pkgs/lib')
| -rw-r--r-- | pkgs/lib/default.nix | 3 | ||||
| -rw-r--r-- | pkgs/lib/importAll.nix | 20 |
2 files changed, 0 insertions, 23 deletions
diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix deleted file mode 100644 index e3ab56e..0000000 --- a/pkgs/lib/default.nix +++ /dev/null @@ -1,3 +0,0 @@ -{callPackage}: { - importAll = callPackage ./importAll.nix {}; -} diff --git a/pkgs/lib/importAll.nix b/pkgs/lib/importAll.nix deleted file mode 100644 index 6acabe9..0000000 --- a/pkgs/lib/importAll.nix +++ /dev/null @@ -1,20 +0,0 @@ -{lib}: { - root, - exclude ? [], -}: -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 name (map basename exclude); - - entry = name: _: { - name = basename name; - value = import (root + "/${name}"); - }; - in - mapAttrs' entry (filterAttrs isMatch (readDir root)) |
