2015-04-04 19:18:28 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib }:
|
2015-01-07 23:19:13 +00:00
|
|
|
|
2015-04-04 19:18:28 +01:00
|
|
|
let version = "1.3.0"; in
|
2015-01-07 23:19:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-stringext-${version}";
|
|
|
|
|
2015-04-04 19:18:28 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/rgrinberg/stringext/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0sd1chyxclmip0nxqhasp1ri91bwxr8nszkkr5kpja45f6bav6k9";
|
2015-01-07 23:19:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/rgrinberg/stringext;
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
description = "Extra string functions for OCaml";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|