6 withPulseaudio ? false,
10 rustPlatform.buildRustPackage rec {
14 src = fetchFromSourcehut {
17 rev = "swayrbar-${version}";
18 sha256 = "sha256-qfk4yqJkqTiFKFZXCVPPZM0g0/+A8d8fDeat9ZsfokI=";
21 cargoHash = "sha256-+YhBwQWDxjS8yAS/+uX7I72qNad9N/xQCVr4QHp+kyw=";
24 buildAndTestSubdir = pname;
26 nativeBuildInputs = [ makeWrapper ];
32 postInstall = lib.optionals withPulseaudio ''
33 wrapProgram "$out/bin/swayrbar" \
34 --prefix PATH : "$out/bin:${lib.makeBinPath [ pulseaudio ]}"
38 description = "Status command for sway's swaybar implementing the swaybar-protocol";
39 homepage = "https://git.sr.ht/~tsdh/swayr#a-idswayrbarswayrbara";
40 license = with licenses; [ gpl3Plus ];
41 platforms = platforms.linux;
42 maintainers = with maintainers; [ ];
43 mainProgram = "swayrbar";