diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2014-01-10 20:43:55 +0100 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2014-01-11 22:01:52 +0100 |
commit | 4ede302207b728e94bc4d24d2d783f49b69e086b (patch) | |
tree | f63021adca8c8f65c8f0701988ac291858c1c1c6 /pkgs/development/libraries/spice-gtk/default.nix | |
parent | aed957bae710a77c000d01e6aba934f1b3008d0a (diff) | |
download | nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.tar nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.tar.gz nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.tar.bz2 nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.tar.lz nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.tar.xz nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.tar.zst nixlib-4ede302207b728e94bc4d24d2d783f49b69e086b.zip |
virt-manager: Add graphical support for the Spice protocol
Diffstat (limited to 'pkgs/development/libraries/spice-gtk/default.nix')
-rw-r--r-- | pkgs/development/libraries/spice-gtk/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/libraries/spice-gtk/default.nix b/pkgs/development/libraries/spice-gtk/default.nix new file mode 100644 index 000000000000..60bf24dfd784 --- /dev/null +++ b/pkgs/development/libraries/spice-gtk/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, pkgconfig, gtk, spice_protocol, intltool, celt_0_5_1 +, openssl, pulseaudio, pixman, gobjectIntrospection, libjpeg_turbo, zlib +, cyrus_sasl, python, pygtk, autoconf, automake, libtool }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "spice-gtk-0.22"; + + src = fetchurl { + url = "http://www.spice-space.org/download/gtk/${name}.tar.bz2"; + sha256 = "0fpsn6qhy9a701lmd4yym6qz6zhpp8xp6vw42al0b4592pcybs85"; + }; + + buildInputs = [ + gtk spice_protocol celt_0_5_1 openssl pulseaudio pixman gobjectIntrospection + libjpeg_turbo zlib cyrus_sasl python pygtk + ]; + + nativeBuildInputs = [ pkgconfig intltool libtool autoconf automake ]; + + NIX_CFLAGS_COMPILE = "-fno-stack-protector"; + + preConfigure = '' + substituteInPlace gtk/Makefile.am \ + --replace '=codegendir pygtk-2.0' '=codegendir pygobject-2.0' + + autoreconf -v --force --install + intltoolize -f + ''; + + configureFlags = [ + "--disable-maintainer-mode" + "--with-gtk=2.0" + ]; + + dontDisableStatic = true; # Needed by the coroutine test + + enableParallelBuilding = true; + + meta = { + description = "A GTK+2 and GTK+3 SPICE widget"; + longDescription = '' + spice-gtk is a GTK+2 and GTK+3 SPICE widget. It features glib-based + objects for SPICE protocol parsing and a gtk widget for embedding + the SPICE display into other applications such as virt-manager. + Python bindings are available too. + ''; + + homepage = http://www.spice-space.org/; + license = licenses.lgpl21; + + platforms = platforms.linux; + }; +} |