mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
virt-viewer: fix build and clean up
This commit is contained in:
parent
8260022a1b
commit
729fb7a440
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtkvnc, gmp
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtkvnc, gmp
|
||||||
, libgcrypt, gnupg, cyrus_sasl, shared_mime_info, libvirt, libcap_ng, yajl
|
, libgcrypt, gnupg, cyrus_sasl, shared_mime_info, libvirt, libcap_ng, yajl
|
||||||
, gsettings_desktop_schemas, makeWrapper, numactl
|
, gsettings_desktop_schemas, makeWrapper, xen, numactl
|
||||||
, spiceSupport ? true, spice_gtk ? null, spice_protocol ? null, libcap ? null, gdbm ? null
|
, spiceSupport ? true, spice_gtk ? null, spice_protocol ? null, libcap ? null, gdbm ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -9,25 +9,20 @@ assert spiceSupport ->
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let sourceInfo = rec {
|
stdenv.mkDerivation rec {
|
||||||
baseName="virt-viewer";
|
baseName = "virt-viewer";
|
||||||
version="2.0";
|
version = "2.0";
|
||||||
name="${baseName}-${version}";
|
name = "${baseName}-${version}";
|
||||||
url="http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
|
|
||||||
hash="0dylhpk5rq9jz0l1cxs50q2s74z0wingygm1m33bmnmcnny87ig9";
|
|
||||||
}; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit (sourceInfo) name version;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = sourceInfo.url;
|
url = "http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
|
||||||
sha256 = sourceInfo.hash;
|
sha256 = "0dylhpk5rq9jz0l1cxs50q2s74z0wingygm1m33bmnmcnny87ig9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig intltool glib libxml2 gtk3 gtkvnc gmp libgcrypt gnupg cyrus_sasl numactl
|
pkgconfig intltool glib libxml2 gtk3 gtkvnc gmp libgcrypt gnupg cyrus_sasl
|
||||||
shared_mime_info libvirt libcap_ng yajl gsettings_desktop_schemas makeWrapper
|
shared_mime_info libvirt libcap_ng yajl gsettings_desktop_schemas makeWrapper
|
||||||
|
xen numactl
|
||||||
] ++ optionals spiceSupport [ spice_gtk spice_protocol libcap gdbm ];
|
] ++ optionals spiceSupport [ spice_gtk spice_protocol libcap gdbm ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -13469,7 +13469,7 @@ let
|
|||||||
|
|
||||||
neovim-pygui = pythonPackages.neovim_gui;
|
neovim-pygui = pythonPackages.neovim_gui;
|
||||||
|
|
||||||
virtviewer = callPackage ../applications/virtualization/virt-viewer {
|
virt-viewer = callPackage ../applications/virtualization/virt-viewer {
|
||||||
gtkvnc = gtkvnc.override { enableGTK3 = true; };
|
gtkvnc = gtkvnc.override { enableGTK3 = true; };
|
||||||
spice_gtk = spice_gtk.override { enableGTK3 = true; };
|
spice_gtk = spice_gtk.override { enableGTK3 = true; };
|
||||||
};
|
};
|
||||||
@ -15865,6 +15865,7 @@ aliases = with self; rec {
|
|||||||
tftp_hpa = tftp-hpa; # added 2015-04-03
|
tftp_hpa = tftp-hpa; # added 2015-04-03
|
||||||
manpages = man-pages; # added 2015-12-06
|
manpages = man-pages; # added 2015-12-06
|
||||||
mssys = ms-sys; # added 2015-12-13
|
mssys = ms-sys; # added 2015-12-13
|
||||||
|
virtviewer = virt-viewer; # added 2015-12-24
|
||||||
};
|
};
|
||||||
|
|
||||||
tweakAlias = _n: alias: with lib;
|
tweakAlias = _n: alias: with lib;
|
||||||
|
Loading…
Reference in New Issue
Block a user