2019-08-24 22:00:00 +01:00
|
|
|
{ fetchurl
|
2021-03-21 05:15:46 +00:00
|
|
|
, fetchpatch
|
|
|
|
, lib
|
|
|
|
, stdenv
|
2019-08-24 22:00:00 +01:00
|
|
|
, substituteAll
|
|
|
|
, accountsservice
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, cheese
|
|
|
|
, clutter
|
|
|
|
, clutter-gtk
|
|
|
|
, colord
|
|
|
|
, colord-gtk
|
|
|
|
, cups
|
2021-03-21 05:15:46 +00:00
|
|
|
, docbook-xsl-nons
|
2019-08-24 22:00:00 +01:00
|
|
|
, fontconfig
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, glib-networking
|
|
|
|
, glibc
|
|
|
|
, gnome-bluetooth
|
|
|
|
, gnome-color-manager
|
|
|
|
, gnome-desktop
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gnome-settings-daemon
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2019-08-24 22:00:00 +01:00
|
|
|
, grilo
|
2019-08-24 22:01:40 +01:00
|
|
|
, grilo-plugins
|
2019-08-24 22:00:00 +01:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gsound
|
|
|
|
, gtk3
|
|
|
|
, ibus
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libgnomekbd
|
|
|
|
, libgtop
|
|
|
|
, libgudev
|
|
|
|
, libhandy
|
|
|
|
, libkrb5
|
|
|
|
, libpulseaudio
|
|
|
|
, libpwquality
|
|
|
|
, librsvg
|
|
|
|
, libsecret
|
|
|
|
, libsoup
|
|
|
|
, libwacom
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, meson
|
|
|
|
, modemmanager
|
|
|
|
, mutter
|
|
|
|
, networkmanager
|
|
|
|
, networkmanagerapplet
|
2020-03-16 00:09:39 +00:00
|
|
|
, libnma
|
2019-08-24 22:00:00 +01:00
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-08-24 22:00:00 +01:00
|
|
|
, polkit
|
|
|
|
, python3
|
|
|
|
, samba
|
|
|
|
, shared-mime-info
|
|
|
|
, sound-theme-freedesktop
|
|
|
|
, tracker
|
2021-02-22 13:43:37 +00:00
|
|
|
, tracker-miners
|
2019-08-24 22:00:00 +01:00
|
|
|
, tzdata
|
|
|
|
, udisks2
|
|
|
|
, upower
|
2020-02-09 00:35:52 +00:00
|
|
|
, epoxy
|
2019-08-27 06:06:35 +01:00
|
|
|
, gnome-user-share
|
|
|
|
, gnome-remote-desktop
|
2019-08-24 22:00:00 +01:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-03 18:23:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 12:23:56 +00:00
|
|
|
pname = "gnome-control-center";
|
2021-03-21 05:15:46 +00:00
|
|
|
version = "40.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 05:15:46 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-zMmlc2UXOFEJrlpZkGwlgkTdh5t1A61ZhM9BZVyzAvE=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2021-02-22 13:43:37 +00:00
|
|
|
|
2021-03-21 05:15:46 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths.patch;
|
|
|
|
gcm = gnome-color-manager;
|
|
|
|
gnome_desktop = gnome-desktop;
|
|
|
|
inherit glibc libgnomekbd tzdata;
|
|
|
|
inherit cups networkmanagerapplet;
|
|
|
|
})
|
|
|
|
|
|
|
|
# Fix startup assertion in power panel.
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/974
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/commit/9acaa10567c94048657c69538e5d7813f82c4224.patch";
|
|
|
|
sha256 = "59GeTPcG2UiVTL4VTS/TP0p0QkAQpm3VgvuAiw64wUU=";
|
|
|
|
})
|
|
|
|
];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
nativeBuildInputs = [
|
2021-03-21 05:15:46 +00:00
|
|
|
docbook-xsl-nons
|
2019-08-24 22:00:00 +01:00
|
|
|
gettext
|
|
|
|
libxslt
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-08-24 22:00:00 +01:00
|
|
|
python3
|
|
|
|
shared-mime-info
|
|
|
|
wrapGAppsHook
|
2017-12-17 02:57:50 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
2019-08-24 22:00:00 +01:00
|
|
|
accountsservice
|
|
|
|
adwaita-icon-theme
|
|
|
|
cheese
|
|
|
|
clutter
|
|
|
|
clutter-gtk
|
|
|
|
colord
|
|
|
|
colord-gtk
|
2021-02-22 13:43:37 +00:00
|
|
|
epoxy
|
2019-08-24 22:00:00 +01:00
|
|
|
fontconfig
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gnome-bluetooth
|
|
|
|
gnome-desktop
|
|
|
|
gnome-online-accounts
|
2019-08-27 06:06:35 +01:00
|
|
|
gnome-remote-desktop # optional, sharing panel
|
2019-08-24 22:00:00 +01:00
|
|
|
gnome-settings-daemon
|
2019-08-27 06:06:35 +01:00
|
|
|
gnome-user-share # optional, sharing panel
|
2019-08-24 22:00:00 +01:00
|
|
|
grilo
|
2019-08-24 22:01:40 +01:00
|
|
|
grilo-plugins # for setting wallpaper from Flickr
|
2019-08-24 22:00:00 +01:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gsound
|
|
|
|
gtk3
|
|
|
|
ibus
|
|
|
|
libcanberra-gtk3
|
|
|
|
libgtop
|
|
|
|
libgudev
|
|
|
|
libhandy
|
|
|
|
libkrb5
|
2021-02-22 13:43:37 +00:00
|
|
|
libnma
|
2019-08-24 22:00:00 +01:00
|
|
|
libpulseaudio
|
|
|
|
libpwquality
|
|
|
|
librsvg
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libwacom
|
|
|
|
libxml2
|
|
|
|
modemmanager
|
2019-06-14 14:01:03 +01:00
|
|
|
mutter # schemas for the keybindings
|
2019-08-24 22:00:00 +01:00
|
|
|
networkmanager
|
|
|
|
polkit
|
|
|
|
samba
|
|
|
|
tracker
|
2021-02-22 13:43:37 +00:00
|
|
|
tracker-miners # for search locations dialog
|
2019-08-24 22:00:00 +01:00
|
|
|
udisks2
|
|
|
|
upower
|
2017-12-17 02:57:50 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:23:56 +00:00
|
|
|
postPatch = ''
|
2018-09-05 01:46:15 +01:00
|
|
|
chmod +x build-aux/meson/meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/meson/meson_post_install.py
|
2018-03-15 12:23:56 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
preFixup = ''
|
2017-05-26 08:00:58 +01:00
|
|
|
gappsWrapperArgs+=(
|
2018-03-22 18:53:48 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
2017-10-01 13:47:41 +01:00
|
|
|
# Thumbnailers (for setting user profile pictures)
|
2019-05-22 12:03:39 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
2017-10-01 13:47:41 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
2019-04-17 10:36:26 +01:00
|
|
|
# WM keyboard shortcuts
|
|
|
|
--prefix XDG_DATA_DIRS : "${mutter}/share"
|
2017-05-26 08:00:58 +01:00
|
|
|
)
|
2016-09-18 20:35:23 +01:00
|
|
|
for i in $out/share/applications/*; do
|
2018-03-15 12:23:56 +00:00
|
|
|
substituteInPlace $i --replace "Exec=gnome-control-center" "Exec=$out/bin/gnome-control-center"
|
2016-09-18 20:35:23 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-03-09 23:53:54 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-15 12:23:56 +00:00
|
|
|
packageName = pname;
|
2021-05-07 22:18:14 +01:00
|
|
|
attrPath = "gnome.${pname}";
|
2018-03-09 23:53:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Utilities to configure the GNOME desktop";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|