diff options
author | Profpatsch <mail@profpatsch.de> | 2019-04-02 12:10:28 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-04-02 12:12:53 +0200 |
commit | 0ea4fa96f4e6a1de27f50a97db9007e14958547d (patch) | |
tree | 084cce0b4a75642c021b3f76ebe768be1fed7dc9 /pkgs/profpatsch/s6/dhall/ServiceDirectory | |
parent | a015bbe903ccc0e5f8736d41f14c768672929564 (diff) |
pkgs/profpatsch: add dhall types for s6 servicedir
First version of a way to build s6 services using `dhall-to-nix`. Includes a small library that formalizes the tables in `man 7 signal`.
Diffstat (limited to 'pkgs/profpatsch/s6/dhall/ServiceDirectory')
3 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/profpatsch/s6/dhall/ServiceDirectory/default-type.dhall b/pkgs/profpatsch/s6/dhall/ServiceDirectory/default-type.dhall new file mode 100644 index 00000000..b560ab0e --- /dev/null +++ b/pkgs/profpatsch/s6/dhall/ServiceDirectory/default-type.dhall @@ -0,0 +1,17 @@ +{ finish : + Optional Text +, up : + Bool +, setid : + Bool +, notification-fd : + Optional Natural +, timeout-kill : + Natural +, timeout-finish : + Natural +, max-death-tally : + Natural +, down-signal : + ./../imports/Signal/type.dhall +} \ No newline at end of file diff --git a/pkgs/profpatsch/s6/dhall/ServiceDirectory/default.dhall b/pkgs/profpatsch/s6/dhall/ServiceDirectory/default.dhall new file mode 100644 index 00000000..c41fff5c --- /dev/null +++ b/pkgs/profpatsch/s6/dhall/ServiceDirectory/default.dhall @@ -0,0 +1,20 @@ +let Signal = ./../imports/Signal.dhall + +in { finish = + None Text + , up = + True + , setid = + True + , notification-fd = + None Natural + , timeout-kill = + 0 + , timeout-finish = + 5000 + , max-death-tally = + 100 + , down-signal = + Signal.SIGTERM + } + : ./default-type.dhall \ No newline at end of file diff --git a/pkgs/profpatsch/s6/dhall/ServiceDirectory/type.dhall b/pkgs/profpatsch/s6/dhall/ServiceDirectory/type.dhall new file mode 100644 index 00000000..5ca3b407 --- /dev/null +++ b/pkgs/profpatsch/s6/dhall/ServiceDirectory/type.dhall @@ -0,0 +1 @@ +./default-type.dhall ⩓ { run : Text } \ No newline at end of file |