45 lines
1.7 KiB
Nix
45 lines
1.7 KiB
Nix
{ stdenv, intltool, fetchurl, python, pygobject3, atk
|
|
, pkgconfig, gtk3, glib, hicolor_icon_theme, libsoup
|
|
, bash, makeWrapper, itstool, libxml2, python3Packages
|
|
, gnome3, librsvg, gdk_pixbuf, file, libnotify }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnome-tweak-tool-${gnome3.version}.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-tweak-tool/${gnome3.version}/${name}.tar.xz";
|
|
sha256 = "0pc62qwxgjrgxdhn3qqdzxpx0prrn6c948hqj66w2dy8r0yrdiqw";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
|
|
|
|
makeFlags = [ "DESTDIR=/" ];
|
|
|
|
buildInputs = [ pkgconfig gtk3 glib intltool itstool libxml2
|
|
gnome3.gsettings_desktop_schemas makeWrapper file
|
|
gdk_pixbuf gnome3.adwaita-icon-theme librsvg
|
|
hicolor_icon_theme gnome3.adwaita-icon-theme
|
|
python pygobject3 libnotify gnome3.gnome_shell
|
|
libsoup gnome3.gnome_settings_daemon gnome3.nautilus
|
|
gnome3.gnome_desktop ];
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/gnome-tweak-tool" \
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
|
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
|
|
'';
|
|
|
|
patches = [ ./find_gsettings.patch ];
|
|
|
|
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;
|
|
};
|
|
}
|