summaryrefslogtreecommitdiff
path: root/pkgs/swhkd.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-25 16:57:48 -0400
committerseth <[email protected]>2023-03-25 16:57:48 -0400
commit986ba6872c715750e76b1024e6a4b763cde6cca4 (patch)
tree4cbe97b2dff73c8a9dcae1544c32ddcc708b0f47 /pkgs/swhkd.nix
parent08224d0cda2374648cfe4e8400f5f6643be06751 (diff)
init: swhkd
Diffstat (limited to 'pkgs/swhkd.nix')
-rw-r--r--pkgs/swhkd.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/swhkd.nix b/pkgs/swhkd.nix
new file mode 100644
index 0000000..f4c35cc
--- /dev/null
+++ b/pkgs/swhkd.nix
@@ -0,0 +1,37 @@
+{
+ lib,
+ callPackage,
+ fetchFromGitHub,
+ naersk,
+ polkit,
+ xorg,
+}: let
+ version = "1.2.1";
+ package = (callPackage naersk {}).buildPackage {
+ buildInputs = [
+ polkit
+ xorg.xf86inputevdev
+ ];
+ src = fetchFromGitHub {
+ owner = "waycrate";
+ repo = "swhkd";
+ rev = version;
+ sha256 = "sha256-VQW01j2RxhLUx59LAopZEdA7TyZBsJrF1Ym3LumvFqA=";
+ };
+ };
+in
+ package
+ // (let
+ inherit (lib) licenses maintainers platforms;
+ in {
+ meta =
+ package.meta
+ // {
+ 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 = with maintainers; [getchoo];
+ platforms = platforms.linux;
+ };
+ })