3
0
Fork 0
forked from mirrors/nixpkgs

idris-modules: Filter out default.nix

This commit is contained in:
Shea Levy 2015-11-27 09:57:49 -05:00
parent a5ca796f55
commit a01c7b5a15

View file

@ -25,9 +25,9 @@
pruviloj = [ self.prelude self.base ];
};
files = builtins.filter (n: n != null) (pkgs.lib.mapAttrsToList (name: type: let
files = builtins.filter (n: n != "default") (pkgs.lib.mapAttrsToList (name: type: let
m = builtins.match "(.*)\.nix" name;
in if m == null then null else builtins.head m) (builtins.readDir ./.));
in if m == null then "default" else builtins.head m) (builtins.readDir ./.));
in (builtins.listToAttrs (map (name: { inherit name; value = callPackage (./. + "/${name}.nix") {}; }) files)) // {
inherit idris callPackage;