2017-07-04 22:39:37 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, obuild }:
|
|
|
|
|
2017-09-03 07:45:34 +01:00
|
|
|
let version = "2.0.2"; in
|
2017-07-04 22:39:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml${ocaml.version}-ptmap-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
2017-09-03 07:45:34 +01:00
|
|
|
url = "https://github.com/backtracking/ptmap/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "093qax4lhpv1vcgwqh5b3pmy769hv5d8pqj1kjynh1z1xibv2qxc";
|
2017-07-04 22:39:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|