summary refs log blame commit diff
path: root/pkgs/desktops/gnome-3/core/gnome-remote-desktop/default.nix
blob: 0971e65e5a475cd3e78dac13b0d51c850a8f6841 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                          
                                                                                    

                         
                                 
                    





                                  
                                                                    




                                                                      
                                                          
                              


                















                                                                           
{ stdenv, fetchFromGitLab, meson, ninja, pkgconfig, python3, wrapGAppsHook
, glib, pipewire, systemd, libvncserver, libsecret, libnotify, gdk-pixbuf, gnome3 }:

stdenv.mkDerivation rec {
  pname = "gnome-remote-desktop";
  version = "0.1.8";

  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    owner = "jadahl";
    repo = "gnome-remote-desktop";
    rev = version;
    sha256 = "1wcvk0w4p0wnqnrjkbwvqcby9dd4nj0cm9cz0fqna31qfjrvb913";
  };

  nativeBuildInputs = [ meson ninja pkgconfig python3 wrapGAppsHook ];

  buildInputs = [
    glib pipewire systemd libvncserver libsecret libnotify
    gdk-pixbuf # For libnotify
  ];

  postPatch = ''
    chmod +x meson_post_install.py # patchShebangs requires executable file
    patchShebangs meson_post_install.py
  '';

  mesonFlags = [
    "-Dsystemd_user_unit_dir=${placeholder "out"}/lib/systemd/user"
  ];

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Projects/Mutter/RemoteDesktop;
    description = "GNOME Remote Desktop server";
    maintainers = gnome3.maintainers;
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
  };
}