rdx: init at 0.7.0

APK and DEX decompiler

https://github.com/Ch0pin/rdx
This commit is contained in:
Fabian Affolter
2026-10-29 12:27:55 +01:00
parent 5a93448930
commit 2d52174516

View File

@@ -0,0 +1,58 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
libxkbcommon,
vulkan-loader,
wayland,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "rdx";
version = "0.7.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Ch0pin";
repo = "rdx";
tag = "v${finalAttrs.version}";
hash = "sha256-Eu3S4NtRPHczeDJYrAIoqYN0wIeB4JWjL6xqFfS/fZ0=";
};
cargoHash = "sha256-TNXmBvrnDUw78Sixv2lZBAlKHsOB9YOvk1YxNbpy6JU=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libxkbcommon
vulkan-loader
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland
];
cargoTestFlags = [
"--lib"
"--bins"
];
checkFlags = [
"--skip=native_java::cast_cleanup::tests::jvm_original_and_cleaned_preserve_values_and_overload_choice"
"--skip=transport::tests::noisy_stderr_is_drained_and_bounded"
"--skip=transport::tests::timeout_includes_blocked_stdin_and_closes_transport"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "APK and DEX decompiler";
homepage = "https://github.com/Ch0pin/rdx";
changelog = "https://github.com/Ch0pin/rdx/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "rdx";
};
})