summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorSebastian Sellmeier <mail@sebastian-sellmeier.de>2023-01-27 03:19:59 +0100
committerSebastian Sellmeier <mail@sebastian-sellmeier.de>2023-02-03 22:25:25 +0100
commit6f15885434d121efcf026c160e47013090080eb2 (patch)
treebdeaff1900dcdc3b947dceb6db278d434a54730e /pkgs/tools
parentc967528f857e428a033ae9218319f3d2cb738ed4 (diff)
swayrbar: init at 0.3.4
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/wayland/swayrbar/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/swayrbar/default.nix b/pkgs/tools/wayland/swayrbar/default.nix
new file mode 100644
index 000000000000..808d5c3c31de
--- /dev/null
+++ b/pkgs/tools/wayland/swayrbar/default.nix
@@ -0,0 +1,30 @@
+{ lib, fetchFromSourcehut, rustPlatform }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "swayrbar";
+ version = "0.3.4";
+
+ src = fetchFromSourcehut {
+ owner = "~tsdh";
+ repo = "swayr";
+ rev = "swayrbar-${version}";
+ sha256 = "sha256-OQhq5ZUe2OrfRFxoaAbbewoHgQVPv9cQy0VCpYe1SNo=";
+ };
+
+ cargoHash = "sha256-vM4SoRbVylN90b378Qk18A8/2S2IB88lnGCM6sqrhs8=";
+
+ # don't build swayr
+ buildAndTestSubdir = pname;
+
+ preCheck = ''
+ export HOME=$TMPDIR
+ '';
+
+ meta = with lib; {
+ description = "Status command for sway's swaybar implementing the swaybar-protocol";
+ homepage = "https://git.sr.ht/~tsdh/swayr#a-idswayrbarswayrbara";
+ license = with licenses; [ gpl3Plus ];
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ sebtm ];
+ };
+}