support notification-fd file in longrun

This commit is contained in:
Daniel Barlow
2022-09-25 21:06:08 +01:00
parent 92e42f1d45
commit 1d9f39bf87
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
name
, run
, outputs ? []
, notification-fd ? null
, dependencies ? []
} @ args: stdenvNoCC.mkDerivation {
name = "${name}.service";
@@ -19,6 +20,7 @@
dependencies = builtins.map (d: d.name) dependencies;
shell = "${busybox}/bin/sh";
inherit run;
notificationFd = notification-fd;
builder = ./builder.sh;
};
oneshot = {