diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-09-23 12:41:01 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-09-23 12:41:49 +0300 |
commit | af337a12e6f084556400fa93c71304ad63f1efa6 (patch) | |
tree | ad5125cbfb2e812f4a507b182b875526b2a2d0e9 /default.nix | |
download | nixsap-af337a12e6f084556400fa93c71304ad63f1efa6.tar.gz |
Initial commit
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..0b7516d --- /dev/null +++ b/default.nix @@ -0,0 +1,16 @@ +{ lib, ... }: + +let + all = lib.filterAttrs + ( n: _: n != "default.nix" + && ! lib.hasPrefix "." n + && ! lib.hasPrefix "LICENSE" n + && ! lib.hasPrefix "README" n + && ! lib.hasPrefix "ChangeLog" n + && ! lib.hasPrefix "TODO" n + ) (builtins.readDir ./.); + +in { + imports = map (p: ./. + "/${p}") ( builtins.attrNames all ); +} + |