add a check so that the flake can be used with submodules as well

This commit is contained in:
Wolfgang Thaller 2023-12-26 19:53:34 +01:00
parent 914ce6e144
commit 2dd9d79398
1 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,11 @@
flake = {
overlays.default =
lib.composeManyExtensions [
((import nix/overlay.nix) { multiversal_src = multiversal; })
((import nix/overlay.nix) {
multiversal_src = if builtins.pathExists ./multiversal/make-multiverse.rb
then ./multiversal
else multiversal;
})
(import nix/universal.nix)
(import nix/samples.nix)
];