Commit dac18aa0 authored by ZHAO Jin-Xiang's avatar ZHAO Jin-Xiang
Browse files

ruff: add emulatorAvailable check

parent 2d8560ba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
    rust-jemalloc-sys
  ];

  postInstall =
  postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
    let
      emulator = stdenv.hostPlatform.emulator buildPackages;
    in
@@ -44,7 +44,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
        --bash <(${emulator} $out/bin/ruff generate-shell-completion bash) \
        --fish <(${emulator} $out/bin/ruff generate-shell-completion fish) \
        --zsh <(${emulator} $out/bin/ruff generate-shell-completion zsh)
    '';
    ''
  );

  # Run cargo tests
  checkType = "debug";