ocamlPackages.llvm: build with llvm_8

This commit is contained in:
Franz Pletz 2019-09-03 21:25:23 +02:00
parent e3434a3c36
commit e7b6d8790f
No known key found for this signature in database
GPG key ID: 846FDED7792617B4
2 changed files with 7 additions and 5 deletions

View file

@ -10,18 +10,20 @@ stdenv.mkDerivation {
buildInputs = [ python cmake llvm ocaml findlib ctypes ]; buildInputs = [ python cmake llvm ocaml findlib ctypes ];
patches = [ (fetchpatch { patches = [ (fetchpatch {
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/llvm/llvm.3.9/files/cmake.patch; url = https://raw.githubusercontent.com/ocaml/opam-repository/2bdc193f5a9305ea93bf0f0dfc1fbc327c8b9306/packages/llvm/llvm.7.0.0/files/fix-shared.patch;
sha256 = "1fcc6ylfiw1npdhx7mrsj7h0dx7cym7i9664kpr76zqazb52ikm9"; 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"; buildFlags = "ocaml_all";
installFlags = "-C bindings/ocaml"; installFlags = "-C bindings/ocaml";
postInstall = '' postInstall = ''
mv $out/lib/ocaml $out/ocaml
mkdir -p $OCAMLFIND_DESTDIR/ mkdir -p $OCAMLFIND_DESTDIR/
mv $out/ocaml $OCAMLFIND_DESTDIR/llvm mv $out/ocaml $OCAMLFIND_DESTDIR/llvm
mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,} mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,}

View file

@ -391,7 +391,7 @@ let
linenoise = callPackage ../development/ocaml-modules/linenoise { }; linenoise = callPackage ../development/ocaml-modules/linenoise { };
llvm = callPackage ../development/ocaml-modules/llvm { llvm = callPackage ../development/ocaml-modules/llvm {
llvm = pkgs.llvm_39; llvm = pkgs.llvm_8;
}; };
logs = callPackage ../development/ocaml-modules/logs { logs = callPackage ../development/ocaml-modules/logs {