2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, meson, ninja, gettext, fetchurl
|
2019-04-17 01:38:26 +01:00
|
|
|
, pkgconfig, gtk3, glib, libsoup, gsettings-desktop-schemas
|
2018-07-21 01:44:44 +01:00
|
|
|
, itstool, libxml2, python3Packages
|
2018-12-02 11:41:15 +00:00
|
|
|
, gnome3, gdk_pixbuf, libnotify, gobject-introspection, wrapGAppsHook }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:26:50 +00:00
|
|
|
let
|
2018-03-21 09:22:38 +00:00
|
|
|
pname = "gnome-tweaks";
|
2019-03-03 18:57:40 +00:00
|
|
|
version = "3.32.0";
|
2018-03-15 12:26:50 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-03 18:57:40 +00:00
|
|
|
sha256 = "037r35cw34ifcs676fq9n2v4mh1nkqx0qk474bznf18mr6r62h55";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2017-12-17 05:26:09 +00:00
|
|
|
nativeBuildInputs = [
|
2018-09-03 23:08:26 +01:00
|
|
|
meson ninja pkgconfig gettext itstool libxml2 wrapGAppsHook python3Packages.python
|
2017-12-17 05:26:09 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2019-04-17 01:38:26 +01:00
|
|
|
gtk3 glib gsettings-desktop-schemas
|
2019-02-13 21:47:50 +00:00
|
|
|
gdk_pixbuf gnome3.adwaita-icon-theme
|
2018-02-25 02:23:58 +00:00
|
|
|
libnotify gnome3.gnome-shell python3Packages.pygobject3
|
|
|
|
libsoup gnome3.gnome-settings-daemon gnome3.nautilus
|
2018-12-02 11:41:15 +00:00
|
|
|
gnome3.mutter gnome3.gnome-desktop gobject-introspection
|
2018-03-21 09:22:38 +00:00
|
|
|
gnome3.nautilus
|
2018-04-03 13:50:36 +01:00
|
|
|
# Makes it possible to select user themes through the `user-theme` extension
|
|
|
|
gnome3.gnome-shell-extensions
|
2017-12-17 05:26:09 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-postinstall.py
|
|
|
|
'';
|
|
|
|
|
2017-06-25 17:59:23 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2017-10-04 22:50:14 +01:00
|
|
|
--prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}:$PYTHONPATH")
|
2017-06-25 17:59:23 +01:00
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:26:50 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01: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;
|
|
|
|
};
|
|
|
|
}
|