nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 pkg-config,
6 hidapi,
7 udev,
8}:
9
10rustPlatform.buildRustPackage {
11 pname = "leddy";
12 version = "0.1.0-unstable-2024-10-15";
13 src = fetchFromGitHub {
14 owner = "XanClic";
15 repo = "leddy";
16 rev = "fd259425980df17bd761006a1ccef93e23bfdad6";
17 hash = "sha256-7t+E47odtayw26AnhtkxIWr0TxDwruEjP3Af3ajmVAA=";
18 };
19
20 cargoHash = "sha256-ezl9/vKDPJNYH1U4H/7OtE0g3iWIS+tDapJDhaKT+l0=";
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [
24 hidapi
25 udev
26 ];
27 doCheck = false; # no tests
28
29 meta = {
30 description = "LED controller for the Fnatic miniStreak and Fnatic Streak keyboards";
31 homepage = "https://github.com/XanClic/leddy";
32 license = lib.licenses.gpl3Plus;
33 maintainers = [ lib.maintainers.jmir ];
34 mainProgram = "leddy";
35 };
36}