2023-02-09 11:40:11 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayrbar";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "0.3.5";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~tsdh";
|
|
|
|
repo = "swayr";
|
|
|
|
rev = "swayrbar-${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "sha256-uYQGwccSwqHJ1w8CyxXimmENnGx7e3EMA1MKZuZDTIk=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
cargoHash = "sha256-PdPaUqJUycUhleaND6XwKkRvwO0MHbvw5lzz95bdfCQ=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|