git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-llvm: 3.7.1 -> 3.9.1
commitb2b8a412fb376fccda36530666948bf25170d26e authorVincent Laporte <Vincent.Laporte@gmail.com> dateSun 12 Mar 2017, 18:22 (10 years ago) parentb2c9606
2 files changed+14−12
pkgs/development/ocaml-modules/llvm/default.nix+13−11 pkgs/top-level/ocaml-packages.nix+1−1
pkgs/development/ocaml-modules/llvm/default.nix+13−11
@@ -1,4 +1,4 @@
1−{ stdenv, python, llvm, ocaml, findlib, ctypes }:
1+{ stdenv, fetchpatch, python, cmake, llvm, ocaml, findlib, ctypes }:
22
33let version = stdenv.lib.getVersion llvm; in
44
@@ -7,21 +7,23 @@ stdenv.mkDerivation {
77
88 inherit (llvm) src;
99
10− buildInputs = [ python llvm ocaml findlib ctypes ];
10+ buildInputs = [ python cmake llvm ocaml findlib ctypes ];
1111
12− configurePhase = ''
13− mkdir build
14− cd build
15− ../configure --disable-compiler-version-checks --prefix=$out \
16− --disable-doxygen --disable-docs --with-ocaml-libdir=$OCAMLFIND_DESTDIR/llvm \
17− --enable-static
18− '';
12+ patches = [ (fetchpatch {
13+ url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/llvm/llvm.3.9/files/cmake.patch;
14+ sha256 = "1fcc6ylfiw1npdhx7mrsj7h0dx7cym7i9664kpr76zqazb52ikm9";
15+ })];
1916
20− enableParallelBuilding = false;
17+ cmakeFlags = [ "-DLLVM_OCAML_OUT_OF_TREE=TRUE" ];
2118
22− makeFlags = [ "-C bindings" "SYSTEM_LLVM_CONFIG=llvm-config" ];
19+ buildFlags = "ocaml_all";
20+
21+ installFlags = "-C bindings/ocaml";
2322
2423 postInstall = ''
24+ mv $out/lib/ocaml $out/ocaml
25+ mkdir -p $OCAMLFIND_DESTDIR/
26+ mv $out/ocaml $OCAMLFIND_DESTDIR/llvm
2527 mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,}
2628 '';
2729
pkgs/top-level/ocaml-packages.nix+1−1
@@ -261,7 +261,7 @@ let
261261 else lambdaTerm-1_6;
262262
263263 llvm = callPackage ../development/ocaml-modules/llvm {
264− llvm = pkgs.llvm_37;
264+ llvm = pkgs.llvm_39;
265265 };
266266
267267 logs = callPackage ../development/ocaml-modules/logs {