forked from
lass.pds.lassul.us/superconfig
This repository has no description
594 B
16 lines
1#!/usr/bin/env bash
2# Builds INSTALLABLE... for ci.yml and pushes every store path the build
3# added, built or substituted from hestia, to cache.lassul.us
4# (niks3-push.sh), also when some of them failed.
5# Usage: ci-build.sh INSTALLABLE...
6set -euo pipefail
7before=$(mktemp)
8added=$(mktemp)
9nix path-info --all | sort >"$before"
10status=0
11nix build -L --no-link --keep-going "$@" || status=$?
12nix path-info --all | sort | comm -13 "$before" - | { grep -v '\.drv$' || true; } >"$added"
13if [ -s "$added" ]; then
14 "$(dirname "$(realpath "$0")")/niks3-push.sh" --stdin <"$added"
15fi
16exit "$status"