nixpkgs-suyu/pkgs/tools/admin/gtk-vnc/default.nix

79 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, fetchpatch
, meson
, ninja
, gobject-introspection
, gnutls
, cairo
, glib
, pkgconfig
, cyrus_sasl
, libpulseaudio
, libgcrypt
, gtk3
, vala
, gettext
, perl
, gnome3
2019-08-22 23:14:37 +02:00
, gdk-pixbuf
, zlib
}:
2018-08-24 14:36:54 +02:00
stdenv.mkDerivation rec {
pname = "gtk-vnc";
version = "1.0.0";
2018-08-24 14:36:54 +02:00
outputs = [ "out" "bin" "man" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8";
};
patches = [
2019-08-22 23:14:37 +02:00
# Fix undeclared gio-unix-2.0 in example program.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gtk-vnc/commit/8588bc1c8321152ddc5086ca9b2c03a7f511e0d0.patch";
sha256 = "0i1iapsbngl1mhnz22dd73mnzk68qc4n51pqdhnm18zqc8pawvh4";
})
2018-08-24 14:36:54 +02:00
];
nativeBuildInputs = [
meson
ninja
pkgconfig
gobject-introspection
vala
gettext
perl # for pod2man
];
buildInputs = [
gnutls
cairo
2019-08-22 23:14:37 +02:00
gdk-pixbuf
zlib
glib
libgcrypt
cyrus_sasl
libpulseaudio
gtk3
];
2018-08-24 14:36:54 +02:00
passthru = {
updateScript = gnome3.updateScript {
2019-08-22 23:14:37 +02:00
packageName = pname;
versionPolicy = "none";
2018-08-24 14:36:54 +02:00
};
};
2015-06-25 15:07:16 +02:00
meta = with stdenv.lib; {
description = "GTK VNC widget";
homepage = "https://wiki.gnome.org/Projects/gtk-vnc";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ raskin offline ];
platforms = platforms.linux;
};
}