From 9f4f6471c002453b534f7c1fbc787ffa23b9c813 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 28 Mar 2024 16:10:02 +0100 Subject: [PATCH] Add task to Justfile to build package --- Justfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index dece1d9..8c57eee 100644 --- a/Justfile +++ b/Justfile @@ -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