2020-11-12 09:05:59 +00:00
|
|
|
{ stdenv, fetchFromGitLab, libvirt, autoreconfHook, pkg-config, ocaml, findlib, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml-libvirt";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "0.6.1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "libvirt";
|
|
|
|
repo = "libvirt-ocaml";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xpkdmknk74yqxgw8z2w8b7ss8hpx92xnab5fsqg2byyj55gzf2k";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libvirt ];
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config findlib perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildPhase = "make all opt CPPFLAGS=-Wno-error";
|
|
|
|
|
|
|
|
installPhase = "make install-opt";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OCaml bindings for libvirt";
|
|
|
|
homepage = "https://libvirt.org/ocaml/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|