diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-08-05 12:00:00 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-08-05 20:33:20 +0200 |
commit | 308c004ace14c471d904a065582f8a51be9750f4 (patch) | |
tree | f5c2f7cf6d84601fe3cab8116a3c568b0e651cf2 /pkgs/development/ocaml-modules | |
parent | 06552b72346632b6943c8032e57e702ea12413bf (diff) | |
download | nixlib-308c004ace14c471d904a065582f8a51be9750f4.tar nixlib-308c004ace14c471d904a065582f8a51be9750f4.tar.gz nixlib-308c004ace14c471d904a065582f8a51be9750f4.tar.bz2 nixlib-308c004ace14c471d904a065582f8a51be9750f4.tar.lz nixlib-308c004ace14c471d904a065582f8a51be9750f4.tar.xz nixlib-308c004ace14c471d904a065582f8a51be9750f4.tar.zst nixlib-308c004ace14c471d904a065582f8a51be9750f4.zip |
ocamlPackages.llvm: 8 -> 10, fix bytecode linking
Fixes #119532
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/llvm/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/llvm/default.nix b/pkgs/development/ocaml-modules/llvm/default.nix index f984a28869e1..3357b99cebfc 100644 --- a/pkgs/development/ocaml-modules/llvm/default.nix +++ b/pkgs/development/ocaml-modules/llvm/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchpatch, python, cmake, libllvm, ocaml, findlib, ctypes }: +{ stdenv, lib, python, cmake, libllvm, ocaml, findlib, ctypes }: let version = lib.getVersion libllvm; in @@ -12,12 +12,8 @@ stdenv.mkDerivation { buildInputs = [ python ocaml findlib ctypes ]; propagatedBuildInputs = [ libllvm ]; - patches = [ (fetchpatch { - url = "https://raw.githubusercontent.com/ocaml/opam-repository/2bdc193f5a9305ea93bf0f0dfc1fbc327c8b9306/packages/llvm/llvm.7.0.0/files/fix-shared.patch"; - sha256 = "1p98j3b1vrryfn1xa7i50m6mmm4dyw5ldafq6kyh9sfmdihz4zsx"; - })]; - cmakeFlags = [ + "-DBUILD_SHARED_LIBS=YES" # fixes bytecode builds "-DLLVM_OCAML_OUT_OF_TREE=TRUE" "-DLLVM_OCAML_INSTALL_PATH=${placeholder "out"}/ocaml" "-DLLVM_OCAML_EXTERNAL_LLVM_LIBDIR=${lib.getLib libllvm}/lib" @@ -31,6 +27,7 @@ stdenv.mkDerivation { mkdir -p $OCAMLFIND_DESTDIR/ mv $out/ocaml $OCAMLFIND_DESTDIR/llvm mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,} + mv $OCAMLFIND_DESTDIR/llvm/stublibs $OCAMLFIND_DESTDIR/stublibs ''; passthru = { |