Add task to Justfile to build package

This commit is contained in:
Erwin Boskma 2024-03-28 16:10:02 +01:00
parent 6161704d49
commit 9f4f6471c0
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -7,7 +7,14 @@ update:
nix flake update --commit-lock-file
build machine="":
nixos-rebuild --flake .#{{machine}} build
#!/usr/bin/env bash
set -euxo pipefail
nixos-rebuild --flake .#{{machine}} --log-format internal-json build |& nom --json
pkg name:
#!/usr/bin/env bash
set -euxo pipefail
nix build --log-format internal-json -v .#{{name}} |& nom --json
diff:
nvd diff /run/current-system ./result