From 53c92507665ed563075b1ff9b74d33028cb69e75 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Sun, 16 Feb 2025 12:37:41 +0100 Subject: [PATCH] oxipng: fix build on aarch64-linux build fails with error: linker `aarch64-linux-gnu-gcc` not found In my testing, it doesn't seem to be necessary to run aarch64 inside a qemu vm. --- pkgs/by-name/ox/oxipng/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ox/oxipng/package.nix b/pkgs/by-name/ox/oxipng/package.nix index b661fd536110..461522b2f3f2 100644 --- a/pkgs/by-name/ox/oxipng/package.nix +++ b/pkgs/by-name/ox/oxipng/package.nix @@ -1,9 +1,7 @@ { lib, - stdenv, fetchFromGitHub, rustPlatform, - qemu, }: rustPlatform.buildRustPackage rec { @@ -21,8 +19,11 @@ rustPlatform.buildRustPackage rec { useFetchCargoVendor = true; cargoHash = "sha256-Z0otTCFwtGuSC1XBM3jcgGDFPZuMzQikZaYCnR+S6Us="; - # See https://github.com/shssoichiro/oxipng/blob/14b8b0e93a/.cargo/config.toml#L5 - nativeCheckInputs = [ qemu ]; + # don't require qemu for aarch64-linux tests + # error: linker `aarch64-linux-gnu-gcc` not found + postPatch = '' + rm .cargo/config.toml + ''; meta = { homepage = "https://github.com/shssoichiro/oxipng";