summary refs log tree commit diff
path: root/pkgs/tools/misc/qmk_hid/default.nix
blob: c8f3ae9b91950f657b80f3247851168f191eaf36 (plain) (blame)
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
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, systemd
}:

rustPlatform.buildRustPackage rec {
  pname = "qmk_hid";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "FrameworkComputer";
    repo = "qmk_hid";
    rev = "v${version}";
    hash = "sha256-k5D+Ph4DtdTafdNhclK3t4SmHmktuOKRlMMGMmKp48E=";
  };

  cargoHash = "sha256-+frWup9sbxCAxl2oiHAn1ccpuGkfa3kjerUByd65oSI=";

  nativeBuildInputs = [
    pkg-config
  ];
  buildInputs = [
    systemd
  ];

  meta = with lib; {
    description = "Commandline tool for interactng with QMK devices over HID";
    homepage = "https://github.com/FrameworkComputer/qmk_hid";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ janik ];
  };
}