1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{ lib
, meson
, ninja
, fetchurl
, desktop-file-utils
, gdk-pixbuf
, gettext
, glib
, gnome
, gnome-desktop
, gobject-introspection
, gsettings-desktop-schemas
, gtk4
, itstool
, libadwaita
, libgudev
, libnotify
, libxml2
, pkg-config
, python3Packages
, wrapGAppsHook4
}:
python3Packages.buildPythonApplication rec {
pname = "gnome-tweaks";
version = "46.0";
format = "other";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
hash = "sha256-Fnh4Y0H2ZKxFgHhCIqFkCfqb9cx6XxtG3O/SqhPdujE=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
gobject-introspection
itstool
libxml2
meson
ninja
pkg-config
wrapGAppsHook4
];
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
gtk4
libadwaita
libgudev
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://gitlab.gnome.org/GNOME/gnome-tweaks";
description = "A tool to customize advanced GNOME 3 options";
mainProgram = "gnome-tweaks";
maintainers = teams.gnome.members;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}
|