From 1843ab145fff53e058eaad07e96c4a54758d0980 Mon Sep 17 00:00:00 2001 From: Chahatpreet Singh Date: Sat, 9 May 2026 20:01:22 +0000 Subject: [PATCH] apftool-rs: 0-unstable-2024-01-05 -> 1.2.3 Fixes build on aarch64-linux. Upstream v1.0.0 corrected c_char pointer casts that hardcoded i8 instead of the target-portable c_char type (suyulin/apftool-rs#2). Upstream v1.2.3 also updates the integration test assertions to match current clap output (suyulin/apftool-rs#11), so the previous checkFlags workaround is no longer needed. Part of ZHF: #516381 --- pkgs/by-name/ap/apftool-rs/package.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ap/apftool-rs/package.nix b/pkgs/by-name/ap/apftool-rs/package.nix index a211bd8eaefe..e081bd0ade2c 100644 --- a/pkgs/by-name/ap/apftool-rs/package.nix +++ b/pkgs/by-name/ap/apftool-rs/package.nix @@ -4,18 +4,18 @@ rustPlatform, }: -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage (finalAttrs: { pname = "apftool-rs"; - version = "0-unstable-2024-01-05"; + version = "1.2.3"; src = fetchFromGitHub { owner = "suyulin"; repo = "apftool-rs"; - rev = "92d8a1b88cb79a53f9e4a70fecee481710d3565b"; - hash = "sha256-0+eKxaLKZBRLdydXxUbifFfFncAbthUn7AB8QieWaXM="; + tag = "v${finalAttrs.version}"; + hash = "sha256-bcXZIY0CDyWE3vh04IU3kXRxi/uUm5TD8ifA0jq47rc="; }; - cargoHash = "sha256-IJEEnNIW44kItB19U1lNGi1cHpVGaGHQZt2kgAJFkjU="; + cargoHash = "sha256-Ufe82fJALRlMjRSQ7Y2wFTOzXKtuwQyrWfxZjdEtuc0="; meta = { description = "About Tools for Rockchip image unpack tool"; @@ -25,4 +25,4 @@ rustPlatform.buildRustPackage { maintainers = with lib.maintainers; [ colemickens ]; platforms = lib.platforms.linux; }; -} +})