mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-21 10:48:17 +00:00
assert submodules are available to Nix derivation (#6835)
This should result in a human-readable error when `?submodules=1#` is not appended to the project URL as the README explains: ``` > nix build '.' error: Unable to build without submodules. Append '?submodules=1#' to the URL. > nix build '.?submodules=1#' ``` Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
bc55a3a0c7
commit
62e57f565b
@ -16,6 +16,10 @@
|
||||
],
|
||||
}:
|
||||
|
||||
# The 'or' is to handle src fallback to ../. which lack submodules attribue.
|
||||
assert pkgs.lib.assertMsg ((src.submodules or true) == true)
|
||||
"Unable to build without submodules. Append '?submodules=1#' to the URI.";
|
||||
|
||||
let
|
||||
inherit (pkgs) stdenv lib writeScriptBin callPackage;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user