2019-08-24 22:00:00 +01:00
|
|
|
{ fetchurl
|
2021-03-21 05:15:46 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2019-08-24 22:00:00 +01:00
|
|
|
, substituteAll
|
|
|
|
, accountsservice
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, colord
|
2022-02-16 18:34:36 +00:00
|
|
|
, colord-gtk4
|
2019-08-24 22:00:00 +01:00
|
|
|
, cups
|
2024-02-13 11:26:05 +00:00
|
|
|
, dbus
|
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
|
2024-02-13 11:26:05 +00:00
|
|
|
, gcr_4
|
2019-08-24 22:00:00 +01:00
|
|
|
, glibc
|
|
|
|
, gnome-bluetooth
|
|
|
|
, gnome-color-manager
|
|
|
|
, gnome-desktop
|
|
|
|
, gnome-online-accounts
|
|
|
|
, gnome-settings-daemon
|
2023-08-10 09:27:35 +01:00
|
|
|
, gnome-tecla
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2019-08-24 22:00:00 +01:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gsound
|
2023-10-15 18:05:42 +01:00
|
|
|
, gst_all_1
|
2022-02-16 18:34:36 +00:00
|
|
|
, gtk4
|
2019-08-24 22:00:00 +01:00
|
|
|
, ibus
|
2024-05-28 08:05:35 +01:00
|
|
|
, json-glib
|
2019-08-24 22:00:00 +01:00
|
|
|
, libgtop
|
|
|
|
, libgudev
|
2022-02-16 18:34:36 +00:00
|
|
|
, libadwaita
|
2019-08-24 22:00:00 +01:00
|
|
|
, libkrb5
|
2023-11-24 05:33:02 +00:00
|
|
|
, libjxl
|
2019-08-24 22:00:00 +01:00
|
|
|
, libpulseaudio
|
|
|
|
, libpwquality
|
|
|
|
, librsvg
|
2022-10-21 08:48:14 +01:00
|
|
|
, webp-pixbuf-loader
|
2019-08-24 22:00:00 +01:00
|
|
|
, libsecret
|
2024-02-13 11:26:05 +00:00
|
|
|
, libsoup_3
|
2019-08-24 22:00:00 +01:00
|
|
|
, libwacom
|
2024-02-13 11:26:05 +00:00
|
|
|
, libXi
|
2019-08-24 22:00:00 +01:00
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, meson
|
|
|
|
, modemmanager
|
|
|
|
, mutter
|
|
|
|
, networkmanager
|
2022-05-04 22:24:13 +01:00
|
|
|
, networkmanagerapplet
|
2022-02-16 18:34:36 +00:00
|
|
|
, libnma-gtk4
|
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
|
2023-09-02 03:30:34 +01:00
|
|
|
, setxkbmap
|
2023-04-22 10:39:05 +01:00
|
|
|
, shadow
|
2019-08-24 22:00:00 +01:00
|
|
|
, 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
|
2021-11-11 04:35:34 +00:00
|
|
|
, libepoxy
|
2019-08-27 06:06:35 +01:00
|
|
|
, gnome-user-share
|
|
|
|
, gnome-remote-desktop
|
2024-04-05 15:37:35 +01:00
|
|
|
, wrapGAppsHook4
|
2024-07-02 15:17:13 +01:00
|
|
|
, xorgserver
|
2019-08-24 22:00:00 +01:00
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2023-12-09 11:18:35 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2018-03-15 12:23:56 +00:00
|
|
|
pname = "gnome-control-center";
|
2024-07-02 15:17:13 +01:00
|
|
|
version = "46.3";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-12-09 11:18:35 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-control-center/${lib.versions.major finalAttrs.version}/gnome-control-center-${finalAttrs.version}.tar.xz";
|
2024-07-02 15:17:13 +01:00
|
|
|
hash = "sha256-l9xsfR3uGVkU88vIRbaBZLdhFIDYk760EQBsFerkbLk=";
|
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;
|
2023-08-10 09:27:35 +01:00
|
|
|
inherit glibc tzdata shadow;
|
2022-05-04 22:24:13 +01:00
|
|
|
inherit cups networkmanagerapplet;
|
2021-03-21 05:15:46 +00:00
|
|
|
})
|
|
|
|
];
|
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
|
2024-04-05 15:37:35 +01:00
|
|
|
wrapGAppsHook4
|
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
|
|
|
|
colord
|
2022-02-16 18:34:36 +00:00
|
|
|
colord-gtk4
|
2024-02-13 11:26:05 +00:00
|
|
|
cups
|
2019-08-24 22:00:00 +01:00
|
|
|
fontconfig
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
glib-networking
|
2024-02-13 11:26:05 +00:00
|
|
|
gcr_4
|
2019-08-24 22:00:00 +01:00
|
|
|
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
|
2023-09-21 15:49:18 +01:00
|
|
|
gnome-tecla
|
2019-08-27 06:06:35 +01:00
|
|
|
gnome-user-share # optional, sharing panel
|
2019-08-24 22:00:00 +01:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gsound
|
2022-02-16 18:34:36 +00:00
|
|
|
gtk4
|
2019-08-24 22:00:00 +01:00
|
|
|
ibus
|
2024-05-28 08:05:35 +01:00
|
|
|
json-glib
|
2024-02-13 11:26:05 +00:00
|
|
|
libepoxy
|
2019-08-24 22:00:00 +01:00
|
|
|
libgtop
|
|
|
|
libgudev
|
2022-02-16 18:34:36 +00:00
|
|
|
libadwaita
|
2019-08-24 22:00:00 +01:00
|
|
|
libkrb5
|
2022-02-16 18:34:36 +00:00
|
|
|
libnma-gtk4
|
2019-08-24 22:00:00 +01:00
|
|
|
libpulseaudio
|
|
|
|
libpwquality
|
|
|
|
librsvg
|
|
|
|
libsecret
|
2024-02-13 11:26:05 +00:00
|
|
|
libsoup_3
|
2019-08-24 22:00:00 +01:00
|
|
|
libwacom
|
2024-02-13 11:26:05 +00:00
|
|
|
libXi
|
2019-08-24 22:00:00 +01:00
|
|
|
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
|
2023-10-15 18:05:42 +01:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
# For animations in Mouse panel.
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
]);
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2023-09-02 03:30:34 +01:00
|
|
|
nativeCheckInputs = [
|
2024-02-13 11:26:05 +00:00
|
|
|
dbus
|
2024-07-02 15:17:13 +01:00
|
|
|
python3.pkgs.pygobject3 # for test-networkmanager-service.py
|
2023-09-02 03:30:34 +01:00
|
|
|
python3.pkgs.python-dbusmock
|
|
|
|
setxkbmap
|
2024-07-02 15:17:13 +01:00
|
|
|
xorgserver
|
2023-09-02 03:30:34 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-02-16 18:34:36 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# For ITS rules
|
|
|
|
addToSearchPath "XDG_DATA_DIRS" "${polkit.out}/share"
|
2018-03-15 12:23:56 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-02 15:17:13 +01:00
|
|
|
preCheck = ''
|
|
|
|
# Basically same as https://github.com/NixOS/nixpkgs/pull/141299
|
|
|
|
export ADW_DISABLE_PORTAL=1
|
|
|
|
export XDG_DATA_DIRS=${glib.getSchemaDataDirPath gsettings-desktop-schemas}
|
2023-09-02 03:30:34 +01:00
|
|
|
'';
|
|
|
|
|
2022-10-21 08:48:14 +01:00
|
|
|
postInstall = ''
|
2023-11-24 05:33:02 +00:00
|
|
|
# Pull in WebP and JXL support for gnome-backgrounds.
|
2022-10-21 08:48:14 +01:00
|
|
|
# In postInstall to run before gappsWrapperArgsHook.
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
|
|
|
|
extraLoaders = [
|
2023-11-24 05:33:02 +00:00
|
|
|
libjxl
|
2022-10-21 08:48:14 +01:00
|
|
|
librsvg
|
|
|
|
webp-pixbuf-loader
|
|
|
|
];
|
|
|
|
}}"
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2022-12-25 18:51:07 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2018-03-09 23:53:54 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2023-12-09 11:18:35 +00:00
|
|
|
packageName = "gnome-control-center";
|
|
|
|
attrPath = "gnome.gnome-control-center";
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gnome-control-center";
|
2016-09-18 20:35:23 +01:00
|
|
|
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;
|
|
|
|
};
|
2023-12-09 11:18:35 +00:00
|
|
|
})
|