|
|
|
@ -1,4 +1,6 @@ |
|
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camlp4, uutf, markup, ppx_tools_versioned, re |
|
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, markup, ppx_tools_versioned, re |
|
|
|
|
, withP4 ? !stdenv.lib.versionAtLeast ocaml.version "4.07" |
|
|
|
|
, camlp4 ? null |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "4.02"; |
|
|
|
@ -13,13 +15,14 @@ stdenv.mkDerivation rec { |
|
|
|
|
sha256 = "1zrkrmxyj5a2cdh4b9zr9anwfk320wv3x0ynxnyxl5za2ix8sld8"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild camlp4 ppx_tools_versioned markup ]; |
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ppx_tools_versioned markup ] |
|
|
|
|
++ stdenv.lib.optional withP4 camlp4; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ uutf re ]; |
|
|
|
|
|
|
|
|
|
createFindlibDestdir = true; |
|
|
|
|
|
|
|
|
|
configureFlags = "--enable-syntax"; |
|
|
|
|
configureFlags = stdenv.lib.optional withP4 "--enable-syntax"; |
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; { |
|
|
|
|
homepage = http://ocsigen.org/tyxml/; |
|
|
|
|