2018-03-15 12:23:56 +00:00
|
|
|
{ fetchurl, stdenv, substituteAll, meson, ninja, pkgconfig, gnome3, ibus, gettext, upower, wrapGAppsHook
|
2018-02-25 02:23:58 +00:00
|
|
|
, libcanberra-gtk3, accountsservice, libpwquality, libpulseaudio
|
2019-03-03 18:23:25 +00:00
|
|
|
, gdk_pixbuf, librsvg, libgudev, libsecret, gnome-color-manager
|
2016-09-18 20:35:23 +01:00
|
|
|
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
|
2019-03-03 18:23:25 +00:00
|
|
|
, libkrb5, networkmanagerapplet, networkmanager, glibc
|
|
|
|
, libwacom, samba, shared-mime-info, tzdata, libgnomekbd
|
2019-02-15 16:46:53 +00:00
|
|
|
, docbook_xsl, modemmanager, clutter, clutter-gtk, cheese, gnome-session
|
2019-02-13 21:47:50 +00:00
|
|
|
, fontconfig, sound-theme-freedesktop, grilo, python3
|
|
|
|
, gtk3, glib, glib-networking, gsettings-desktop-schemas
|
|
|
|
, gnome-desktop, gnome-settings-daemon, gnome-online-accounts
|
2019-03-03 18:23:25 +00:00
|
|
|
, vino, gnome-bluetooth, tracker, adwaita-icon-theme
|
2019-04-17 10:36:26 +01:00
|
|
|
, udisks2, gsound, libhandy, cups, mutter }:
|
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";
|
2019-03-03 18:23:25 +00:00
|
|
|
version = "3.32.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";
|
|
|
|
sha256 = "0xpcmwgnn29syi2kfxc8233a5f3j8cij5wcn76xmsmwxvxz5r85l";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
nativeBuildInputs = [
|
2019-03-03 18:23:25 +00:00
|
|
|
meson ninja pkgconfig gettext wrapGAppsHook libxslt docbook_xsl
|
2018-09-03 21:23:44 +01:00
|
|
|
shared-mime-info python3
|
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 = [
|
|
|
|
ibus gtk3 glib glib-networking upower gsettings-desktop-schemas
|
2018-02-25 02:23:58 +00:00
|
|
|
libxml2 gnome-desktop gnome-settings-daemon polkit libgtop
|
|
|
|
gnome-online-accounts libsoup colord libpulseaudio fontconfig colord-gtk
|
2019-03-03 18:23:25 +00:00
|
|
|
accountsservice libkrb5 networkmanagerapplet libwacom samba
|
|
|
|
grilo libpwquality vino libcanberra-gtk3 libgudev libsecret
|
2019-02-13 21:47:50 +00:00
|
|
|
gdk_pixbuf adwaita-icon-theme librsvg clutter clutter-gtk cheese
|
2017-12-17 02:57:50 +00:00
|
|
|
networkmanager modemmanager gnome-bluetooth tracker
|
2019-03-03 18:23:25 +00:00
|
|
|
udisks2 gsound libhandy
|
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
|
|
|
})
|
|
|
|
];
|
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)
|
|
|
|
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
|
|
|
|
--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;
|
|
|
|
};
|
|
|
|
}
|