2021-07-11 02:37:59 +02:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayr";
|
2023-01-13 20:56:15 +01:00
|
|
|
version = "0.24.0";
|
2021-07-11 02:37:59 +02:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~tsdh";
|
|
|
|
repo = "swayr";
|
2022-06-27 12:22:12 +02:00
|
|
|
rev = "swayr-${version}";
|
2023-01-13 20:56:15 +01:00
|
|
|
sha256 = "sha256-Cl/c8KfBfrBIL/AqhZK7DfEcMQNLvxOoWvAq9qqLQDQ=";
|
2021-07-11 02:37:59 +02:00
|
|
|
};
|
|
|
|
|
2023-01-13 20:56:15 +01:00
|
|
|
cargoHash = "sha256-+z/Ru1c4U/v8EDtz5uUPy/qQu47p1BzdCIWhsHWViGY=";
|
2021-07-11 02:37:59 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./icon-paths.patch
|
|
|
|
];
|
|
|
|
|
2022-06-27 12:22:12 +02:00
|
|
|
# don't build swayrbar
|
|
|
|
buildAndTestSubdir = pname;
|
|
|
|
|
2021-07-11 02:37:59 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|