2021-07-16 19:40:57 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayr";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.27.1";
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~tsdh";
|
|
|
|
repo = "swayr";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "swayr-${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
sha256 = "sha256-0qWrVf7Ou7psczg3vlFMh/QO95yPBUZ/fKQ7w0sE/4I=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
cargoHash = "sha256-r8QcLYBKOfUdzwmohUfg4ZrLqQudIfHB/DETO9byrB0=";
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./icon-paths.patch
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
# don't build swayrbar
|
|
|
|
buildAndTestSubdir = pname;
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
2021-07-16 19:40:57 +00:00
|
|
|
description = "A window switcher (and more) for sway";
|
|
|
|
homepage = "https://git.sr.ht/~tsdh/swayr";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "swayr";
|
|
|
|
maintainers = with lib.maintainers; [ artturin ];
|
|
|
|
platforms = lib.platforms.linux;
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
}
|