summaryrefslogtreecommitdiff
path: root/pkgs/swhkd.nix
blob: f4c35ccf78a5d49b94be243cec0f6b22c4af5bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
      };
  })