From fb1d987ce2b4e94c2d9f08de0943cfc0fad36dfb Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 14 Apr 2025 15:32:31 +0200 Subject: [PATCH] mistral-rs: fix build on aarch64-darwin Co-authored-by: Niklas Korz --- pkgs/by-name/mi/mistral-rs/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mi/mistral-rs/package.nix b/pkgs/by-name/mi/mistral-rs/package.nix index 8def84e252c5..8151df791ec4 100644 --- a/pkgs/by-name/mi/mistral-rs/package.nix +++ b/pkgs/by-name/mi/mistral-rs/package.nix @@ -159,9 +159,10 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; # swagger-ui will once more be copied in the target directory during the check phase + # See https://github.com/juhaku/utoipa/blob/utoipa-swagger-ui-7.1.0/utoipa-swagger-ui/build.rs#L168 # Not deleting the existing unpacked archive leads to a `PermissionDenied` error preCheck = '' - rm -rf target/${hostPlatform.config}/release/build/ + rm -rf target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/build/ ''; # Prevent checkFeatures from inheriting buildFeatures because