chore: Tweak the generation, to remove one indirection

This commit is contained in:
Tom Hubrecht 2024-11-11 21:54:18 +01:00
parent 1231af3fdf
commit b9cb5d6f94
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -25,16 +25,12 @@ let
str str
; ;
inherit (pkgs) action-validator remarshal runCommand;
cfg = config; cfg = config;
generate = generate =
name: value: name: value:
pkgs.callPackage (
{
runCommand,
remarshal,
action-validator,
}:
runCommand "${name}.yaml" runCommand "${name}.yaml"
{ {
nativeBuildInputs = [ nativeBuildInputs = [
@ -51,8 +47,7 @@ let
# Check that the workflow is valid # Check that the workflow is valid
cd "${cfg.rootSrc}" && action-validator "$out" cd "${cfg.rootSrc}" && action-validator "$out"
'' '';
) { };
install = install =
name: value: name: value: