ocaml-llvm: init at 3.7.0
This commit is contained in:
parent
a222473b06
commit
620063af36
35
pkgs/development/ocaml-modules/llvm/default.nix
Normal file
35
pkgs/development/ocaml-modules/llvm/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv, python, llvm, ocaml, findlib, ctypes }:
|
||||
|
||||
let version = stdenv.lib.getVersion llvm; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml-llvm-${version}";
|
||||
|
||||
inherit (llvm) src;
|
||||
|
||||
buildInputs = [ python llvm ocaml findlib ctypes ];
|
||||
|
||||
configurePhase = ''
|
||||
mkdir build
|
||||
cd build
|
||||
../configure CC=gcc CXX=g++ --disable-compiler-version-checks --prefix=$out \
|
||||
--disable-doxygen --disable-docs --with-ocaml-libdir=$OCAMLFIND_DESTDIR/llvm \
|
||||
--enable-static
|
||||
'';
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
||||
makeFlags = [ "-C bindings" "SYSTEM_LLVM_CONFIG=llvm-config" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (llvm.meta) license homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
description = "OCaml bindings distributed with LLVM";
|
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
||||
};
|
||||
|
||||
}
|
@ -4467,6 +4467,10 @@ let
|
||||
then callPackage ../development/ocaml-modules/lambda-term { }
|
||||
else lambdaTerm-1_6;
|
||||
|
||||
llvm = callPackage ../development/ocaml-modules/llvm {
|
||||
llvm = pkgs.llvm_37;
|
||||
};
|
||||
|
||||
macaque = callPackage ../development/ocaml-modules/macaque { };
|
||||
|
||||
magic-mime = callPackage ../development/ocaml-modules/magic-mime { };
|
||||
|
Loading…
Reference in New Issue
Block a user