Unverified Commit 87145017 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

lucky-commit: fix Darwin aarch64 cargo deps patch path (#514314)

parents 6dc895ec ab5718da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ rustPlatform.buildRustPackage (finalAttrs: {

  # LLVM Apple assembler rejects `:lo12:` combined with `@PAGEOFF`.
  postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ''
    substituteInPlace "$cargoDepsCopy"/sha1-asm-*/src/aarch64_apple.S \
    substituteInPlace "$cargoDepsCopy"/*/sha1-asm-*/src/aarch64_apple.S \
      --replace-fail "#:lo12:.K0@PAGEOFF" ".K0@PAGEOFF" \
      --replace-fail "#:lo12:.K1@PAGEOFF" ".K1@PAGEOFF" \
      --replace-fail "#:lo12:.K2@PAGEOFF" ".K2@PAGEOFF" \