mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-12-18 05:31:39 +03:00
1ef40ac230
- Check flake - Check nixos-search doc generation
24 lines
709 B
Bash
Executable File
24 lines
709 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
|
|
export 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
|
|
|
|
# flake-info requires '<nixpkgs>'
|
|
export NIX_PATH=nixpkgs=$(nix eval --raw .#nixpkgsPath)
|
|
echo "Running flake-info (nixos-search)"
|
|
flake-info flake ./.
|