mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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
This commit is contained in:
parent
4f3a074422
commit
e594a0fc14
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue