diff options
-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 000000000000..439a3d30cb20 --- /dev/null +++ b/default.nix @@ -0,0 +1,16 @@ +{ overlays ? [] } @ args: + +let + inherit (builtins) attrNames filter match pathExists readDir; + + path = ./nixpkgs-overlays; + + overlayPaths = + filter + (n: match ".*\\.nix" n != null || pathExists (path + "/${n}/default.nix")) + (attrNames (readDir path)); + +in + import ./nixpkgs (args // { + overlays = (map (n: import (path + "/${n}")) overlayPaths) ++ overlays; + }) |