mirror of
https://github.com/NixOS/nix
synced 2025-06-24 18:01:16 +02:00
Just now there is a dependency on cachix, which means we cannot test the installer in CI if forks do not have the necessary secrets set up. We replace this with a simple http server that serves the installer and can be both used in CI and locally.
11 lines
259 B
Bash
Executable file
11 lines
259 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
nix build -L ".#installerScriptForGHA" ".#binaryTarball"
|
|
|
|
mkdir -p out
|
|
cp ./result/install "out/install"
|
|
name="$(basename "$(realpath ./result-1)")"
|
|
# everything before the first dash
|
|
cp -r ./result-1 "out/${name%%-*}"
|