depot/third_party/nixpkgs/pkgs/tools/misc/qmk_hid/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

41 lines
810 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, systemd
}:
rustPlatform.buildRustPackage rec {
pname = "qmk_hid";
version = "0.1.11";
src = fetchFromGitHub {
owner = "FrameworkComputer";
repo = "qmk_hid";
rev = "v${version}";
hash = "sha256-k5cZcrjen7nNJM9mKQEwNTVfBPawXwbwNlCyTARdH/g=";
};
cargoHash = "sha256-GrerrNDoSFtOEAf0vB9MlkBl+yLnzd/szrpFsAmkB6s=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
systemd
];
checkFlags = [
# test doesn't compile
"--skip=src/lib.rs"
];
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 = [ ];
mainProgram = "qmk_hid";
};
}