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

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

34 lines
742 B
Nix
Raw Normal View History

2021-07-11 00:37:59 +00:00
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
2022-08-12 02:54:19 +00:00
version = "0.20.0";
2021-07-11 00:37:59 +00:00
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
2022-06-27 10:22:12 +00:00
rev = "swayr-${version}";
2022-08-12 02:54:19 +00:00
sha256 = "sha256-Od23QF4vasr1gvtahENLPkz4wbx1WFaN1mauB4iDftk=";
2021-07-11 00:37:59 +00:00
};
2022-08-12 02:54:19 +00:00
cargoSha256 = "sha256-ZgFTmeCrFpdGv9vkFKG7VY/tPeOIVKWCMk0JyrtJ22s=";
2021-07-11 00:37:59 +00:00
patches = [
./icon-paths.patch
];
2022-06-27 10:22:12 +00:00
# don't build swayrbar
buildAndTestSubdir = pname;
2021-07-11 00:37:59 +00:00
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 ];
};
}