mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
Merge pull request #227683 from amjoseph-nixpkgs/pr/cargo/unbreak-cross
This commit is contained in:
commit
4b5d340902
@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, makeRustPlatform, rustc, cargo, installShellFiles }:
|
||||
{ lib, fetchFromGitHub, makeRustPlatform, rustc, cargo, installShellFiles, stdenv }:
|
||||
|
||||
let
|
||||
args = rec {
|
||||
@ -25,6 +25,7 @@ let
|
||||
changelog = "https://github.com/rust-secure-code/cargo-auditable/blob/v${version}/cargo-auditable/CHANGELOG.md";
|
||||
license = with licenses; [ mit /* or */ asl20 ];
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
broken = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,14 +1,15 @@
|
||||
{ lib, stdenv, pkgsBuildHost, pkgsHostHost
|
||||
, file, curl, pkg-config, python3, openssl, cmake, zlib
|
||||
, installShellFiles, makeWrapper, rustPlatform, rustc
|
||||
, installShellFiles, makeWrapper, rustPlatform, rust, rustc
|
||||
, CoreFoundation, Security
|
||||
, auditable ? true
|
||||
, auditable ? !cargo-auditable.meta.broken
|
||||
, cargo-auditable
|
||||
, pkgsBuildBuild
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage.override {
|
||||
cargo-auditable = cargo-auditable.bootstrap;
|
||||
} {
|
||||
} ({
|
||||
pname = "cargo";
|
||||
inherit (rustc) version src;
|
||||
|
||||
@ -113,3 +114,6 @@ rustPlatform.buildRustPackage.override {
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (rust.toRustTarget stdenv.buildPlatform != rust.toRustTarget stdenv.hostPlatform) {
|
||||
HOST_PKG_CONFIG_PATH="${pkgsBuildBuild.pkg-config}/bin/pkg-config";
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user