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.
This commit is contained in:
Leona Maroni
2025-02-16 12:56:32 +01:00
parent f71ec3ed82
commit 53c9250766
+5 -4
View File
@@ -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";