git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.{benchmark,obuild,ptmap,rope}: init at 1.4, 0.1.8, 2.0.1, 0.5
commit18e3799cd1fcce8a1b37e182e65e3edc4c0f0a0e authorVolth <volth@webmaster.ms> dateTue 4 Jul 2017, 21:39 (9 years ago) parentf9a2866
6 files changed+121
pkgs/development/ocaml-modules/benchmark/default.nix+24 pkgs/development/ocaml-modules/ptmap/default.nix+34 pkgs/development/ocaml-modules/rope/default.nix+24 pkgs/development/tools/ocaml/obuild/default.nix+31 pkgs/top-level/all-packages.nix+2 pkgs/top-level/ocaml-packages.nix+6
pkgs/development/ocaml-modules/benchmark/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ocaml_pcre }:
2+
3+let version = "1.4"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml${ocaml.version}-benchmark-${version}";
7+
8+ src = fetchzip {
9+ url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tar.gz";
10+ sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa";
11+ };
12+
13+ buildInputs = [ ocaml findlib ocamlbuild ocaml_pcre ];
14+
15+ createFindlibDestdir = true;
16+
17+ meta = {
18+ homepage = http://ocaml-benchmark.forge.ocamlcore.org/;
19+ platforms = ocaml.meta.platforms or [];
20+ description = "Benchmark running times of code";
21+ license = stdenv.lib.licenses.lgpl21;
22+ maintainers = with stdenv.lib.maintainers; [ volth ];
23+ };
24+}
pkgs/development/ocaml-modules/ptmap/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, fetchzip, ocaml, findlib, obuild }:
2+
3+let version = "2.0.1"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml${ocaml.version}-ptmap-${version}";
7+
8+ src = fetchzip {
9+ url = "https://github.com/UnixJunkie/ptmap/archive/v${version}.tar.gz";
10+ sha256 = "09ib4q5amkac2yy0hr7yn1n1j6y10v08chh82qc70wl7s473if15";
11+ };
12+
13+ buildInputs = [ ocaml findlib obuild ];
14+
15+ createFindlibDestdir = true;
16+
17+ buildPhase = ''
18+ substituteInPlace ptmap.obuild --replace 'build-deps: qcheck' ""
19+ obuild configure
20+ obuild build lib-ptmap
21+ '';
22+
23+ installPhase = ''
24+ obuild install --destdir $out/lib/ocaml/${ocaml.version}/site-lib
25+ '';
26+
27+ meta = {
28+ homepage = https://www.lri.fr/~filliatr/software.en.html;
29+ platforms = ocaml.meta.platforms or [];
30+ description = "Maps over integers implemented as Patricia trees";
31+ license = stdenv.lib.licenses.lgpl21;
32+ maintainers = with stdenv.lib.maintainers; [ volth ];
33+ };
34+}
pkgs/development/ocaml-modules/rope/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, benchmark }:
2+
3+let version = "0.5"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml${ocaml.version}-rope-${version}";
7+
8+ src = fetchzip {
9+ url = "https://forge.ocamlcore.org/frs/download.php/1156/rope-${version}.tar.gz";
10+ sha256 = "1i8kzg19jrapl30mq8m91vy09z0r0dl4bnpw24ga96w8pxqf9qhd";
11+ };
12+
13+ buildInputs = [ ocaml findlib ocamlbuild benchmark ];
14+
15+ createFindlibDestdir = true;
16+
17+ meta = {
18+ homepage = http://rope.forge.ocamlcore.org/;
19+ platforms = ocaml.meta.platforms or [];
20+ description = ''Ropes ("heavyweight strings") in OCaml'';
21+ license = stdenv.lib.licenses.lgpl21;
22+ maintainers = with stdenv.lib.maintainers; [ volth ];
23+ };
24+}
pkgs/development/tools/ocaml/obuild/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchzip, ocamlPackages }:
2+
3+let version = "0.1.8"; in
4+
5+stdenv.mkDerivation {
6+ name = "obuild-${version}";
7+
8+ src = fetchzip {
9+ url = "https://github.com/ocaml-obuild/obuild/archive/obuild-v${version}.tar.gz";
10+ sha256 = "1q1k2qqd08j1zakvydgvwgwpyn0ll7rs65gap0pvg3amnh5cp3wd";
11+ };
12+
13+ buildInputs = with ocamlPackages; [ ocaml findlib ];
14+
15+ buildPhase = ''
16+ ./bootstrap
17+ '';
18+
19+ installPhase = ''
20+ mkdir -p $out/bin
21+ cp dist/build/obuild/obuild dist/build/obuild-from-oasis/obuild-from-oasis dist/build/obuild-simple/obuild-simple $out/bin/
22+ '';
23+
24+ meta = {
25+ homepage = https://github.com/ocaml-obuild/obuild;
26+ platforms = ocamlPackages.ocaml.meta.platforms or [];
27+ description = "Simple package build system for OCaml";
28+ license = stdenv.lib.licenses.lgpl21;
29+ maintainers = with stdenv.lib.maintainers; [ volth ];
30+ };
31+}
pkgs/top-level/all-packages.nix+2
@@ -6993,6 +6993,8 @@ with pkgs;
69936993 noweb = callPackage ../development/tools/literate-programming/noweb { };
69946994 nuweb = callPackage ../development/tools/literate-programming/nuweb { tex = texlive.combined.scheme-small; };
69956995
6996+ obuild = callPackage ../development/tools/ocaml/obuild { };
6997+
69966998 omake = callPackage ../development/tools/ocaml/omake {
69976999 inherit (ocamlPackages_4_02) ocaml;
69987000 };
pkgs/top-level/ocaml-packages.nix+6
@@ -114,6 +114,8 @@ let
114114 };
115115 camlimages = camlimages_4_1;
116116
117+ benchmark = callPackage ../development/ocaml-modules/benchmark { };
118+
117119 biniou = callPackage ../development/ocaml-modules/biniou { };
118120
119121 bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { };
@@ -551,6 +553,8 @@ let
551553
552554 ppx_tools_versioned = callPackage ../development/ocaml-modules/ppx_tools_versioned { };
553555
556+ ptmap = callPackage ../development/ocaml-modules/ptmap { };
557+
554558 pycaml = callPackage ../development/ocaml-modules/pycaml { };
555559
556560 qcheck = callPackage ../development/ocaml-modules/qcheck { };
@@ -561,6 +565,8 @@ let
561565
562566 reason = callPackage ../development/compilers/reason { };
563567
568+ rope = callPackage ../development/ocaml-modules/rope { };
569+
564570 rresult = callPackage ../development/ocaml-modules/rresult { };
565571
566572 safepass = callPackage ../development/ocaml-modules/safepass { };