2017-01-17 19:37:20 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-10-21 12:41:36 +00:00
|
|
|
name = "ocaml${ocaml.version}-omd-1.3.1";
|
2017-01-17 19:37:20 +00:00
|
|
|
src = fetchurl {
|
2017-10-21 12:41:36 +00:00
|
|
|
url = "https://github.com/Chris00/omd/releases/download/1.3.1/omd-1.3.1.tar.gz";
|
|
|
|
sha256 = "1sgdgzpx96br7npj8mh91cli5mqmzsjpngwm7x4212n3k1d0ivwa";
|
2017-01-17 19:37:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Extensible Markdown library and tool in OCaml";
|
|
|
|
homepage = https://github.com/ocaml/omd;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|