Skip to content

Commit

Permalink
fix: build-larva helper
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Nov 5, 2022
1 parent 4214e52 commit 0841bad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion comb/_QUEEN/devshells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ in
name = "build-larva";
help = "the hive x86_64-linux iso-bootstrapper";
command = ''
nix build $PRJ_ROOT#nixosConfigurations._QUEEN-o-larva.config.system.build.isoImage
echo "Boostrap image is building ..."
if path=$(nix build $PRJ_ROOT#nixosConfigurations._QUEEN-o-larva.config.system.build.isoImage --print-out-paths); then
echo "Boostrap image build finished."
echo "-------"
echo "You can now burn it to a USB with the following command:"
echo -e "writedisk ./result/iso/$(echo $path | cut --delimiter '-' --output-delimiter '-' -f 2-)"
else
echo "Boostrap image build failed."
fi
'';
})
];
Expand Down

0 comments on commit 0841bad

Please sign in to comment.