ocamlPackages.topkg: refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
|
||||
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
||||
, uchar, result, gg, uutf, otfm
|
||||
, js_of_ocaml, js_of_ocaml-ocamlbuild, js_of_ocaml-ppx,
|
||||
pdfBackend ? true, # depends on uutf and otfm
|
||||
@@ -26,14 +26,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1czd2fq85hy24w5pllarsq4pvbx9rda5zdikxfxdng8s9kff2h3f";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
|
||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||
|
||||
propagatedBuildInputs = [ uchar result gg ]
|
||||
++ optionals pdfBackend [ uutf otfm ]
|
||||
++ optionals htmlcBackend [ js_of_ocaml js_of_ocaml-ocamlbuild js_of_ocaml-ppx ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
unpackCmd = "tar xjf $src";
|
||||
|
||||
buildPhase = topkg.buildPhase
|
||||
|
||||
Reference in New Issue
Block a user