summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/core/vino/default.nix
blob: abfe8b2e03922833c488b1a8272cf2551cfc6d8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{ stdenv
, fetchFromGitLab
, wrapGAppsHook
, pkgconfig
, gnome3
, gtk3
, glib
, intltool
, libXtst
, libnotify
, libsoup
, libsecret
, gnutls
, libgcrypt
, avahi
, zlib
, libjpeg
, libXdamage
, libXfixes
, libXext
, networkmanager
, gnome-common
, libtool
, automake
, autoconf
, telepathySupport ? false
, dbus-glib ? null
, telepathy-glib ? null
}:

stdenv.mkDerivation {
  pname = "vino";
  version = "unstable-2019-07-08";

  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    owner = "GNOME";
    repo = "vino";
    rev = "aed81a798558c8127b765cd4fb4dc726d10f1e21";
    sha256 = "16r4cj5nsygmd9v97nq6d1yhynzak9hdnaprcdbmwfhh0c9w8jv3";
  };

  doCheck = true;

  nativeBuildInputs = [
    autoconf
    automake
    gnome-common
    intltool
    libtool
    pkgconfig
    wrapGAppsHook
  ];

  buildInputs = [
    avahi
    glib
    gnome3.adwaita-icon-theme
    gnutls
    gtk3
    libXdamage
    libXext
    libXfixes
    libXtst
    libgcrypt
    libjpeg
    libnotify
    libsecret
    libsoup
    networkmanager
    zlib
  ]
  ++ stdenv.lib.optionals telepathySupport [ dbus-glib telepathy-glib ]
  ;

  preConfigure = ''
    NOCONFIGURE=1 ./autogen.sh
  '';

  postInstall = stdenv.lib.optionalString (!telepathySupport) ''
    rm -f $out/share/dbus-1/services/org.freedesktop.Telepathy.Client.Vino.service
  '';

  passthru = {
    # updateScript = gnome3.updateScript {
    #   packageName = "vino";
    #   attrPath = "gnome3.vino";
    # };
  };

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Projects/Vino;
    description = "GNOME desktop sharing server";
    maintainers = gnome3.maintainers;
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}