nixpkgs/pkgs/desktops/gnome-3/core/gnome-control-center/default.nix

75 lines
2.5 KiB
Nix
Raw Normal View History

2018-03-15 13:23:56 +01:00
{ fetchurl, stdenv, substituteAll, meson, ninja, pkgconfig, gnome3, ibus, gettext, upower, wrapGAppsHook
, libcanberra-gtk3, accountsservice, libpwquality, libpulseaudio
, gdk_pixbuf, librsvg, libnotify, libgudev, libsecret, gnome-color-manager
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
, cracklib, libkrb5, networkmanagerapplet, networkmanager, glibc
, libwacom, samba, shared-mime-info, tzdata, libtool, libgnomekbd
2018-03-15 13:23:56 +01:00
, docbook_xsl, modemmanager, clutter, clutter-gtk, cheese
, fontconfig, sound-theme-freedesktop, grilo, python3 }:
let
2018-03-15 13:23:56 +01:00
pname = "gnome-control-center";
version = "3.30.2";
in stdenv.mkDerivation rec {
2018-03-15 13:23:56 +01:00
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0rn4r0ng4pd9smpay4rf4dkcl09b2ipr9srryybhd1srmd02ps51";
};
2017-12-17 03:57:50 +01:00
nativeBuildInputs = [
2018-03-15 13:23:56 +01:00
meson ninja pkgconfig gettext wrapGAppsHook libtool libxslt docbook_xsl
shared-mime-info python3
2017-12-17 03:57:50 +01:00
];
2017-12-17 03:57:50 +01:00
buildInputs = with gnome3; [
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 03:57:50 +01:00
accountsservice libkrb5 networkmanagerapplet libwacom samba libnotify
grilo libpwquality cracklib vino libcanberra-gtk3 libgudev libsecret
2018-03-15 13:23:56 +01:00
gdk_pixbuf defaultIconTheme librsvg clutter clutter-gtk cheese
2017-12-17 03:57:50 +01:00
networkmanager modemmanager gnome-bluetooth tracker
];
patches = [
(substituteAll {
src = ./paths.patch;
gcm = gnome-color-manager;
inherit glibc libgnomekbd tzdata;
})
];
2018-03-15 13:23:56 +01:00
postPatch = ''
chmod +x build-aux/meson/meson_post_install.py # patchShebangs requires executable file
patchShebangs build-aux/meson/meson_post_install.py
2018-03-15 13:23:56 +01:00
'';
2017-12-17 03:57:50 +01:00
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
# Thumbnailers (for setting user profile pictures)
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
--prefix XDG_DATA_DIRS : "${librsvg}/share"
)
for i in $out/share/applications/*; do
2018-03-15 13:23:56 +01:00
substituteInPlace $i --replace "Exec=gnome-control-center" "Exec=$out/bin/gnome-control-center"
done
'';
passthru = {
updateScript = gnome3.updateScript {
2018-03-15 13:23:56 +01:00
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
description = "Utilities to configure the GNOME desktop";
license = licenses.gpl2Plus;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}