mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
rdx: init at 0.7.0
APK and DEX decompiler https://github.com/Ch0pin/rdx
This commit is contained in:
58
pkgs/by-name/rd/rdx/package.nix
Normal file
58
pkgs/by-name/rd/rdx/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user