git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-llvm: init at 3.7.0
commit620063af36ff12dd0bf54e0680ef653f0ba9f204 authorVincent Laporte <Vincent.Laporte@gmail.com> dateFri 16 Oct 2015, 13:22 (11 years ago) parenta222473
2 files changed+39
pkgs/development/ocaml-modules/llvm/default.nix+35 pkgs/top-level/all-packages.nix+4
pkgs/development/ocaml-modules/llvm/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, python, llvm, ocaml, findlib, ctypes }:
2+
3+let version = stdenv.lib.getVersion llvm; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml-llvm-${version}";
7+
8+ inherit (llvm) src;
9+
10+ buildInputs = [ python llvm ocaml findlib ctypes ];
11+
12+ configurePhase = ''
13+ mkdir build
14+ cd build
15+ ../configure CC=gcc CXX=g++ --disable-compiler-version-checks --prefix=$out \
16+ --disable-doxygen --disable-docs --with-ocaml-libdir=$OCAMLFIND_DESTDIR/llvm \
17+ --enable-static
18+ '';
19+
20+ enableParallelBuilding = false;
21+
22+ makeFlags = [ "-C bindings" "SYSTEM_LLVM_CONFIG=llvm-config" ];
23+
24+ postInstall = ''
25+ mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,}
26+ '';
27+
28+ meta = {
29+ inherit (llvm.meta) license homepage;
30+ inherit (ocaml.meta) platforms;
31+ description = "OCaml bindings distributed with LLVM";
32+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
33+ };
34+
35+}
pkgs/top-level/all-packages.nix+4
@@ -4467,6 +4467,10 @@ let
44674467 then callPackage ../development/ocaml-modules/lambda-term { }
44684468 else lambdaTerm-1_6;
44694469
4470+ llvm = callPackage ../development/ocaml-modules/llvm {
4471+ llvm = pkgs.llvm_37;
4472+ };
4473+
44704474 macaque = callPackage ../development/ocaml-modules/macaque { };
44714475
44724476 magic-mime = callPackage ../development/ocaml-modules/magic-mime { };