diff options
author | pasqui23 <pasqui23@users.noreply.github.com> | 2021-11-25 00:00:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 01:00:48 +0100 |
commit | a988b71a096dae615358d60d95ca02c1da454d97 (patch) | |
tree | 4c0b374cc37a25bf07d90b93edb5b9b0f81aed19 | |
parent | 4b3b13c9c708eca591ce659f9922133e1d0f69de (diff) |
plasma-hud: init at 19.10.1 (#74085)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
-rw-r--r-- | pkgs/misc/plasma-hud/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/misc/plasma-hud/default.nix b/pkgs/misc/plasma-hud/default.nix new file mode 100644 index 0000000000000..4116751f4fec0 --- /dev/null +++ b/pkgs/misc/plasma-hud/default.nix @@ -0,0 +1,41 @@ +{ lib, python3, fetchFromGitHub, rofi, gobject-introspection }: + +python3.pkgs.buildPythonApplication rec{ + pname = "plasma-hud"; + version = "19.10.1"; + + src = fetchFromGitHub { + owner = "Zren"; + repo = pname; + rev = version; + sha256 = "19vlc156jfdamw7q1pc78fmlf0h3sff5ar3di9j316vbb60js16l"; + }; + + propagatedBuildInputs = with python3.pkgs; [ + rofi + dbus-python + setproctitle + xlib + pygobject3 + gobject-introspection + ]; + format = "other"; + postPatch = '' + sed -i "s:/usr/lib/plasma-hud:$out/bin:" etc/xdg/autostart/plasma-hud.desktop + ''; + + installPhase = '' + patchShebangs $out/bin/plasma-hud + mkdir -p $out/bin $out/etc/xdg/autostart + cp -r $src/usr/lib/plasma-hud/plasma-hud $out/bin/plasma-hud + cp -r $src/etc $out/etc + ''; + + meta = with lib;{ + license = licenses.gpl2Only; + homepage = "https://github.com/Zren/plasma-hud"; + platforms = platforms.unix; + description = "Run menubar commands, much like the Unity 7 Heads-Up Display (HUD)"; + maintainers = with maintainers; [ pasqui23 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 68bcc6807575f..742dfc85ad4f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19210,6 +19210,8 @@ with pkgs; pyotherside = libsForQt5.callPackage ../development/libraries/pyotherside {}; + plasma-hud = callPackage ../misc/plasma-hud { }; + re2 = callPackage ../development/libraries/re2 { }; qbs = libsForQt5.callPackage ../development/tools/build-managers/qbs { }; |