{ rustPlatform, lib, }: rustPlatform.buildRustPackage { pname = "qmk-hid-com"; version = "1.0.0"; src = lib.cleanSourceWith { src = lib.cleanSource ./.; filter = name: type: (type == "directory") || (builtins.elem (builtins.baseNameOf name) [ "Cargo.toml" "Cargo.lock" ]) || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name)); }; doCheck = true; cargoLock = { lockFile = ./Cargo.lock; }; }