mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ wrapGAppsHook3
|
|
, lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, rofi
|
|
, gobject-introspection
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "plasma-hud";
|
|
version = "19.10.1";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Zren";
|
|
repo = "plasma-hud";
|
|
rev = version;
|
|
hash = "sha256-1AQtgVlrmzBkim1kVZzTAwJHq0OH3YAPr6o5aUpgdKc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
propagatedBuildInputs = (with python3Packages; [
|
|
dbus-python
|
|
pygobject3
|
|
setproctitle
|
|
xlib
|
|
]) ++ [ rofi ];
|
|
|
|
postPatch = ''
|
|
sed -i "s:/usr/lib/plasma-hud:$out/bin:" etc/xdg/autostart/plasma-hud.desktop
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 usr/lib/plasma-hud/plasma-hud -t $out/bin
|
|
cp -r etc -t $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
license = lib.licenses.gpl2Only;
|
|
homepage = "https://github.com/Zren/plasma-hud";
|
|
platforms = lib.platforms.unix;
|
|
description = "Run menubar commands, much like the Unity 7 Heads-Up Display (HUD)";
|
|
maintainers = with lib.maintainers; [ pasqui23 ];
|
|
mainProgram = "plasma-hud";
|
|
};
|
|
}
|