nix: cache complement outputs using nix-build-and-cache
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
86ec20e787
commit
1f8a7a707c
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue