nixpkgs/pkgs/by-name/sw/swayr/package.nix

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

36 lines
790 B
Nix
Raw Normal View History

2021-07-11 00:37:59 +00:00
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayr";
2024-07-07 12:27:03 +00:00
version = "0.27.4";
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}";
2024-07-07 12:27:03 +00:00
sha256 = "sha256-dliRPKtCJ6mbBl87QoDsHJ2+iaI9nVsWWWwWAkQ1RqE=";
2021-07-11 00:37:59 +00:00
};
2024-07-07 12:27:03 +00:00
cargoHash = "sha256-6e4eJIGCrkOdoOTtbYvTLjNVA9FQBQUhgOyM/064/Sw=";
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
'';
2023-08-09 17:22:47 +00:00
meta = {
2021-07-11 00:37:59 +00:00
description = "Window switcher (and more) for sway";
homepage = "https://git.sr.ht/~tsdh/swayr";
2023-08-09 17:22:47 +00:00
license = lib.licenses.gpl3Plus;
mainProgram = "swayr";
maintainers = with lib.maintainers; [ artturin ];
platforms = lib.platforms.linux;
2021-07-11 00:37:59 +00:00
};
}