mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 06:42:51 +03:00
3480232f2a
btcpayserver: 1.7.3 -> 1.7.12 elementsd: 22.0.2 -> 22.1 nbxplorer: 2.3.54 -> 2.3.62 Also add new required argument to flake-info in CI test script.
24 lines
667 B
Bash
Executable File
24 lines
667 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "${BASH_SOURCE[0]%/*}"
|
|
|
|
# Use cachix to cache the `flake-info` build
|
|
cachixCache=nix-bitcoin
|
|
|
|
nix run .#cachix -- use "$cachixCache"
|
|
|
|
# We're running in a basic, unprivileged container that doesn't support sandboxing.
|
|
# Sandboxing is unnneeded because we're only building the 3rd-party `flake-info` tool.
|
|
echo "sandbox = false" >> /etc/nix/nix.conf
|
|
|
|
# shellcheck disable=SC2016
|
|
PATH=$(nix shell -L .#flake-info .#cachix -c sh -c 'echo $PATH')
|
|
|
|
if [[ ${CACHIX_SIGNING_KEY:-} ]]; then
|
|
cachix push "$cachixCache" "$(type -P flake-info)";
|
|
fi
|
|
|
|
echo "Running flake-info (nixos-search)"
|
|
flake-info --json flake ../.. >/dev/null
|