nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 protobuf,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "kontroll";
10 version = "1.0.1";
11
12 src = fetchFromGitHub {
13 owner = "zsa";
14 repo = "kontroll";
15 rev = version;
16 hash = "sha256-k7Twbjl8umk3PeIv3ivCLdhZFgTTV8WdfIAoGAD/pEk=";
17 };
18
19 cargoHash = "sha256-maryIYWZdDaGe9IC+hCSNH7IhZ6r7nWlD6ws5n1U6Xo=";
20
21 nativeBuildInputs = [ protobuf ];
22
23 meta = {
24 description = "Demonstrates how to control the Keymapp API, making it easy to control your ZSA keyboard from the command line and scripts";
25 homepage = "https://github.com/zsa/kontroll";
26 license = lib.licenses.mit;
27 maintainers = with lib.maintainers; [ davsanchez ];
28 mainProgram = "kontroll";
29 };
30}