ocaml: uchar: add the ability to build without dynamic linking
This commit is contained in:
parent
484e0a89f9
commit
08edfb6967
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline, withShared ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml${ocaml.version}-uchar-0.0.2";
|
name = "ocaml${ocaml.version}-uchar-0.0.2";
|
||||||
@ -9,8 +9,8 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml ocamlbuild findlib opaline ];
|
nativeBuildInputs = [ ocaml ocamlbuild findlib opaline ];
|
||||||
buildInputs = [ findlib ];
|
buildInputs = [ findlib ocaml ocamlbuild opaline ];
|
||||||
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=${if withShared then "true" else "false"}";
|
||||||
installPhase = "opaline -libdir $OCAMLFIND_DESTDIR";
|
installPhase = "opaline -libdir $OCAMLFIND_DESTDIR";
|
||||||
configurePlatforms = [];
|
configurePlatforms = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user