3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/gtk-vnc/default.nix

50 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, gobjectIntrospection
, python, gtk2, pygtk, gnutls, cairo, libtool, glib, pkgconfig, libtasn1
, libffi, cyrus_sasl, intltool, perl, perlPackages, libpulseaudio
, kbproto, libX11, libXext, xextproto, pygobject2, libgcrypt, gtk3, vala_0_23
2015-05-16 18:58:29 +01:00
, pygobject3, libogg, enableGTK3 ? false, libgpgerror }:
stdenv.mkDerivation rec {
name = "gtk-vnc-${version}";
version = "0.5.3";
src = fetchurl {
url = "mirror://gnome/sources/gtk-vnc/0.5/${name}.tar.xz";
sha256 = "1bww2ihxb3zzvifdrcsy1lifr664pvikq17hmr1hsm8fyk4ad46l";
};
buildInputs = [
python gnutls cairo libtool pkgconfig glib libffi libgcrypt
intltool cyrus_sasl libpulseaudio perl perlPackages.TextCSV
2015-05-16 18:58:29 +01:00
gobjectIntrospection libogg libgpgerror
] ++ (if enableGTK3 then [ gtk3 vala_0_23 pygobject3 ] else [ gtk2 pygtk pygobject2 ]);
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
configureFlags = [
"--with-python"
"--with-examples"
(if enableGTK3 then "--with-gtk=3.0" else "--with-gtk=2.0")
];
makeFlags = stdenv.lib.optionalString (!enableGTK3)
"CODEGENDIR=${pygobject2}/share/pygobject/2.0/codegen/ DEFSDIR=${pygtk}/share/pygtk/2.0/defs/";
2015-06-25 14:07:16 +01:00
# Fix broken .la files
preFixup = ''
sed 's,-lgpg-error,-L${libgpgerror.out}/lib -lgpg-error,' -i $out/lib/*.la
2015-06-25 14:07:16 +01:00
'';
meta = with stdenv.lib; {
description = "A GTK VNC widget";
maintainers = with maintainers; [ raskin offline ];
platforms = platforms.linux;
license = licenses.lgpl21;
};
passthru = {
updateInfo = {
downloadPage = "http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc";
};
};
}