about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/timedesc/default.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2024-01-26 14:50:19 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2024-01-26 15:01:15 +0100
commit73a1d0ddc12a959a3644f204cdbe35707e0d29a3 (patch)
treeac85ac18d4d1e9423b9711ffaa115e1813506eb1 /pkgs/development/ocaml-modules/timedesc/default.nix
parent235ca05f09152b14f4fced91c699aa7723f8b79d (diff)
ocamlPackages.timedesc: init at 2.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/timedesc/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/timedesc/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/timedesc/default.nix b/pkgs/development/ocaml-modules/timedesc/default.nix
new file mode 100644
index 0000000000000..b77f5af17b408
--- /dev/null
+++ b/pkgs/development/ocaml-modules/timedesc/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, fetchurl
+, buildDunePackage
+, angstrom
+, ptime
+, seq
+, timedesc-tzdb
+, timedesc-tzlocal
+}:
+
+buildDunePackage rec {
+  pname = "timedesc";
+  version = "2.0.0";
+
+  src = fetchurl {
+    url = "https://github.com/daypack-dev/timere/releases/download/timedesc-${version}/timedesc-${version}.tar.gz";
+    hash = "sha256-NnnQpWOE1mt/F5lkWRPdDwpqXCUlcNi+Z5GE6YQQLK8=";
+  };
+
+  sourceRoot = ".";
+
+  propagatedBuildInputs = [
+    angstrom
+    ptime
+    seq
+    timedesc-tzdb
+    timedesc-tzlocal
+  ];
+
+  meta = {
+    description = "OCaml date time handling library";
+    homepage = "https://github.com/daypack-dev/timere";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+}