diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/llvm/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/llvm/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/llvm/default.nix b/nixpkgs/pkgs/development/ocaml-modules/llvm/default.nix index 3cebefb33ed..fff4cff7802 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/llvm/default.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/llvm/default.nix @@ -8,7 +8,8 @@ stdenv.mkDerivation { inherit (llvm) src; - buildInputs = [ python cmake llvm ocaml findlib ctypes ]; + buildInputs = [ python cmake ocaml findlib ctypes ]; + propagatedBuildInputs = [ llvm ]; patches = [ (fetchpatch { url = https://raw.githubusercontent.com/ocaml/opam-repository/2bdc193f5a9305ea93bf0f0dfc1fbc327c8b9306/packages/llvm/llvm.7.0.0/files/fix-shared.patch; @@ -18,6 +19,7 @@ stdenv.mkDerivation { cmakeFlags = [ "-DLLVM_OCAML_OUT_OF_TREE=TRUE" "-DLLVM_OCAML_INSTALL_PATH=${placeholder "out"}/ocaml" + "-DLLVM_OCAML_EXTERNAL_LLVM_LIBDIR=${stdenv.lib.getLib llvm}/lib" ]; buildFlags = "ocaml_all"; @@ -30,6 +32,10 @@ stdenv.mkDerivation { mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,} ''; + passthru = { + inherit llvm; + }; + meta = { inherit (llvm.meta) license homepage; platforms = ocaml.meta.platforms or []; |