Skip to content

Commit 3db38d0

Browse files
lheckemannjwiegley
authored andcommitted
Warn users who forget to fetch the submodules
1 parent 4f7013b commit 3db38d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
config.allowBroken = false;
2222
config.packageOverrides = pkgs: rec {
2323
nix = pkgs.nixUnstable.overrideDerivation (attrs: {
24-
src = data/nix;
24+
src = if builtins.pathExists ./data/nix/version then data/nix else throw "data/nix doesn't seem to contain the nix source. You may want to run git submodule update --init.";
2525
configureFlags = attrs.configureFlags ++ [ "--disable-doc-gen" ];
2626
buildInputs = attrs.buildInputs ++
2727
[ pkgs.editline.dev

0 commit comments

Comments
 (0)