allow buildInputs param to s6 service

this is in preparation for trigger services that need to
close over the triggered service without adding it to
s6-rc dependencies
This commit is contained in:
Daniel Barlow 2024-03-16 20:25:29 +00:00
parent 8ac2c6cec1
commit b8a46fc05e

View file

@ -54,6 +54,7 @@ let
, outputs ? [] , outputs ? []
, notification-fd ? null , notification-fd ? null
, dependencies ? [] , dependencies ? []
, buildInputs ? []
, ... , ...
} @ args: } @ args:
let logger = service { let logger = service {
@ -65,7 +66,7 @@ let
pipeline-name = "${name}-pipeline"; pipeline-name = "${name}-pipeline";
}; };
in service (args // { in service (args // {
buildInputs = [ logger ]; buildInputs = buildInputs ++ [ logger ];
serviceType = "longrun"; serviceType = "longrun";
run = serviceScript "${run}\n${cleanupScript name}"; run = serviceScript "${run}\n${cleanupScript name}";
producer-for = "${name}-log"; producer-for = "${name}-log";