summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-08-24 07:02:11 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-08-31 06:55:26 +0000
commitd33df05f5073f370da22c737c84fc6a44a89a02e (patch)
treeae499429c28530f0793ce2b366d528f0f412bbc4
parent4b8755a43ca328d4fd8385978bd26c47c452a81c (diff)
downloadnixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.tar
nixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.tar.gz
nixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.tar.bz2
nixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.tar.lz
nixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.tar.xz
nixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.tar.zst
nixpkgs-d33df05f5073f370da22c737c84fc6a44a89a02e.zip
ocamlPackages.domain-name: init at 0.3.0
-rw-r--r--pkgs/development/ocaml-modules/domain-name/default.nix29
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/domain-name/default.nix b/pkgs/development/ocaml-modules/domain-name/default.nix
new file mode 100644
index 00000000000..cb0105ff46f
--- /dev/null
+++ b/pkgs/development/ocaml-modules/domain-name/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildDunePackage, fetchurl
+, alcotest
+, astring, fmt
+}:
+
+buildDunePackage rec {
+  pname = "domain-name";
+  version = "0.3.0";
+
+  src = fetchurl {
+    url = "https://github.com/hannesm/domain-name/releases/download/v${version}/domain-name-v${version}.tbz";
+    sha256 = "12kc9p2a2fi1ipc2hyhbzivxpph3npglxwdgvhd6v20rqqdyvnad";
+  };
+
+  minimumOCamlVersion = "4.03";
+
+  buildInputs = [ alcotest ];
+
+  propagatedBuildInputs = [ astring fmt ];
+
+  doCheck = true;
+
+  meta = {
+    homepage = "https://github.com/hannesm/domain-name";
+    description = "RFC 1035 Internet domain names";
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 7eabfccf85f..72ca022adc6 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -215,6 +215,8 @@ let
 
     dolog = callPackage ../development/ocaml-modules/dolog { };
 
+    domain-name = callPackage ../development/ocaml-modules/domain-name { };
+
     dtoa = callPackage ../development/ocaml-modules/dtoa { };
 
     dune = callPackage ../development/tools/ocaml/dune { };