fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / gn / gnome-settings-daemon43 / package.nix
blob23d0a8eaa7206f7419383e2f920ba09d1cb5e657
2   stdenv,
3   lib,
4   fetchpatch,
5   substituteAll,
6   fetchurl,
7   meson,
8   ninja,
9   pkg-config,
10   perl,
11   gettext,
12   gtk3,
13   glib,
14   libnotify,
15   libgnomekbd,
16   lcms2,
17   libpulseaudio,
18   alsa-lib,
19   libcanberra-gtk3,
20   upower,
21   colord,
22   libgweather,
23   polkit,
24   gsettings-desktop-schemas,
25   geoclue2,
26   systemd,
27   libgudev,
28   libwacom,
29   libxslt,
30   libxml2,
31   modemmanager,
32   networkmanager,
33   gnome-desktop,
34   geocode-glib_2,
35   docbook_xsl,
36   wrapGAppsHook3,
37   python3,
38   tzdata,
39   nss,
40   gcr_4,
41   gnome-session-ctl,
44 stdenv.mkDerivation (finalAttrs: {
45   pname = "gnome-settings-daemon";
46   version = "43.0";
48   src = fetchurl {
49     url = "mirror://gnome/sources/gnome-settings-daemon/${lib.versions.major finalAttrs.version}/gnome-settings-daemon-${finalAttrs.version}.tar.xz";
50     hash = "sha256-NRO7JPxvgYFmciOmSgZ1NP3M879mMmqUA9OLDw1gE9A=";
51   };
53   patches = [
54     # https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/202
55     (fetchpatch {
56       url = "https://gitlab.gnome.org/GNOME/gnome-settings-daemon/commit/aae1e774dd9de22fe3520cf9eb2bfbf7216f5eb0.patch";
57       hash = "sha256-O4m0rOW8Zrgu3Q0p0OA8b951VC0FjYbOUk9MLzB9icI=";
58     })
60     (substituteAll {
61       src = ./fix-paths.patch;
62       inherit tzdata;
63     })
64   ];
66   nativeBuildInputs = [
67     meson
68     ninja
69     pkg-config
70     perl
71     gettext
72     libxml2
73     libxslt
74     docbook_xsl
75     wrapGAppsHook3
76     python3
77   ];
79   buildInputs = [
80     gtk3
81     glib
82     gsettings-desktop-schemas
83     modemmanager
84     networkmanager
85     libnotify
86     libgnomekbd # for org.gnome.libgnomekbd.keyboard schema
87     gnome-desktop
88     lcms2
89     libpulseaudio
90     alsa-lib
91     libcanberra-gtk3
92     upower
93     colord
94     libgweather
95     nss
96     polkit
97     geocode-glib_2
98     geoclue2
99     systemd
100     libgudev
101     libwacom
102     gcr_4
103   ];
105   mesonFlags = [
106     "-Dudev_dir=${placeholder "out"}/lib/udev"
107     "-Dgnome_session_ctl_path=${gnome-session-ctl}/libexec/gnome-session-ctl"
108   ];
110   # Default for release buildtype but passed manually because
111   # we're using plain
112   env.NIX_CFLAGS_COMPILE = "-DG_DISABLE_CAST_CHECKS";
114   postPatch = ''
115     for f in gnome-settings-daemon/codegen.py plugins/power/gsd-power-constants-update.pl; do
116       chmod +x $f
117       patchShebangs $f
118     done
119   '';
121   meta = with lib; {
122     description = "GNOME Settings Daemon";
123     homepage = "https://gitlab.gnome.org/GNOME/gnome-settings-daemon/";
124     license = licenses.gpl2Plus;
125     maintainers = teams.pantheon.members;
126     platforms = platforms.linux;
127   };