rustPlatform.buildRustPackage: fix cross compiling auditable packages
This commit is contained in:
parent
a113c6f06f
commit
b9259df616
@ -10,6 +10,7 @@
|
||||
, cargoInstallHook
|
||||
, cargoNextestHook
|
||||
, cargoSetupHook
|
||||
, cargo
|
||||
, cargo-auditable
|
||||
, cargo-auditable-cargo-wrapper
|
||||
, rustc
|
||||
@ -120,7 +121,7 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg
|
||||
|
||||
nativeBuildInputs = nativeBuildInputs ++ lib.optionals auditable [
|
||||
(cargo-auditable-cargo-wrapper.override {
|
||||
inherit cargo-auditable;
|
||||
inherit cargo cargo-auditable;
|
||||
})
|
||||
] ++ [
|
||||
cacert
|
||||
|
@ -81,6 +81,8 @@ in
|
||||
rustPlatform = bootRustPlatform;
|
||||
inherit CoreFoundation Security;
|
||||
};
|
||||
cargo-auditable = self.callPackage ./cargo-auditable.nix { };
|
||||
cargo-auditable-cargo-wrapper = self.callPackage ./cargo-auditable-cargo-wrapper.nix { };
|
||||
clippy = self.callPackage ./clippy.nix { inherit Security; };
|
||||
});
|
||||
};
|
||||
|
@ -1,6 +1,11 @@
|
||||
{ buildPackages, callPackage, stdenv, runCommand }@prev:
|
||||
|
||||
{ rustc, cargo, stdenv ? prev.stdenv, ... }:
|
||||
{ rustc
|
||||
, cargo
|
||||
, cargo-auditable ? null
|
||||
, stdenv ? prev.stdenv
|
||||
, ...
|
||||
}:
|
||||
|
||||
rec {
|
||||
rust = {
|
||||
@ -14,7 +19,7 @@ rec {
|
||||
|
||||
buildRustPackage = callPackage ../../../build-support/rust/build-rust-package {
|
||||
inherit stdenv cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook
|
||||
fetchCargoTarball importCargoLock rustc;
|
||||
fetchCargoTarball importCargoLock rustc cargo cargo-auditable;
|
||||
};
|
||||
|
||||
importCargoLock = buildPackages.callPackage ../../../build-support/rust/import-cargo-lock.nix { inherit cargo; };
|
||||
|
@ -15419,7 +15419,7 @@ with pkgs;
|
||||
rustPackages_1_66 = rust_1_66.packages.stable;
|
||||
rustPackages = rustPackages_1_66;
|
||||
|
||||
inherit (rustPackages) cargo clippy rustc rustPlatform;
|
||||
inherit (rustPackages) cargo cargo-auditable cargo-auditable-cargo-wrapper clippy rustc rustPlatform;
|
||||
|
||||
makeRustPlatform = callPackage ../development/compilers/rust/make-rust-platform.nix {};
|
||||
|
||||
@ -15449,8 +15449,6 @@ with pkgs;
|
||||
cargo-audit = callPackage ../development/tools/rust/cargo-audit {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-auditable = callPackage ../development/tools/rust/cargo-auditable { };
|
||||
cargo-auditable-cargo-wrapper = callPackage ../development/tools/rust/cargo-auditable/cargo-wrapper.nix { };
|
||||
cargo-bisect-rustc = callPackage ../development/tools/rust/cargo-bisect-rustc {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
openssl = openssl_1_1;
|
||||
|
Loading…
Reference in New Issue
Block a user