This commit is contained in:
Sandro 2026-06-25 10:32:13 +00:00 committed by GitHub
commit 469967c346
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 55 additions and 0 deletions

View file

@ -18693,6 +18693,12 @@
githubId = 2072185;
name = "Marc Scholten";
};
Mr-Stoneman = {
email = "mrstoneman@sten.rocks";
github = "Mr-Stoneman";
githubId = 72991726;
name = "Mr-Stoneman";
};
mrbenjadmin = {
email = "mrbenjadmin@gmail.com";
github = "mrbenjadmin";

View file

@ -0,0 +1,49 @@
{
lib,
udev,
stdenv,
pkg-config,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "zapp";
version = "1.0.1";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "zsa";
repo = "zapp";
tag = "v${finalAttrs.version}";
hash = "sha256-KhWL+SsN1z9qpxwHpaqRo3qAk7xAOHVkRAOa02Q2Myc=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
udev
];
cargoHash = "sha256-gDyNwHrMdNQdKdr9RGfwFAU8IaUlGrlJxV0WClQ25JM=";
passthru.updateScript = nix-update-script { };
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Flash ZSA keyboards from your terminal";
homepage = "https://github.com/zsa/zapp";
license = with lib.licenses; [
mit
commons-clause
];
maintainers = with lib.maintainers; [ Mr-Stoneman ];
mainProgram = "zapp";
};
})