mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
21 lines
567 B
Bash
21 lines
567 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Ensure that binary substitution works properly with ca derivations
|
|
|
|
source common.sh
|
|
|
|
sed -i 's/experimental-features .*/& ca-derivations ca-references/' "$NIX_CONF_DIR"/nix.conf
|
|
|
|
export REMOTE_STORE=file://$TEST_ROOT/binary_cache
|
|
|
|
buildDrvs () {
|
|
nix build --file ./content-addressed.nix -L --no-link "$@"
|
|
}
|
|
|
|
# Populate the remote cache
|
|
buildDrvs --post-build-hook ../push-to-store.sh
|
|
|
|
# Restart the build on an empty store, ensuring that we don't build
|
|
clearStore
|
|
buildDrvs --substitute --substituters $REMOTE_STORE --no-require-sigs -j0
|
|
|