2021-07-16 19:40:57 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayr";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.27.0";
|
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-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-FvlBpBBvmivrnHaKYPxmRAE+PCfTxWS+tYYAFjq8Q6I=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-Ux0Tx5+manPNUUtiCBo7FCMrBYwwUggrdpitywQ7MPk=";
|
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
|
|
|
};
|
|
|
|
}
|