mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Add zapp (#515143)
This commit is contained in:
commit
469967c346
2 changed files with 55 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
49
pkgs/by-name/za/zapp/package.nix
Normal file
49
pkgs/by-name/za/zapp/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue