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
37
pkgs/development/ocaml-modules/ocaml-libvirt/default.nix
Normal file
37
pkgs/development/ocaml-modules/ocaml-libvirt/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitLab, libvirt, autoreconfHook, pkg-config, ocaml, findlib, perl }:
|
||||
|
||||
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02")
|
||||
"libvirt is not available for OCaml ${ocaml.version}"
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml-libvirt";
|
||||
version = "0.6.1.5";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "libvirt";
|
||||
repo = "libvirt-ocaml";
|
||||
rev = "v${version}";
|
||||
sha256 = "0xpkdmknk74yqxgw8z2w8b7ss8hpx92xnab5fsqg2byyj55gzf2k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libvirt ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config findlib perl ocaml ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
buildFlags = [ "all" "opt" "CPPFLAGS=-Wno-error" ];
|
||||
installTargets = "install-opt";
|
||||
preInstall = ''
|
||||
# Fix 'dllmllibvirt.so' install failure into non-existent directory.
|
||||
mkdir -p $OCAMLFIND_DESTDIR/stublibs
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "OCaml bindings for libvirt";
|
||||
homepage = "https://libvirt.org/ocaml/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.volth ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue