mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
22 lines
656 B
Nix
22 lines
656 B
Nix
{
|
|
wrapShellScriptBin,
|
|
pkgs,
|
|
inputs
|
|
}: let
|
|
exports = ''
|
|
export NF_CONFIG_ROOT=''${NF_CONFIG_ROOT-${toString ../.}}
|
|
'';
|
|
exportsSystems = let
|
|
inherit (inputs.self) systems;
|
|
nixosSystems = set.filter (_: system: system.ci.enable) systems;
|
|
warnSystems = set.filter (_: system: system.ci.allowFailure) nixosSystems;
|
|
toSystems = systems: string.concatMapSep " " string.escapeShellArg (set.keys systems);
|
|
in ''
|
|
NF_NIX_SYSTEMS=(${toSystems nixosSystems})
|
|
NF_NIX_SYSTEMS_WARN=(${toSystems warnSystems})
|
|
'';
|
|
in pkgs.writeShellScriptBin "nf-actions-test" ''
|
|
${exports}
|
|
${exportsSystems}
|
|
source ${./actions-test.sh}
|
|
''
|