2021-07-16 19:40:57 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swayr";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.27.3";
|
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}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-3M4/uk1E5Ly9pifjoDIUEhWf1IZxwRYUC3f3qOsMyRg=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
cargoHash = "sha256-cjrt2jkcNbTabnhlu0P8mBIKbIpCE6L6BYlxi/fIwrg=";
|
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
|
|
|
};
|
|
|
|
}
|