2014-05-10 09:37:59 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtkvnc, gmp
|
2014-12-16 08:35:39 +00:00
|
|
|
, libgcrypt, gnupg, cyrus_sasl, shared_mime_info, libvirt, libcap_ng, yajl
|
|
|
|
, spiceSupport ? true, spice_gtk ? null, spice_protocol ? null, libcap ? null, gdbm ? null
|
2014-05-10 09:37:59 +01:00
|
|
|
}:
|
2011-01-13 22:30:32 +00:00
|
|
|
|
2014-12-16 08:35:39 +00:00
|
|
|
assert spiceSupport ->
|
|
|
|
spice_gtk != null && spice_protocol != null && libcap != null && gdbm != null;
|
|
|
|
|
2014-05-10 09:37:59 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let sourceInfo = rec {
|
2011-01-13 22:30:32 +00:00
|
|
|
baseName="virt-viewer";
|
2014-11-03 11:52:31 +00:00
|
|
|
version="1.0";
|
2011-01-13 22:30:32 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
|
2014-11-03 11:52:31 +00:00
|
|
|
hash="09sf1xzvw2yysv4c1jkqlzrazdg501r4j12hiwjdzk5swk6lppw0";
|
2014-05-10 09:37:59 +01:00
|
|
|
}; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-01-13 22:30:32 +00:00
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
2014-05-10 09:37:59 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig intltool glib libxml2 gtk3 gtkvnc gmp libgcrypt gnupg cyrus_sasl
|
|
|
|
shared_mime_info libvirt libcap_ng yajl
|
2014-12-16 08:35:39 +00:00
|
|
|
] ++ optionals spiceSupport [ spice_gtk spice_protocol libcap gdbm ];
|
2011-01-13 22:30:32 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A viewer for remote virtual machines";
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2014-05-10 09:37:59 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2011-01-13 22:30:32 +00:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://virt-manager.org/download.html";
|
|
|
|
};
|
|
|
|
};
|
2014-05-10 09:37:59 +01:00
|
|
|
}
|