uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/development/ocaml-modules/llvm/default.nix
Normal file
46
pkgs/development/ocaml-modules/llvm/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ stdenv, lib, python3, cmake, libllvm, ocaml, findlib, ctypes }:
|
||||
|
||||
let version = lib.getVersion libllvm; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "ocaml-llvm";
|
||||
inherit version;
|
||||
|
||||
inherit (libllvm) src;
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ocaml findlib ];
|
||||
buildInputs = [ ctypes ];
|
||||
propagatedBuildInputs = [ libllvm ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=YES" # fixes bytecode builds
|
||||
"-DLLVM_OCAML_OUT_OF_TREE=TRUE"
|
||||
"-DLLVM_OCAML_INSTALL_PATH=${placeholder "out"}/ocaml"
|
||||
"-DLLVM_OCAML_EXTERNAL_LLVM_LIBDIR=${lib.getLib libllvm}/lib"
|
||||
];
|
||||
|
||||
buildFlags = [ "ocaml_all" ];
|
||||
|
||||
installFlags = [ "-C" "bindings/ocaml" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $OCAMLFIND_DESTDIR/
|
||||
mv $out/ocaml $OCAMLFIND_DESTDIR/llvm
|
||||
mv $OCAMLFIND_DESTDIR/llvm/META{.llvm,}
|
||||
mv $OCAMLFIND_DESTDIR/llvm/stublibs $OCAMLFIND_DESTDIR/stublibs
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit libllvm;
|
||||
};
|
||||
|
||||
meta = {
|
||||
inherit (libllvm.meta) license homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
description = "OCaml bindings distributed with LLVM";
|
||||
maintainers = with lib.maintainers; [ vbgl ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue