nixpkgs-suyu/pkgs/tools/wayland/swayr/default.nix
2022-08-12 02:54:19 +00:00

33 lines
742 B
Nix

{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
version = "0.20.0";
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
rev = "swayr-${version}";
sha256 = "sha256-Od23QF4vasr1gvtahENLPkz4wbx1WFaN1mauB4iDftk=";
};
cargoSha256 = "sha256-ZgFTmeCrFpdGv9vkFKG7VY/tPeOIVKWCMk0JyrtJ22s=";
patches = [
./icon-paths.patch
];
# don't build swayrbar
buildAndTestSubdir = pname;
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 ];
};
}