1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/tools/admin/gtk-vnc/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, gobjectIntrospection
2016-10-01 12:31:10 +01:00
, gnutls, cairo, libtool, glib, pkgconfig, libtasn1
, libffi, cyrus_sasl, intltool, perl, perlPackages, libpulseaudio
, kbproto, libX11, libXext, xextproto, libgcrypt, gtk3, vala_0_32
2016-10-01 12:31:10 +01:00
, libogg, libgpgerror, pythonPackages }:
let
2016-10-01 12:31:10 +01:00
inherit (pythonPackages) pygobject3 python;
in stdenv.mkDerivation rec {
name = "gtk-vnc-${version}";
2017-02-15 13:00:49 +00:00
version = "0.7.0";
src = fetchurl {
2017-02-15 13:00:49 +00:00
url = "mirror://gnome/sources/gtk-vnc/${stdenv.lib.strings.substring 0 3 version}/${name}.tar.xz";
sha256 = "0gj8dpy3sj4dp810gy67spzh5f0jd8aqg69clcwqjcskj1yawbiw";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
python gnutls cairo libtool glib libffi libgcrypt
intltool cyrus_sasl libpulseaudio perl perlPackages.TextCSV
2015-05-16 18:58:29 +01:00
gobjectIntrospection libogg libgpgerror
gtk3 vala_0_32 pygobject3
];
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
configureFlags = [
"--with-python"
"--with-examples"
];
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";
};
};
}