nix: cache complement outputs using nix-build-and-cache

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-06 01:09:51 -04:00 committed by June
parent 86ec20e787
commit 1f8a7a707c
1 changed files with 3 additions and 6 deletions

View File

@ -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