diff options
author | Alexander Bantyev <balsoft75@gmail.com> | 2019-11-20 14:31:23 +0300 |
---|---|---|
committer | Alexander Bantyev <balsoft75@gmail.com> | 2019-11-26 18:03:55 +0300 |
commit | 08edfb69671912c964cc734e58176c1902057ce8 (patch) | |
tree | 9667f42b243e344323beee5a4202c8d017016997 /pkgs/development/ocaml-modules/uchar | |
parent | 484e0a89f9aa49ebb097ce7b531f3b1cad13eaa2 (diff) | |
download | nixlib-08edfb69671912c964cc734e58176c1902057ce8.tar nixlib-08edfb69671912c964cc734e58176c1902057ce8.tar.gz nixlib-08edfb69671912c964cc734e58176c1902057ce8.tar.bz2 nixlib-08edfb69671912c964cc734e58176c1902057ce8.tar.lz nixlib-08edfb69671912c964cc734e58176c1902057ce8.tar.xz nixlib-08edfb69671912c964cc734e58176c1902057ce8.tar.zst nixlib-08edfb69671912c964cc734e58176c1902057ce8.zip |
ocaml: uchar: add the ability to build without dynamic linking
Diffstat (limited to 'pkgs/development/ocaml-modules/uchar')
-rw-r--r-- | pkgs/development/ocaml-modules/uchar/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/uchar/default.nix b/pkgs/development/ocaml-modules/uchar/default.nix index 09e9dac09020..2140871021da 100644 --- a/pkgs/development/ocaml-modules/uchar/default.nix +++ b/pkgs/development/ocaml-modules/uchar/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline }: +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline, withShared ? true }: stdenv.mkDerivation { name = "ocaml${ocaml.version}-uchar-0.0.2"; @@ -9,8 +9,8 @@ stdenv.mkDerivation { }; nativeBuildInputs = [ ocaml ocamlbuild findlib opaline ]; - buildInputs = [ findlib ]; - buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true"; + buildInputs = [ findlib ocaml ocamlbuild opaline ]; + buildPhase = "ocaml pkg/build.ml native=true native-dynlink=${if withShared then "true" else "false"}"; installPhase = "opaline -libdir $OCAMLFIND_DESTDIR"; configurePlatforms = []; |