base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gn / gnome-remote-desktop / package.nix
blob106f67a0ae9f7a203f580713f5ddbe6477b23144
2   stdenv,
3   lib,
4   fetchurl,
5   cairo,
6   meson,
7   ninja,
8   pkg-config,
9   python3,
10   asciidoc,
11   wrapGAppsHook3,
12   glib,
13   libei,
14   libepoxy,
15   libdrm,
16   nv-codec-headers-11,
17   pipewire,
18   systemd,
19   libsecret,
20   libnotify,
21   libopus,
22   libxkbcommon,
23   gdk-pixbuf,
24   freerdp3,
25   fdk_aac,
26   tpm2-tss,
27   fuse3,
28   gnome,
29   polkit,
32 stdenv.mkDerivation rec {
33   pname = "gnome-remote-desktop";
34   version = "47.1";
36   src = fetchurl {
37     url = "mirror://gnome/sources/gnome-remote-desktop/${lib.versions.major version}/gnome-remote-desktop-${version}.tar.xz";
38     hash = "sha256-BG0Py4m4jQskaczTUGPbW0KkUfkHEbU/H6OrFJGsGN4=";
39   };
41   nativeBuildInputs = [
42     meson
43     ninja
44     pkg-config
45     python3
46     asciidoc
47     wrapGAppsHook3
48   ];
50   buildInputs = [
51     cairo
52     freerdp3
53     fdk_aac
54     tpm2-tss
55     fuse3
56     gdk-pixbuf # For libnotify
57     glib
58     libei
59     libepoxy
60     libdrm
61     nv-codec-headers-11
62     libnotify
63     libopus
64     libsecret
65     libxkbcommon
66     pipewire
67     systemd
68     polkit # For polkit-gobject
69   ];
71   mesonFlags = [
72     "-Dconf_dir=/etc/gnome-remote-desktop"
73     "-Dsystemd_user_unit_dir=${placeholder "out"}/lib/systemd/user"
74     "-Dsystemd_system_unit_dir=${placeholder "out"}/lib/systemd/system"
75     "-Dsystemd_sysusers_dir=${placeholder "out"}/lib/sysusers.d"
76     "-Dsystemd_tmpfiles_dir=${placeholder "out"}/lib/tmpfiles.d"
77     "-Dtests=false" # Too deep of a rabbit hole.
78     # TODO: investigate who should be fixed here.
79     "-Dc_args=-I${freerdp3}/include/winpr3"
80   ];
82   passthru = {
83     updateScript = gnome.updateScript { packageName = "gnome-remote-desktop"; };
84   };
86   meta = with lib; {
87     homepage = "https://gitlab.gnome.org/GNOME/gnome-remote-desktop";
88     changelog = "https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/blob/${version}/NEWS?ref_type=tags";
89     description = "GNOME Remote Desktop server";
90     mainProgram = "grdctl";
91     maintainers = teams.gnome.members;
92     license = licenses.gpl2Plus;
93     platforms = platforms.linux;
94   };