2019-08-24 22:00:00 +01:00
|
|
|
{ fetchurl
|
|
|
|
, stdenv
|
|
|
|
, 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
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, python3
|
|
|
|
, samba
|
|
|
|
, shared-mime-info
|
|
|
|
, sound-theme-freedesktop
|
|
|
|
, tracker
|
|
|
|
, tzdata
|
|
|
|
, udisks2
|
|
|
|
, upower
|
|
|
|
, vino
|
2019-08-27 06:06:35 +01:00
|
|
|
, gnome-user-share
|
|
|
|
, gnome-remote-desktop
|
2020-02-18 12:39:25 +00:00
|
|
|
, shadow
|
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-02-18 12:39:25 +00:00
|
|
|
version = "3.34.4";
|
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-02-18 12:39:25 +00:00
|
|
|
sha256 = "0bi7lsmr5hcf0v17brsa8j33p6i0wnh620bzwycmxryfp6s6vshp";
|
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
|
|
|
|
networkmanagerapplet
|
|
|
|
polkit
|
|
|
|
samba
|
|
|
|
tracker
|
|
|
|
udisks2
|
|
|
|
upower
|
|
|
|
vino
|
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;
|
2020-02-18 12:39:25 +00:00
|
|
|
usermod = "${shadow}/bin/usermod";
|
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
|
|
|
})
|
|
|
|
];
|
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
|
|
|
'';
|
|
|
|
|
2019-02-15 16:46:53 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgnome_session_libexecdir=${gnome-session}/libexec"
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Utilities to configure the GNOME desktop";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|