forked from mirrors/nixpkgs
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
32 lines
807 B
Nix
32 lines
807 B
Nix
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-omd";
|
|
version = "1.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Chris00/omd/releases/download/${version}/omd-${version}.tar.gz";
|
|
sha256 = "1sgdgzpx96br7npj8mh91cli5mqmzsjpngwm7x4212n3k1d0ivwa";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
strictDeps = true;
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
ocaml setup.ml -configure --prefix $out
|
|
runHook postConfigure
|
|
'';
|
|
|
|
meta = {
|
|
description = "Extensible Markdown library and tool in OCaml";
|
|
homepage = "https://github.com/ocaml/omd";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|