summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ptmap
diff options
context:
space:
mode:
authorVolth <volth@webmaster.ms>2017-07-04 21:39:37 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-07-05 17:48:45 +0000
commit18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e (patch)
tree79e4981392ab99754241354cfc70d096197d459d /pkgs/development/ocaml-modules/ptmap
parentf9a2866508c1133ea54d4174feb8a76b689eb616 (diff)
downloadnixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.tar
nixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.tar.gz
nixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.tar.bz2
nixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.tar.lz
nixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.tar.xz
nixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.tar.zst
nixlib-18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e.zip
ocamlPackages.{benchmark,obuild,ptmap,rope}: init at 1.4, 0.1.8, 2.0.1, 0.5
Diffstat (limited to 'pkgs/development/ocaml-modules/ptmap')
-rw-r--r--pkgs/development/ocaml-modules/ptmap/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ptmap/default.nix b/pkgs/development/ocaml-modules/ptmap/default.nix
new file mode 100644
index 000000000000..aa44fe3d009b
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ptmap/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchzip, ocaml, findlib, obuild }:
+
+let version = "2.0.1"; in
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-ptmap-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/UnixJunkie/ptmap/archive/v${version}.tar.gz";
+    sha256 = "09ib4q5amkac2yy0hr7yn1n1j6y10v08chh82qc70wl7s473if15";
+  };
+
+  buildInputs = [ ocaml findlib obuild ];
+
+  createFindlibDestdir = true;
+
+  buildPhase = ''
+    substituteInPlace ptmap.obuild --replace 'build-deps: qcheck' ""
+    obuild configure
+    obuild build lib-ptmap
+  '';
+
+  installPhase = ''
+    obuild install --destdir $out/lib/ocaml/${ocaml.version}/site-lib
+  '';
+
+  meta = {
+    homepage = https://www.lri.fr/~filliatr/software.en.html;
+    platforms = ocaml.meta.platforms or [];
+    description = "Maps over integers implemented as Patricia trees";
+    license = stdenv.lib.licenses.lgpl21;
+    maintainers = with stdenv.lib.maintainers; [ volth ];
+  };
+}