1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix

38 lines
978 B
Nix
Raw Normal View History

2017-02-22 06:01:09 +00:00
{ stdenv, fetchgit, libvirt, autoconf, ocaml, findlib }:
2017-02-04 15:07:45 +00:00
stdenv.mkDerivation rec {
name = "ocaml-libvirt-${version}";
2017-03-31 03:19:02 +01:00
rev = "3169af3";
version = "0.6.1.4-rev.${rev}"; # libguestfs-1.34 needs ocaml-libvirt newer than the latest release 0.6.1.4
2017-02-04 15:07:45 +00:00
2017-02-22 06:01:09 +00:00
src = fetchgit {
url = "git://git.annexia.org/git/ocaml-libvirt.git";
2017-03-31 03:19:02 +01:00
rev = rev;
sha256 = "0z8p6q6k42rdrvy248siq922m1yszny1hfklf6djynvk2viyqdbg";
2017-02-04 15:07:45 +00:00
};
propagatedBuildInputs = [ libvirt ];
2017-02-22 06:01:09 +00:00
nativeBuildInputs = [ autoconf findlib ];
buildInputs = [ ocaml ];
2017-02-04 15:07:45 +00:00
createFindlibDestdir = true;
2017-02-22 06:01:09 +00:00
preConfigure = ''
autoconf
'';
2017-02-04 15:07:45 +00:00
buildPhase = if stdenv.cc.isClang then "make all opt CPPFLAGS=-Wno-error" else "make all opt";
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 [];
};
}