2023-05-15 11:41:57 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "qmk_hid";
|
2023-10-10 19:50:20 +00:00
|
|
|
version = "0.1.11";
|
2023-05-15 11:41:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FrameworkComputer";
|
|
|
|
repo = "qmk_hid";
|
|
|
|
rev = "v${version}";
|
2023-10-10 19:50:20 +00:00
|
|
|
hash = "sha256-k5cZcrjen7nNJM9mKQEwNTVfBPawXwbwNlCyTARdH/g=";
|
2023-05-15 11:41:57 +00:00
|
|
|
};
|
|
|
|
|
2023-10-10 19:50:20 +00:00
|
|
|
cargoHash = "sha256-GrerrNDoSFtOEAf0vB9MlkBl+yLnzd/szrpFsAmkB6s=";
|
2023-05-15 11:41:57 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2023-10-10 19:50:20 +00:00
|
|
|
|
2023-05-15 11:41:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
2023-10-10 19:50:20 +00:00
|
|
|
checkFlags = [
|
|
|
|
# test doesn't compile
|
|
|
|
"--skip=src/lib.rs"
|
|
|
|
];
|
|
|
|
|
2023-05-15 11:41:57 +00:00
|
|
|
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 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "qmk_hid";
|
2023-05-15 11:41:57 +00:00
|
|
|
};
|
|
|
|
}
|