mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
31 lines
680 B
Nix
31 lines
680 B
Nix
{ lib, fetchFromSourcehut, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "swayr";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~tsdh";
|
|
repo = "swayr";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-B19cHdoiCbxhvRGi3NzKPKneKgOI4+l8+Qg9/YVgUV8=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-iO64K+d/wEyY/tVztIG8zYSha5X0iTHV7IDVthMJQGA=";
|
|
|
|
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 ];
|
|
};
|
|
}
|