mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
apk-info: init at 1.0.13 (#580003)
This commit is contained in:
40
pkgs/by-name/ap/apk-info/package.nix
Normal file
40
pkgs/by-name/ap/apk-info/package.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
python3,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "apk-info";
|
||||
version = "1.0.13";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "delvinru";
|
||||
repo = "apk-info";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-+ToIYtzbC6xYrmGHbbCDifqe0IMUevW92aKhoCf9r3k=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-6BP9O4J21I2Pi9Fa0DuzD5wljgGVwsfoDDNyoQQ2dLQ=";
|
||||
|
||||
nativeBuildInputs = [ python3 ];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Fast, malware-robust parser for Android APK/XAPK/APKM files";
|
||||
homepage = "https://github.com/delvinru/apk-info";
|
||||
changelog = "https://github.com/delvinru/apk-info/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "apk-info";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user