2014-05-10 10:37:59 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtkvnc, gmp
|
|
|
|
, libgcrypt, gnupg, cyrus_sasl, spiceSupport ? true, spice_gtk, shared_mime_info
|
|
|
|
, libvirt, libcap_ng, yajl
|
|
|
|
}:
|
2011-01-13 23:30:32 +01:00
|
|
|
|
2014-05-10 10:37:59 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let sourceInfo = rec {
|
2011-01-13 23:30:32 +01:00
|
|
|
baseName="virt-viewer";
|
2014-05-10 10:37:59 +02:00
|
|
|
version="0.6.0";
|
2011-01-13 23:30:32 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
|
2014-05-10 10:37:59 +02:00
|
|
|
hash="0svalnr6k8rjadysnxixygk3bdx04asmwx75bhrbljyicba216v6";
|
|
|
|
}; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-01-13 23:30:32 +01:00
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
2014-05-10 10:37:59 +02:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig intltool glib libxml2 gtk3 gtkvnc gmp libgcrypt gnupg cyrus_sasl
|
|
|
|
shared_mime_info libvirt libcap_ng yajl
|
|
|
|
] ++ optional spiceSupport spice_gtk;
|
2011-01-13 23:30:32 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A viewer for remote virtual machines";
|
2014-05-10 10:37:59 +02:00
|
|
|
maintainers = maintainers.raskin;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2011-01-13 23:30:32 +01:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://virt-manager.org/download.html";
|
|
|
|
};
|
|
|
|
};
|
2014-05-10 10:37:59 +02:00
|
|
|
}
|