504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
89 lines
1.6 KiB
Nix
89 lines
1.6 KiB
Nix
{ lib
|
|
, meson
|
|
, ninja
|
|
, fetchurl
|
|
, gdk-pixbuf
|
|
, gettext
|
|
, glib
|
|
, gnome
|
|
, gnome-desktop
|
|
, gobject-introspection
|
|
, gsettings-desktop-schemas
|
|
, gtk3
|
|
, itstool
|
|
, libhandy
|
|
, libnotify
|
|
, libxml2
|
|
, pkg-config
|
|
, python3Packages
|
|
, wrapGAppsHook }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "gnome-tweaks";
|
|
version = "45.0";
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "JTmUZYroYXlNDG4OD0dd/hyvJ342dLh5J5AjjzTP1u4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
gobject-introspection
|
|
itstool
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
glib
|
|
gnome-desktop
|
|
gnome.gnome-settings-daemon
|
|
gnome.gnome-shell
|
|
# Makes it possible to select user themes through the `user-theme` extension
|
|
gnome.gnome-shell-extensions
|
|
gnome.mutter
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
libhandy
|
|
libnotify
|
|
];
|
|
|
|
pythonPath = with python3Packages; [
|
|
pygobject3
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs meson-postinstall.py
|
|
'';
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapPythonProgramsIn "$out/libexec" "$out $pythonPath"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wiki.gnome.org/Apps/Tweaks";
|
|
description = "A tool to customize advanced GNOME 3 options";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|