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

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

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";
2022-04-10 00:40:25 +02:00
version = "0.16.1";
2021-07-11 02:37:59 +02:00
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
rev = "v${version}";
2022-04-10 00:40:25 +02:00
sha256 = "sha256-c/VHD5VceddhKanuId4rG1Tl+9Bg7zUmIqq4gMsy1e0=";
2021-07-11 02:37:59 +02:00
};
2022-04-10 00:40:25 +02:00
cargoSha256 = "sha256-0aGMWuU6DvBr9tvgDd1GZqhlY8bGCuPs8pSc5A03L3w=";
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 ];
};
}