Merge pull request #232186 from SebTM/swarbar_036
swayrbar: 0.3.5 -> 0.3.6, fix pulseaudio
This commit is contained in:
commit
3caa84d031
|
@ -1,25 +1,32 @@
|
|||
{ lib, fetchFromSourcehut, rustPlatform }:
|
||||
{ lib, fetchFromSourcehut, rustPlatform, makeWrapper, withPulseaudio ? false, pulseaudio }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "swayrbar";
|
||||
version = "0.3.5";
|
||||
version = "0.3.6";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~tsdh";
|
||||
repo = "swayr";
|
||||
rev = "swayrbar-${version}";
|
||||
sha256 = "sha256-uYQGwccSwqHJ1w8CyxXimmENnGx7e3EMA1MKZuZDTIk=";
|
||||
sha256 = "sha256-Vv+Hw+iJAi2GnfkiYitDyH3H58tydUDa6GcWITok7Oc=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-PdPaUqJUycUhleaND6XwKkRvwO0MHbvw5lzz95bdfCQ=";
|
||||
cargoHash = "sha256-5alzkHzwuymo6bXFgabYQ3LWJDib0+ESQCSIPmINViY=";
|
||||
|
||||
# don't build swayr
|
||||
buildAndTestSubdir = pname;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
postInstall = lib.optionals withPulseaudio ''
|
||||
wrapProgram "$out/bin/swayrbar" \
|
||||
--prefix PATH : "$out/bin:${lib.makeBinPath [ pulseaudio ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Status command for sway's swaybar implementing the swaybar-protocol";
|
||||
homepage = "https://git.sr.ht/~tsdh/swayr#a-idswayrbarswayrbara";
|
||||
|
|
Loading…
Reference in a new issue