Commit e594a0fc authored by Sandro Jäckel's avatar Sandro Jäckel Committed by Jörg Thalheim
Browse files

cargo-auditable: fix cross compilation

This fixes the following error:
...
cargo-auditable>    Doc-tests auditable-extract
cargo-auditable> error: doctest failed, to rerun pass `-p auditable-extract --doc`
cargo-auditable>
cargo-auditable> Caused by:
cargo-auditable>   could not execute process `rustdoc --edition=2018 --crate-type lib --crate-name auditable_extract --test /build/source/auditable-extract/src/lib.rs --target x86_64-unknown-linux-gnu -L dependency=/build/source/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/build/source/target/release/deps --test-args --test-threads=96 --extern auditable_extract=/build/source/target/x86_64-unknown-linux-gnu/release/deps/libauditable_extract-dd1904617e4b78db.rlib --extern binfarce=/build/source/target/x86_64-unknown-linux-gnu/release/deps/libbinfarce-2ba09d21aed0de1a.rlib -C embed-bitcode=no --error-format human` (never executed)
cargo-auditable>
cargo-auditable> Caused by:
cargo-auditable>   No such file or directory (os error 2)

Tested with lanzaboote
parent 4f3a0744
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
{ lib, fetchFromGitHub, makeRustPlatform, rustc, cargo, installShellFiles, stdenv }:
{ lib, buildPackages, fetchFromGitHub, makeRustPlatform, installShellFiles, stdenv }:

let
  args = rec {
@@ -30,8 +30,8 @@ let
  };

  rustPlatform = makeRustPlatform {
    inherit rustc;
    cargo = cargo.override {
    inherit (buildPackages) rustc;
    cargo = buildPackages.cargo.override {
      auditable = false;
    };
  };