2021-07-16 19:40:57 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayr";
|
2021-10-01 09:20:50 +00:00
|
|
|
version = "0.7.0";
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~tsdh";
|
|
|
|
repo = "swayr";
|
|
|
|
rev = "v${version}";
|
2021-10-01 09:20:50 +00:00
|
|
|
sha256 = "sha256-B19cHdoiCbxhvRGi3NzKPKneKgOI4+l8+Qg9/YVgUV8=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
cargoSha256 = "sha256-iO64K+d/wEyY/tVztIG8zYSha5X0iTHV7IDVthMJQGA=";
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./icon-paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A window switcher (and more) for sway";
|
|
|
|
homepage = "https://git.sr.ht/~tsdh/swayr";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ artturin ];
|
|
|
|
};
|
|
|
|
}
|