eldritch horrors
f5aa5b6815
this is supposed to be a set of outputs we want to always succeed for
releases. sadly we can't add nixos installer tests using lix to these
because the nixos test framework does not allow overriding nix in the
installer test suites due to unfortunate oversights in the framework.
Change-Id: I815520181ccca70a47205d38ba27e73529347f04
37 lines
842 B
Bash
Executable file
37 lines
842 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
shopt -s inherit_errexit failglob
|
|
|
|
nixpkgss=(
|
|
"$(nix eval --impure --raw --expr '(import ./flake.nix).inputs.nixpkgs.url')"
|
|
"github:NixOS/nixpkgs/nixos-unstable-small"
|
|
)
|
|
jobs=(
|
|
$(nix eval \
|
|
--json --apply '
|
|
let f = n: t:
|
|
if builtins.isAttrs t
|
|
then (if t.type or "" == "derivation"
|
|
then [ n ]
|
|
else builtins.concatMap (m: f "${n}.${m}" t.${m}) (builtins.attrNames t))
|
|
else [];
|
|
in f ".#.releaseTests"
|
|
' \
|
|
'.#.releaseTests' \
|
|
| jq -r '.[]'
|
|
)
|
|
)
|
|
|
|
for override in "${nixpkgss}"
|
|
do
|
|
(
|
|
set -x
|
|
nix build \
|
|
--log-format multiline \
|
|
--no-link \
|
|
--override-input nixpkgs "$override" \
|
|
"${jobs[@]}"
|
|
)
|
|
done
|