uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
89
pkgs/desktops/mate/mate-tweak/default.nix
Normal file
89
pkgs/desktops/mate/mate-tweak/default.nix
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3Packages
|
||||
, intltool
|
||||
, mate
|
||||
, libnotify
|
||||
, gtk3
|
||||
, gdk-pixbuf
|
||||
, gobject-introspection
|
||||
, wrapGAppsHook
|
||||
, glib
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mate-tweak";
|
||||
version = "22.04.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ubuntu-mate";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "ncBN1wjCcMtuasnXk7WMge+9MK7BMmTu89/R+hiY/Ks=";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
inherit pname version;
|
||||
attrPath = "mate.${pname}";
|
||||
};
|
||||
|
||||
meta = with 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 = teams.mate.members ++ (with maintainers; [ luc65r ]);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue