ocamlPackages.{benchmark,obuild,ptmap,rope}: init at 1.4, 0.1.8, 2.0.1, 0.5
This commit is contained in:
24
pkgs/development/ocaml-modules/benchmark/default.nix
Normal file
24
pkgs/development/ocaml-modules/benchmark/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ocaml_pcre }:
|
||||
|
||||
let version = "1.4"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml${ocaml.version}-benchmark-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/Chris00/ocaml-benchmark/releases/download/${version}/benchmark-${version}.tar.gz";
|
||||
sha256 = "16wi8ld7c3mq77ylpgbnj8qqqqimyzwxs47v06vyrwpma5pab5xa";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild ocaml_pcre ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://ocaml-benchmark.forge.ocamlcore.org/;
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
description = "Benchmark running times of code";
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = with stdenv.lib.maintainers; [ volth ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/ocaml-modules/ptmap/default.nix
Normal file
34
pkgs/development/ocaml-modules/ptmap/default.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
}
|
||||
24
pkgs/development/ocaml-modules/rope/default.nix
Normal file
24
pkgs/development/ocaml-modules/rope/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, benchmark }:
|
||||
|
||||
let version = "0.5"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml${ocaml.version}-rope-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://forge.ocamlcore.org/frs/download.php/1156/rope-${version}.tar.gz";
|
||||
sha256 = "1i8kzg19jrapl30mq8m91vy09z0r0dl4bnpw24ga96w8pxqf9qhd";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild benchmark ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://rope.forge.ocamlcore.org/;
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
description = ''Ropes ("heavyweight strings") in OCaml'';
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = with stdenv.lib.maintainers; [ volth ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user