about summary refs log tree commit diff
path: root/pkgs/profpatsch/s6/dhall/unix/Signal/common/type.dhall
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-04-02 12:10:28 +0200
committerProfpatsch <mail@profpatsch.de>2019-04-02 12:12:53 +0200
commit0ea4fa96f4e6a1de27f50a97db9007e14958547d (patch)
tree084cce0b4a75642c021b3f76ebe768be1fed7dc9 /pkgs/profpatsch/s6/dhall/unix/Signal/common/type.dhall
parenta015bbe903ccc0e5f8736d41f14c768672929564 (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/unix/Signal/common/type.dhall')
-rw-r--r--pkgs/profpatsch/s6/dhall/unix/Signal/common/type.dhall63
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/profpatsch/s6/dhall/unix/Signal/common/type.dhall b/pkgs/profpatsch/s6/dhall/unix/Signal/common/type.dhall
new file mode 100644
index 00000000..76ecb01d
--- /dev/null
+++ b/pkgs/profpatsch/s6/dhall/unix/Signal/common/type.dhall
@@ -0,0 +1,63 @@
+let POSIX1990 =
+	  { SIGHUP :
+		  Natural
+	  , SIGINT :
+		  Natural
+	  , SIGQUIT :
+		  Natural
+	  , SIGILL :
+		  Natural
+	  , SIGABRT :
+		  Natural
+	  , SIGFPE :
+		  Natural
+	  , SIGKILL :
+		  Natural
+	  , SIGSEGV :
+		  Natural
+	  , SIGPIPE :
+		  Natural
+	  , SIGALRM :
+		  Natural
+	  , SIGTERM :
+		  Natural
+	  , SIGUSR1 :
+		  Natural
+	  , SIGUSR2 :
+		  Natural
+	  , SIGCHLD :
+		  Natural
+	  , SIGCONT :
+		  Natural
+	  , SIGSTOP :
+		  Natural
+	  , SIGTSTP :
+		  Natural
+	  , SIGTTIN :
+		  Natural
+	  , SIGTTOU :
+		  Natural
+	  }
+
+let POSIX2001 =
+	  { SIGBUS :
+		  Natural
+	  , SIGPOLL :
+		  Natural
+	  , SIGPROF :
+		  Natural
+	  , SIGSYS :
+		  Natural
+	  , SIGTRAP :
+		  Natural
+	  , SIGURG :
+		  Natural
+	  , SIGVTALRM :
+		  Natural
+	  , SIGXCPU :
+		  Natural
+	  , SIGXFSZ :
+		  Natural
+	  }
+
+in  POSIX1990 ⩓ POSIX2001
\ No newline at end of file