2019-08-24 22:00:00 +01:00
|
|
|
{ fetchurl
|
2020-09-25 14:22:37 +01:00
|
|
|
, fetchFromGitLab
|
2020-10-13 21:43:45 +01:00
|
|
|
, fetchpatch
|
2021-01-11 07:54:33 +00:00
|
|
|
, lib, stdenv
|
2019-08-24 22:00:00 +01:00
|
|
|
, substituteAll
|
|
|
|
, accountsservice
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, cheese
|
|
|
|
, clutter
|
|
|
|
, clutter-gtk
|
|
|
|
, colord
|
|
|
|
, colord-gtk
|
|
|
|
, cups
|
|
|
|
, docbook_xsl
|
|
|
|
, fontconfig
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, glib-networking
|
|
|
|
, glibc
|
|
|
|
, gnome-bluetooth
|
|
|
|
, gnome-color-manager
|
|
|
|
, gnome-desktop
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gnome-session
|
|
|
|
, gnome-settings-daemon
|
|
|
|
, gnome3
|
|
|
|
, 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
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, python3
|
|
|
|
, samba
|
|
|
|
, shared-mime-info
|
|
|
|
, sound-theme-freedesktop
|
|
|
|
, tracker
|
|
|
|
, 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";
|
2020-10-11 17:38:50 +01:00
|
|
|
version = "3.38.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-03 18:23:25 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-10-11 17:38:50 +01:00
|
|
|
sha256 = "09i011hf23s2i4wim43vjys7y4y43cxl3kyvrnrwqvqgc5n0144d";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2020-09-25 14:22:37 +01:00
|
|
|
# See https://mail.gnome.org/archives/distributor-list/2020-September/msg00001.html
|
|
|
|
prePatch = (import ../gvc-with-ucm-prePatch.nix {
|
|
|
|
inherit fetchFromGitLab;
|
|
|
|
});
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
nativeBuildInputs = [
|
2019-08-24 22:00:00 +01:00
|
|
|
docbook_xsl
|
|
|
|
gettext
|
|
|
|
libxslt
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
2020-03-16 00:09:39 +00:00
|
|
|
libnma
|
2019-08-24 22:00:00 +01:00
|
|
|
polkit
|
|
|
|
samba
|
|
|
|
tracker
|
|
|
|
udisks2
|
|
|
|
upower
|
2020-02-09 00:35:52 +00:00
|
|
|
epoxy
|
2017-12-17 02:57:50 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-09 23:53:54 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths.patch;
|
|
|
|
gcm = gnome-color-manager;
|
2019-04-23 00:14:35 +01:00
|
|
|
gnome_desktop = gnome-desktop;
|
2018-03-09 23:53:54 +00:00
|
|
|
inherit glibc libgnomekbd tzdata;
|
2019-03-03 18:23:25 +00:00
|
|
|
inherit cups networkmanagerapplet;
|
2018-03-09 23:53:54 +00:00
|
|
|
})
|
2020-10-13 21:43:45 +01:00
|
|
|
|
|
|
|
# Fix double free when leaving user accounts panel.
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/853
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/commit/e80b4b5f58f448c5a3d38721f7bba32c413d46e7.patch";
|
|
|
|
sha256 = "GffsSU/uNS0Fg2lXbOuD/BrWBT4D2VKgWNGifG0FBUw=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/commit/64686cfee330849945f6ff4dcc43393eb1a6e59c.patch";
|
|
|
|
sha256 = "4VJU0q6qOtGzd/hmDncckInfEjCkC8+lXmDgxwc4VJU=";
|
|
|
|
})
|
2018-03-09 23:53:54 +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 = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2018-03-15 12:23:56 +00:00
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${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;
|
|
|
|
};
|
|
|
|
}
|