Merge pull request #231570 from figsoda/rustup

rustup-toolchain-install-master: update Cargo.lock and unpin openssl
This commit is contained in:
Nick Cao
2023-05-13 13:40:58 +08:00
committed by GitHub
3 changed files with 1684 additions and 7 deletions
File diff suppressed because it is too large Load Diff
@@ -1,12 +1,13 @@
{ stdenv
, lib
, fetchFromGitHub
{ lib
, rustPlatform
, pkg-config
, openssl
, fetchFromGitHub
, runCommand
, stdenv
, patchelf
, zlib
, pkg-config
, openssl
, xz
, Security
}:
@@ -21,6 +22,10 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-J25ER/g8Kylw/oTIEl4Gl8i1xmhR+4JM5M5EHpl1ras=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
patches =
let
patchelfPatch = runCommand "0001-dynamically-patchelf-binaries.patch" {
@@ -41,11 +46,15 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
xz
] ++ lib.optionals stdenv.isDarwin [
Security
];
cargoSha256 = "n7t8Ap9hdhrjmtKjfdyozf26J7yhu57pedm19CunLF4=";
# update Cargo.lock to work with openssl 3
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
meta = with lib; {
description = "Install a rustc master toolchain usable from rustup";
-1
View File
@@ -16381,7 +16381,6 @@ with pkgs;
};
rustup-toolchain-install-master = callPackage ../development/tools/rust/rustup-toolchain-install-master {
inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
};
rusty-man = callPackage ../development/tools/rust/rusty-man { };
typeshare = callPackage ../development/tools/rust/typeshare { };