2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-03 02:18:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, intltool
|
|
|
|
, mate
|
|
|
|
, libnotify
|
|
|
|
, gtk3
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
2022-03-05 16:20:37 +00:00
|
|
|
, gitUpdater
|
2020-11-03 02:18:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "mate-tweak";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "22.10.0";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ubuntu-mate";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "emeNgCzMhHMeLOyUkXe+8OzQMEWuwNdD4xkGXIFgbh4=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
intltool
|
|
|
|
python3Packages.distutils_extra
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
libnotify
|
|
|
|
glib
|
|
|
|
mate.mate-applets
|
|
|
|
mate.mate-panel
|
|
|
|
mate.marco
|
|
|
|
mate.libmatekbd
|
|
|
|
mate.mate-session-manager
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
distro
|
|
|
|
pygobject3
|
|
|
|
psutil
|
|
|
|
setproctitle
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# mate-tweak hardcodes absolute paths everywhere. Nuke from orbit.
|
|
|
|
find . -type f -exec sed -i \
|
|
|
|
-e s,/usr/lib/mate-tweak,$out/lib/mate-tweak,g \
|
|
|
|
{} +
|
|
|
|
|
|
|
|
sed -i 's,{prefix}/,,g' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Arguments to be passed to `makeWrapper`, only used by buildPython*
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for i in bin/.mate-tweak-wrapped lib/mate-tweak/mate-tweak-helper; do
|
|
|
|
sed -i "s,usr,run/current-system/sw,g" $out/$i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Tweak tool for the MATE Desktop";
|
|
|
|
homepage = "https://github.com/ubuntu-mate/mate-tweak";
|
|
|
|
changelog = "https://github.com/ubuntu-mate/mate-tweak/releases/tag/${version}";
|
|
|
|
license = [ licenses.gpl2Plus ];
|
|
|
|
platforms = platforms.linux;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = teams.mate.members ++ (with maintainers; [ luc65r ]);
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
}
|