2024-04-26 20:24:03 +00:00
|
|
|
{ wrapGAppsHook3
|
2024-04-17 14:06:51 +00:00
|
|
|
, lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rofi
|
|
|
|
, gobject-introspection
|
|
|
|
}:
|
2021-11-25 00:00:48 +00:00
|
|
|
|
2024-04-17 14:06:51 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-11-25 00:00:48 +00:00
|
|
|
pname = "plasma-hud";
|
|
|
|
version = "19.10.1";
|
2024-04-17 14:06:51 +00:00
|
|
|
format = "other";
|
2021-11-25 00:00:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Zren";
|
2024-04-17 14:06:51 +00:00
|
|
|
repo = "plasma-hud";
|
2021-11-25 00:00:48 +00:00
|
|
|
rev = version;
|
2024-04-17 14:06:51 +00:00
|
|
|
hash = "sha256-1AQtgVlrmzBkim1kVZzTAwJHq0OH3YAPr6o5aUpgdKc=";
|
2021-11-25 00:00:48 +00:00
|
|
|
};
|
|
|
|
|
2024-04-17 14:06:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2024-04-17 14:06:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = (with python3Packages; [
|
2021-11-25 00:00:48 +00:00
|
|
|
dbus-python
|
2024-04-17 14:06:51 +00:00
|
|
|
pygobject3
|
2021-11-25 00:00:48 +00:00
|
|
|
setproctitle
|
|
|
|
xlib
|
2024-04-17 14:06:51 +00:00
|
|
|
]) ++ [ rofi ];
|
|
|
|
|
2021-11-25 00:00:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s:/usr/lib/plasma-hud:$out/bin:" etc/xdg/autostart/plasma-hud.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-04-17 14:06:51 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm555 usr/lib/plasma-hud/plasma-hud -t $out/bin
|
|
|
|
cp -r etc -t $out
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-11-25 00:00:48 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-17 14:06:51 +00:00
|
|
|
meta = {
|
|
|
|
license = lib.licenses.gpl2Only;
|
2021-11-25 00:00:48 +00:00
|
|
|
homepage = "https://github.com/Zren/plasma-hud";
|
2024-04-17 14:06:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2021-11-25 00:00:48 +00:00
|
|
|
description = "Run menubar commands, much like the Unity 7 Heads-Up Display (HUD)";
|
2024-04-17 14:06:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ pasqui23 ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "plasma-hud";
|
2021-11-25 00:00:48 +00:00
|
|
|
};
|
|
|
|
}
|