2018-03-09 23:53:54 +00:00
|
|
|
{ fetchurl, stdenv, substituteAll, pkgconfig, gnome3, ibus, intltool, upower, wrapGAppsHook
|
2018-02-25 02:23:58 +00:00
|
|
|
, libcanberra-gtk3, accountsservice, libpwquality, libpulseaudio
|
2018-03-09 23:53:54 +00:00
|
|
|
, gdk_pixbuf, librsvg, libnotify, libgudev, gnome-color-manager
|
2016-09-18 20:35:23 +01:00
|
|
|
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
|
2018-03-09 23:53:54 +00:00
|
|
|
, cracklib, libkrb5, networkmanagerapplet, networkmanager, glibc
|
|
|
|
, libwacom, samba, shared-mime-info, tzdata, libtool, libgnomekbd
|
2018-02-25 02:23:58 +00:00
|
|
|
, docbook_xsl, docbook_xsl_ns, modemmanager, clutter, clutter-gtk
|
2016-09-18 20:35:23 +01:00
|
|
|
, fontconfig, sound-theme-freedesktop, grilo }:
|
|
|
|
|
2018-03-09 23:53:54 +00:00
|
|
|
let
|
2018-03-13 01:03:18 +00:00
|
|
|
version = "3.28.0";
|
2018-03-09 23:53:54 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "gnome-control-center-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-control-center/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 01:03:18 +00:00
|
|
|
sha256 = "0nyx5nl2rky0249rdcy0hsccnxf3angpya0q859rrbrwaixqnxh3";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig intltool wrapGAppsHook libtool libxslt docbook_xsl docbook_xsl_ns
|
2018-02-25 02:23:58 +00:00
|
|
|
shared-mime-info
|
2017-12-17 02:57:50 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
buildInputs = with gnome3; [
|
2018-02-25 02:23:58 +00:00
|
|
|
ibus gtk glib glib-networking upower gsettings-desktop-schemas
|
|
|
|
libxml2 gnome-desktop gnome-settings-daemon polkit libgtop
|
|
|
|
gnome-online-accounts libsoup colord libpulseaudio fontconfig colord-gtk
|
2017-12-17 02:57:50 +00:00
|
|
|
accountsservice libkrb5 networkmanagerapplet libwacom samba libnotify
|
2018-02-25 02:23:58 +00:00
|
|
|
grilo libpwquality cracklib vino libcanberra-gtk3 libgudev
|
|
|
|
gdk_pixbuf defaultIconTheme librsvg clutter clutter-gtk
|
2017-12-17 02:57:50 +00:00
|
|
|
networkmanager modemmanager gnome-bluetooth tracker
|
|
|
|
];
|
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;
|
|
|
|
inherit glibc libgnomekbd tzdata;
|
|
|
|
})
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-12-17 02:57:50 +00:00
|
|
|
preFixup = ''
|
2017-05-26 08:00:58 +01:00
|
|
|
gappsWrapperArgs+=(
|
2018-02-25 02:23:58 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${gnome3.gnome-themes-standard}/share:${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"
|
2017-05-26 08:00:58 +01:00
|
|
|
)
|
2016-09-18 20:35:23 +01:00
|
|
|
for i in $out/share/applications/*; do
|
|
|
|
substituteInPlace $i --replace "gnome-control-center" "$out/bin/gnome-control-center"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-03-09 23:53:54 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-control-center";
|
|
|
|
attrPath = "gnome3.gnome-control-center";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|