diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2019-09-03 21:25:23 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2019-09-03 21:25:23 +0200 |
commit | e7b6d8790f5fbef4743b2a922e6dc84d6c757590 (patch) | |
tree | ff3d09c2c92823cd07795ce2c1335ebc10ed8158 /pkgs/development/ocaml-modules/llvm | |
parent | e3434a3c36354328edae4893424fc313c96684b8 (diff) | |
download | nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.tar nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.tar.gz nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.tar.bz2 nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.tar.lz nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.tar.xz nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.tar.zst nixlib-e7b6d8790f5fbef4743b2a922e6dc84d6c757590.zip |
ocamlPackages.llvm: build with llvm_8
Diffstat (limited to 'pkgs/development/ocaml-modules/llvm')
-rw-r--r-- | pkgs/development/ocaml-modules/llvm/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/llvm/default.nix b/pkgs/development/ocaml-modules/llvm/default.nix index 3bced92cc3e3..0dd8231dafe1 100644 --- a/pkgs/development/ocaml-modules/llvm/default.nix +++ b/pkgs/development/ocaml-modules/llvm/default.nix @@ -10,18 +10,20 @@ stdenv.mkDerivation { buildInputs = [ python cmake llvm ocaml findlib ctypes ]; patches = [ (fetchpatch { - url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/llvm/llvm.3.9/files/cmake.patch; - sha256 = "1fcc6ylfiw1npdhx7mrsj7h0dx7cym7i9664kpr76zqazb52ikm9"; + url = https://raw.githubusercontent.com/ocaml/opam-repository/2bdc193f5a9305ea93bf0f0dfc1fbc327c8b9306/packages/llvm/llvm.7.0.0/files/fix-shared.patch; + sha256 = "1p98j3b1vrryfn1xa7i50m6mmm4dyw5ldafq6kyh9sfmdihz4zsx"; })]; - cmakeFlags = [ "-DLLVM_OCAML_OUT_OF_TREE=TRUE" ]; + cmakeFlags = [ + "-DLLVM_OCAML_OUT_OF_TREE=TRUE" + "-DLLVM_OCAML_INSTALL_PATH=${placeholder "out"}/ocaml" + ]; buildFlags = "ocaml_all"; installFlags = "-C bindings/ocaml"; postInstall = '' - mv $out/lib/ocaml $out/ocaml mkdir -p $OCAMLFIND_DESTDIR/ mv $out/ocaml $OCAMLFIND_DESTDIR/llvm mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,} |