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

31 lines
681 B
Nix
Raw Normal View History

2021-07-11 02:37:59 +02:00
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
2021-11-21 04:31:43 +01:00
version = "0.10.0";
2021-07-11 02:37:59 +02:00
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
rev = "v${version}";
2021-11-21 04:31:43 +01:00
sha256 = "sha256-nXJIgzm92OSSGHpN2+09Y8ILpU8Mf51vcVB0kMXBPZc=";
2021-07-11 02:37:59 +02:00
};
2021-11-21 04:31:43 +01:00
cargoSha256 = "sha256-vExZzJ3Rw+MiU4ikEqzIo51qZW0sxwE/zoVEdUKLXwY=";
2021-07-11 02:37:59 +02:00
patches = [
./icon-paths.patch
];
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 ];
};
}