2017-10-04 23:50:14 +02:00
|
|
|
{ stdenv, meson, ninja, gettext, fetchurl, atk
|
2016-09-18 21:35:23 +02:00
|
|
|
, pkgconfig, gtk3, glib, libsoup
|
2017-10-04 23:50:14 +02:00
|
|
|
, bash, itstool, libxml2, python3Packages
|
2016-09-18 21:35:23 +02:00
|
|
|
, gnome3, librsvg, gdk_pixbuf, file, libnotify, gobjectIntrospection, wrapGAppsHook }:
|
|
|
|
|
2018-03-15 13:26:50 +01:00
|
|
|
let
|
2018-03-21 10:22:38 +01:00
|
|
|
pname = "gnome-tweaks";
|
|
|
|
version = "3.28.0";
|
2018-03-15 13:26:50 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-15 13:26:50 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-21 10:22:38 +01:00
|
|
|
sha256 = "0d8zxfa8r4n4l6jzyzy6q58padxjlrad3c71mwqidm2ww8nm6i19";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2017-12-17 06:26:09 +01:00
|
|
|
nativeBuildInputs = [
|
2018-03-15 13:26:50 +01:00
|
|
|
meson ninja pkgconfig gettext itstool libxml2 wrapGAppsHook
|
2017-12-17 06:26:09 +01:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2018-02-25 03:23:58 +01:00
|
|
|
gtk3 glib gnome3.gsettings-desktop-schemas
|
2018-03-15 13:26:50 +01:00
|
|
|
gdk_pixbuf gnome3.defaultIconTheme
|
2018-02-25 03:23:58 +01:00
|
|
|
libnotify gnome3.gnome-shell python3Packages.pygobject3
|
|
|
|
libsoup gnome3.gnome-settings-daemon gnome3.nautilus
|
|
|
|
gnome3.mutter gnome3.gnome-desktop gobjectIntrospection
|
2018-03-21 10:22:38 +01:00
|
|
|
gnome3.nautilus
|
2018-04-03 14:50:36 +02:00
|
|
|
# Makes it possible to select user themes through the `user-theme` extension
|
|
|
|
gnome3.gnome-shell-extensions
|
2017-12-17 06:26:09 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-10-04 23:50:14 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-postinstall.py
|
|
|
|
'';
|
|
|
|
|
2017-06-25 18:59:23 +02:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2017-10-04 23:50:14 +02:00
|
|
|
--prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}:$PYTHONPATH")
|
2017-06-25 18:59:23 +02:00
|
|
|
'';
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 13:26:50 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/action/show/Apps/GnomeTweakTool;
|
|
|
|
description = "A tool to customize advanced GNOME 3 options";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|