nixpkgs/pkgs/tools/wayland/swayr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
792 B
Nix
Raw Normal View History

2021-07-11 02:37:59 +02:00
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
2024-01-30 05:11:45 +01:00
version = "0.27.3";
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}";
2024-01-30 05:11:45 +01:00
sha256 = "sha256-3M4/uk1E5Ly9pifjoDIUEhWf1IZxwRYUC3f3qOsMyRg=";
2021-07-11 02:37:59 +02:00
};
2024-01-30 05:11:45 +01:00
cargoHash = "sha256-cjrt2jkcNbTabnhlu0P8mBIKbIpCE6L6BYlxi/fIwrg=";
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
'';
2023-08-09 19:22:47 +02:00
meta = {
2021-07-11 02:37:59 +02:00
description = "A window switcher (and more) for sway";
homepage = "https://git.sr.ht/~tsdh/swayr";
2023-08-09 19:22:47 +02:00
license = lib.licenses.gpl3Plus;
mainProgram = "swayr";
maintainers = with lib.maintainers; [ artturin ];
platforms = lib.platforms.linux;
2021-07-11 02:37:59 +02:00
};
}