about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix b/nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix
new file mode 100644
index 000000000000..34aadc8761fb
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, fetchFromGitLab
+, buildDunePackage
+, lwt
+, ptime
+}:
+
+buildDunePackage rec {
+  pname = "lwt-exit";
+  version = "1.0";
+  src = fetchFromGitLab {
+    owner = "nomadic-labs";
+    repo = pname;
+    rev = "${version}";
+    sha256 = "1k763bmj1asj9ijar39rh3h1d59rckmsf21h2y8966lgglsf42bd";
+  };
+
+  useDune2 = true;
+
+  minimalOCamlVersion = "4.08";
+
+  propagatedBuildInputs = [
+    lwt
+    ptime
+  ];
+
+  doCheck = true;
+
+  meta = {
+    description = "An opinionated clean-exit and signal-handling library for Lwt programs";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.ulrikstrid ];
+  };
+}