nix build -v !10342
warning: Git tree '/home/eduardo/dev/clit' is dirty
builder for '/nix/store/y8pbpdnx50cy14i05irbbmy13wkxnv06-clit.drv' failed with exit code 1; last 10 log lines:
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:16 (include):
include could not find load file:
-- Configuring incomplete, errors occurred!
See also "/build/source/build/CMakeFiles/CMakeOutput.log".
error: build of '/nix/store/y8pbpdnx50cy14i05irbbmy13wkxnv06-clit.drv' failed
The problem is that build cannot find the file GenericProject.cmake that is in the submodule. How can i get this working?
Thanks for the update @cab, it helped me! I didn’t understand how to specify a different target, but it goes like this: nix build '.?submodules=1#myPackage'. (Weirdly swapping the order of target and option doesn’t work).
But I still wonder how I can set this option “globally” for my flake, so that I don’t have to specify this option all the time. It looks like what @chanilino mentioned up there should do it, but I wouldn’t know where to put it.