3
0
Fork 0
forked from mirrors/nixpkgs
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 01:37:59 +01:00
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
2022-10-01 03:59:57 +01:00
version = "0.22.0";
2021-07-11 01:37:59 +01:00
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
2022-06-27 11:22:12 +01:00
rev = "swayr-${version}";
2022-10-01 03:59:57 +01:00
sha256 = "sha256-HThKeuFe4slqakQE1QAfu3SMUL/Gq9DodnAKcU/gTEY=";
2021-07-11 01:37:59 +01:00
};
2022-10-01 03:59:57 +01:00
cargoSha256 = "sha256-c13u5EWRrTd9HbL6oLMd4xeQyAncrx5OjzW7FwPIBsE=";
2021-07-11 01:37:59 +01:00
patches = [
./icon-paths.patch
];
2022-06-27 11:22:12 +01:00
# don't build swayrbar
buildAndTestSubdir = pname;
2021-07-11 01:37:59 +01: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 ];
};
}