Skip to content

Commit b994cc2

Browse files
committed
Update flake.nix for pinned nightly toolchain
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 3dc7f69 commit b994cc2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

flake.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
chmod +x "$ldlld"
4848
fi
4949
'');
50+
passthru = (oA.passthru or {}) // {
51+
toolchainVersionAttrs = args;
52+
};
5053
})) // {
5154
targetPlatforms = [ "x86_64-linux" ];
5255
badTargetPlatforms = [ ];
@@ -93,9 +96,9 @@
9396
sha256 = "sha256-sqSWJDUxc+zaz1nBWMAJKTAGBuGWP25GCftIOlCEAtA=";
9497
};
9598
nightly = {
96-
date = "2026-01-19";
99+
date = "2026-02-27";
97100
channel = "nightly";
98-
sha256 = "sha256-Ye65U/qzilPLte800N5oxFOY96shgG8bST8dbrF6Qh0=";
101+
sha256 = "sha256-5twI9QsrPl0ryOZ4POGYAivSeI08jgmWnv0wVvzbjcE=";
99102
};
100103
"1.89" = {
101104
date = "2025-08-07";
@@ -191,8 +194,10 @@
191194
# nothing as well.
192195
rustup-like-wrapper = name: pkgs.writeShellScriptBin name
193196
(let
194-
clause = name: toolchain:
195-
"+${name}) base=\"${toolchain.rust}\"; shift 1; ;;";
197+
clause = name: toolchain: ''
198+
+${name}) base="${toolchain.rust}"; shift 1; ;;
199+
+${name}-${toolchain.rust.toolchainVersionAttrs.date}) base="${toolchain.rust}"; shift 1; ;;
200+
'';
196201
clauses = lib.strings.concatStringsSep "\n"
197202
(lib.mapAttrsToList clause toolchains);
198203
in ''

0 commit comments

Comments
 (0)