From 1f8a7a707c797b9e51d13ecfe20b118fed01f4aa Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 6 May 2024 01:09:51 -0400 Subject: [PATCH] nix: cache complement outputs using nix-build-and-cache Signed-off-by: strawberry --- bin/complement | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/complement b/bin/complement index fd6ab58d..c2c6ab34 100755 --- a/bin/complement +++ b/bin/complement @@ -20,12 +20,9 @@ OCI_IMAGE="complement-conduit:dev" toplevel="$(git rev-parse --show-toplevel)" pushd "$toplevel" > /dev/null -# uses nix-output-monitor (nom) if available -if command -v nom &> /dev/null; then - nom build .#complement -else - nix build -L .#complement -fi + +bin/nix-build-and-cache just .#complement + docker load < result popd > /dev/null