mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
mate.mate-tweak: init at 20.10.0
This commit is contained in:
parent
c0627e5b5b
commit
85ce802588
|
@ -39,6 +39,7 @@ let
|
||||||
mate-system-monitor = callPackage ./mate-system-monitor { };
|
mate-system-monitor = callPackage ./mate-system-monitor { };
|
||||||
mate-terminal = callPackage ./mate-terminal { };
|
mate-terminal = callPackage ./mate-terminal { };
|
||||||
mate-themes = callPackage ./mate-themes { };
|
mate-themes = callPackage ./mate-themes { };
|
||||||
|
mate-tweak = callPackage ./mate-tweak { };
|
||||||
mate-user-guide = callPackage ./mate-user-guide { };
|
mate-user-guide = callPackage ./mate-user-guide { };
|
||||||
mate-user-share = callPackage ./mate-user-share { };
|
mate-user-share = callPackage ./mate-user-share { };
|
||||||
mate-utils = callPackage ./mate-utils { };
|
mate-utils = callPackage ./mate-utils { };
|
||||||
|
|
83
pkgs/desktops/mate/mate-tweak/default.nix
Normal file
83
pkgs/desktops/mate/mate-tweak/default.nix
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3Packages
|
||||||
|
, intltool
|
||||||
|
, mate
|
||||||
|
, libnotify
|
||||||
|
, gtk3
|
||||||
|
, gdk-pixbuf
|
||||||
|
, gobject-introspection
|
||||||
|
, wrapGAppsHook
|
||||||
|
, glib
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "mate-tweak";
|
||||||
|
version = "20.10.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ubuntu-mate";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "08gw5i5wjxmzn92h9fv6g7q9i00n8shv1wlpy6cb31xy9wbmjph6";
|
||||||
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
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;
|
||||||
|
maintainers = with maintainers; [ luc65r ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue