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

View file

@ -20,12 +20,9 @@ OCI_IMAGE="complement-conduit:dev"
toplevel="$(git rev-parse --show-toplevel)" toplevel="$(git rev-parse --show-toplevel)"
pushd "$toplevel" > /dev/null pushd "$toplevel" > /dev/null
# uses nix-output-monitor (nom) if available
if command -v nom &> /dev/null; then bin/nix-build-and-cache just .#complement
nom build .#complement
else
nix build -L .#complement
fi
docker load < result docker load < result
popd > /dev/null popd > /dev/null