Skip to content

Commit

Permalink
Merge pull request #337 from replit/cad/better-nightly-display-version
Browse files Browse the repository at this point in the history
rust: improve nightly module displayVersion
  • Loading branch information
cdmistman authored May 23, 2024
2 parents cc3b721 + 12a1ba2 commit 65bceed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/modules/rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ let
pkgs.fenix.targets.wasm32-wasi.${fenix-channel-name}.rust-std
pkgs.fenix.targets.wasm32-unknown-unknown.${fenix-channel-name}.rust-std
];

# TODO: fenix doesn't give the rustc stable version :(
displayVersion = if fenix-channel-name == "stable" then "stable" else channel.cargo.version;
in
{
id = "rust-${rust-channel-name}";
name = "Rust Tools (${rust-channel-name})";
displayVersion = rust-channel-name;
inherit displayVersion;
description = ''
Rust development tools. Includes Rust compiler, Cargo, Rust analyzer.
'';
Expand Down

0 comments on commit 65bceed

Please sign in to comment.