summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-02-04 06:15:02 +0800
committerGitHub <noreply@github.com>2023-02-04 06:15:02 +0800
commite367f47b31ce620b380043c3818e4c6a0092d968 (patch)
tree3fcb0450a0ebdef16833f8916a055872da15f7be /pkgs/tools
parentcab588077cc8914f6b15f3225c140d855b2ed68d (diff)
parent6f15885434d121efcf026c160e47013090080eb2 (diff)
Merge pull request #212877 from SebTM/init/swayrbar_034
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 ];
+ };
+}