a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
33 lines
840 B
Nix
33 lines
840 B
Nix
{ lib, stdenv, fetchFromGitLab, libvirt, autoreconfHook, pkg-config, ocaml, findlib, perl }:
|
|
|
|
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 ];
|
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
buildPhase = "make all opt CPPFLAGS=-Wno-error";
|
|
|
|
installPhase = "make install-opt";
|
|
|
|
meta = with lib; {
|
|
description = "OCaml bindings for libvirt";
|
|
homepage = "https://libvirt.org/ocaml/";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.volth ];
|
|
platforms = ocaml.meta.platforms or [];
|
|
};
|
|
}
|