diff options
Diffstat (limited to 'pkgs/development/tools/rust/rustup/default.nix')
-rw-r--r-- | pkgs/development/tools/rust/rustup/default.nix | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/tools/rust/rustup/default.nix b/pkgs/development/tools/rust/rustup/default.nix index ee34be2d10f0b..e5874580d3f90 100644 --- a/pkgs/development/tools/rust/rustup/default.nix +++ b/pkgs/development/tools/rust/rustup/default.nix @@ -23,20 +23,17 @@ in rustPlatform.buildRustPackage rec { pname = "rustup"; - version = "1.25.2"; + version = "1.26.0"; src = fetchFromGitHub { owner = "rust-lang"; repo = "rustup"; rev = version; - sha256 = "sha256-zFdw6P4yrLDshtF9A5MbkxFcUE8KvlZGx5qkW4LSPzw="; + sha256 = "sha256-rdhG9MdjWyvoaMGdjgFyCfQaoV48QtAZE7buA5TkDKg="; }; cargoLock = { lockFile = ./Cargo.lock; - outputHashes = { - "home-0.5.3" = "sha256-lb+FGJmGnBm64pddhQWclErwFLFnd7scFcuA+auw1Rk="; - }; }; nativeBuildInputs = [ makeBinaryWrapper pkg-config ]; @@ -62,12 +59,22 @@ rustPlatform.buildRustPackage rec { doCheck = !stdenv.isAarch64 && !stdenv.isDarwin; + # skip failing tests + checkFlags = [ + # auto-self-update mode is set to 'disable' for nix rustup + "--skip=suite::cli_exact::check_updates_none" + "--skip=suite::cli_exact::check_updates_some" + "--skip=suite::cli_exact::check_updates_with_update" + # rustup-init is not used in nix rustup + "--skip=suite::cli_ui::rustup_init_ui_doc_text_tests" + ]; + postInstall = '' pushd $out/bin mv rustup-init rustup binlinks=( cargo rustc rustdoc rust-gdb rust-lldb rls rustfmt cargo-fmt - cargo-clippy clippy-driver cargo-miri rust-gdbgui + cargo-clippy clippy-driver cargo-miri rust-gdbgui rust-analyzer ) for link in ''${binlinks[@]}; do ln -s rustup $link |