diff options
Diffstat (limited to 'pkgs/swhkd/package.nix')
| -rw-r--r-- | pkgs/swhkd/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/swhkd/package.nix b/pkgs/swhkd/package.nix new file mode 100644 index 0000000..4211346 --- /dev/null +++ b/pkgs/swhkd/package.nix @@ -0,0 +1,37 @@ +{ + lib, + fetchFromGitHub, + polkit, + rustPlatform, + xorg, +}: +rustPlatform.buildRustPackage rec { + pname = "swhkd"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "waycrate"; + repo = "swhkd"; + rev = version; + sha256 = "sha256-VQW01j2RxhLUx59LAopZEdA7TyZBsJrF1Ym3LumvFqA="; + }; + + cargoPatches = [ + ./update-lock.patch + ]; + cargoSha256 = "sha256-h8n4qB6n4et7d1CfIwam8y9A1gH9lsqZD50t9YI1ieM="; + + buildInputs = [ + polkit + xorg.xf86inputevdev + ]; + + meta = with lib; { + description = "Sxhkd clone for Wayland"; + longDescription = "a display protocol-independent hotkey daemon made in Rust"; + homepage = "https://github.com/waycrate/swhkd"; + license = licenses.bsd2; + maintainers = [maintainers.getchoo]; + platforms = platforms.linux; + }; +} |
