chore: Tweak the generation, to remove one indirection
This commit is contained in:
parent
1231af3fdf
commit
b9cb5d6f94
1 changed files with 16 additions and 21 deletions
|
@ -25,16 +25,12 @@ let
|
|||
str
|
||||
;
|
||||
|
||||
inherit (pkgs) action-validator remarshal runCommand;
|
||||
|
||||
cfg = config;
|
||||
|
||||
generate =
|
||||
name: value:
|
||||
pkgs.callPackage (
|
||||
{
|
||||
runCommand,
|
||||
remarshal,
|
||||
action-validator,
|
||||
}:
|
||||
runCommand "${name}.yaml"
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
|
@ -51,8 +47,7 @@ let
|
|||
|
||||
# Check that the workflow is valid
|
||||
cd "${cfg.rootSrc}" && action-validator "$out"
|
||||
''
|
||||
) { };
|
||||
'';
|
||||
|
||||
install =
|
||||
name: value:
|
||||
|
|
Loading…
Reference in a new issue