git.iko.soy/typeable/nixpkgs
on master help sign in
virt-viewer: fix SPICE support

* Add missing dependency on 'spice_protocol' * Fix new build error which came now that ./configure enables SPICE support: building virt-viewer CCLD virt-viewer /nix/store/b8qhjrwf8sf9ggkjxqqav7f1m6w83bh0-binutils-2.23.1/bin/ld: cannot find -lgdbm /nix/store/b8qhjrwf8sf9ggkjxqqav7f1m6w83bh0-binutils-2.23.1/bin/ld: cannot find -lcap collect2: error: ld returned 1 exit status Fix by adding gddbm and libcap as inputs. Yes, libcap is needed _in addition_ to libcap_ng (I tested removing libcap_ng, it failed). Without this change, virt-viewer cannot be used with guests machines that uses SPICE.

commit477bc035688ff32e5aa10cc145e65ffdc730a207 authorBjørn Forsman <bjorn.forsman@gmail.com> dateTue 16 Dec 2014, 09:35 (12 years ago) parent8083802
1 file changed+6−3
pkgs/applications/virtualization/virt-viewer/default.nix+6−3
pkgs/applications/virtualization/virt-viewer/default.nix+6−3
@@ -1,8 +1,11 @@
11{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtkvnc, gmp
2−, libgcrypt, gnupg, cyrus_sasl, spiceSupport ? true, spice_gtk, shared_mime_info
3−, libvirt, libcap_ng, yajl
2+, libgcrypt, gnupg, cyrus_sasl, shared_mime_info, libvirt, libcap_ng, yajl
3+, spiceSupport ? true, spice_gtk ? null, spice_protocol ? null, libcap ? null, gdbm ? null
44}:
55
6+assert spiceSupport ->
7+ spice_gtk != null && spice_protocol != null && libcap != null && gdbm != null;
8+
69with stdenv.lib;
710
811let sourceInfo = rec {
@@ -24,7 +27,7 @@ stdenv.mkDerivation {
2427 buildInputs = [
2528 pkgconfig intltool glib libxml2 gtk3 gtkvnc gmp libgcrypt gnupg cyrus_sasl
2629 shared_mime_info libvirt libcap_ng yajl
27− ] ++ optional spiceSupport spice_gtk;
30+ ] ++ optionals spiceSupport [ spice_gtk spice_protocol libcap gdbm ];
2831
2932 meta = {
3033 description = "A viewer for remote virtual machines";