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

79 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, fetchpatch
, meson
, ninja
, gobject-introspection
, gnutls
, cairo
, glib
, pkg-config
, cyrus_sasl
, libpulseaudio
, libgcrypt
, gtk3
, vala
, gettext
, perl
, gnome3
2019-08-22 22:14:37 +01:00
, gdk-pixbuf
, zlib
}:
2018-08-24 13:36:54 +01:00
stdenv.mkDerivation rec {
pname = "gtk-vnc";
version = "1.0.0";
2018-08-24 13:36:54 +01:00
outputs = [ "out" "bin" "man" "dev" ];
src = fetchurl {
2021-01-15 09:19:50 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8";
};
patches = [
2019-08-22 22:14:37 +01: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 13:36:54 +01:00
];
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gettext
perl # for pod2man
];
buildInputs = [
gnutls
cairo
2019-08-22 22:14:37 +01:00
gdk-pixbuf
zlib
glib
libgcrypt
cyrus_sasl
libpulseaudio
gtk3
];
2018-08-24 13:36:54 +01:00
passthru = {
updateScript = gnome3.updateScript {
2019-08-22 22:14:37 +01:00
packageName = pname;
versionPolicy = "none";
2018-08-24 13:36:54 +01:00
};
};
2015-06-25 14:07:16 +01:00
meta = with lib; {
description = "GTK VNC widget";
homepage = "https://wiki.gnome.org/Projects/gtk-vnc";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ raskin offline ];
platforms = platforms.linux;
};
}