2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild }:
|
2017-01-17 19:37:20 +00:00
|
|
|
|
2021-11-09 19:42:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-omd";
|
|
|
|
version = "1.3.1";
|
|
|
|
|
2017-01-17 19:37:20 +00:00
|
|
|
src = fetchurl {
|
2021-11-09 19:42:54 +00:00
|
|
|
url = "https://github.com/Chris00/omd/releases/download/${version}/omd-${version}.tar.gz";
|
2017-10-21 12:41:36 +00:00
|
|
|
sha256 = "1sgdgzpx96br7npj8mh91cli5mqmzsjpngwm7x4212n3k1d0ivwa";
|
2017-01-17 19:37:20 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2017-01-17 19:37:20 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-09-16 19:10:29 +00:00
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
ocaml setup.ml -configure --prefix $out
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
2017-01-17 19:37:20 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Extensible Markdown library and tool in OCaml";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ocaml/omd";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-01-17 19:37:20 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|