Flakes: Difference between revisions

imported>Siers
Undo revision 7655 by Siers (talk)
imported>Blurgyy
Add instruction on building flakes with git submodules
Line 424: Line 424:
$ nix build .#hello
$ nix build .#hello
</syntaxHighlight>
</syntaxHighlight>
=== Building flakes from a Git repo url with submodules ===
As per nix 2.9.1, git submodules in package <code>src</code>s won't get copied to the nix store, this may cause the build to fail.  To workaround this, use:
<syntaxHighlight lang=console>
$ nix build .?submodules=1#hello
</syntaxHighlight>
See: https://github.com/NixOS/nix/pull/5434


== Importing packages from multiple channels ==
== Importing packages from multiple channels ==