From 2dd9d79398d06d85329490f7b12c12e9c59584c1 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Tue, 26 Dec 2023 19:53:34 +0100 Subject: [PATCH] add a check so that the flake can be used with submodules as well --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 02d88e2825..0653aaea87 100644 --- a/flake.nix +++ b/flake.nix @@ -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) ];