Skip to content

Commit fb1d987

Browse files
mistral-rs: fix build on aarch64-darwin
Co-authored-by: Niklas Korz <[email protected]>
1 parent 7208a83 commit fb1d987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/by-name/mi/mistral-rs/package.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
159159
];
160160

161161
# swagger-ui will once more be copied in the target directory during the check phase
162+
# See https://github.com/juhaku/utoipa/blob/utoipa-swagger-ui-7.1.0/utoipa-swagger-ui/build.rs#L168
162163
# Not deleting the existing unpacked archive leads to a `PermissionDenied` error
163164
preCheck = ''
164-
rm -rf target/${hostPlatform.config}/release/build/
165+
rm -rf target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/build/
165166
'';
166167

167168
# Prevent checkFeatures from inheriting buildFeatures because

0 commit comments

Comments
 (0)