The nix build
documentation is sparse, calling the argument an “installables” with a few examples. These examples don’t include the common (to me) use of .#foobar
. It also took a good bit of trial and error to figure out how to combine .?submodules=1
with #foobar
:
# NOT THESE:
nix build .#foobar.?submodules=1
nix build .#foobar?submodules=1
nix build .#foobar .?submodules=1
nix build .?submodules=1.#foobar
# FINALLY!
nix build .?submodules=1#foobar
Where could I read about the anatomy of the installables string?