3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/wayland/swayr/default.nix

31 lines
680 B
Nix
Raw Normal View History

2021-07-11 01:37:59 +01:00
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
2021-08-22 04:17:39 +01:00
version = "0.6.2";
2021-07-11 01:37:59 +01:00
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
rev = "v${version}";
2021-08-22 04:17:39 +01:00
sha256 = "sha256-ZnZ9g8o1+VfhpDqxqtknNJ7dcyt5yuQcH3txxA3HICU=";
2021-07-11 01:37:59 +01:00
};
2021-08-22 04:17:39 +01:00
cargoSha256 = "sha256-0EhHFxbQi3Jgu13pXIjYYFYDEOQjwN5h+jE+22gJG0s=";
2021-07-11 01:37:59 +01: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 ];
};
}