Skip to content

Commit

Permalink
nix-flake: Add nix-workspace subflake
Browse files Browse the repository at this point in the history
The subflake nix-workspace provides a derivation containing a fully fetched
and initialized west workspace, located in the nix store (read-only). The flake
is generated by a python script, which reads the west.yml manifest and creates
corresponding inputs and derivations.

This output is also re-exported by the main flake.

Note that to re-generate the subflake, the script must be run in an active west
workspace. Once it is generated, an existing workspace is no longer necessary
to build its outputs.

For best results, run `nix fmt` after re-generating nix-workspace/flake.nix.

Signed-off-by: Sarah Renkhoff <sarah.renkhoff@navimatix.de>
  • Loading branch information
Irockasingranite committed Nov 24, 2023
1 parent d8117af commit 52679ff
Show file tree
Hide file tree
Showing 6 changed files with 2,302 additions and 72 deletions.
Loading

0 comments on commit 52679ff

Please sign in to comment.