2020-12-03 08:41:04 +00:00
|
|
|
{ lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, fetchurl
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
|
|
|
, glib
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-12-03 08:41:04 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, itstool
|
2021-05-20 23:08:51 +00:00
|
|
|
, libhandy
|
2020-12-03 08:41:04 +00:00
|
|
|
, libnotify
|
|
|
|
, libsoup
|
|
|
|
, libxml2
|
|
|
|
, pkg-config
|
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-tweaks";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "40.10";
|
2020-12-03 08:41:04 +00:00
|
|
|
format = "other";
|
|
|
|
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "z/07M6OZV3+7RJHOj70C9UxZJPEFbzARTo1CApDvI/w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-12-03 08:41:04 +00:00
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2020-12-03 08:41:04 +00:00
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.gnome-desktop
|
|
|
|
gnome.gnome-settings-daemon
|
|
|
|
gnome.gnome-shell
|
2020-04-24 23:36:52 +00:00
|
|
|
# Makes it possible to select user themes through the `user-theme` extension
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.gnome-shell-extensions
|
|
|
|
gnome.mutter
|
2020-12-03 08:41:04 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
libhandy
|
2020-12-03 08:41:04 +00:00
|
|
|
libnotify
|
|
|
|
libsoup
|
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
pythonPath = with python3Packages; [
|
2020-12-03 08:41:04 +00:00
|
|
|
pygobject3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson-postinstall.py
|
|
|
|
'';
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/libexec" "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Tweaks";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tool to customize advanced GNOME 3 options";
|
|
|
|
maintainers = teams.gnome.members;
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|