[staging-next] oxipng: fix build on aarch64-linux (#382544)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user