rustup: replace rec with finalAttrs

This commit is contained in:
Acid Bong
2025-04-19 12:22:15 +03:00
parent d3d46e1996
commit ded7bd6eec
@@ -22,14 +22,14 @@ let
];
in
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "rustup";
version = "1.27.1";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "rustup";
tag = version;
tag = finalAttrs.version;
hash = "sha256-BehkJTEIbZHaM+ABaWN/grl9pX75lPqyBj1q1Kt273M=";
};
@@ -128,7 +128,7 @@ rustPlatform.buildRustPackage rec {
chmod +x $out/nix-support/ld-wrapper.sh
'';
env = lib.optionalAttrs (pname == "rustup") {
env = lib.optionalAttrs (finalAttrs.pname == "rustup") {
inherit (stdenv.cc.bintools)
expandResponseParams
shell
@@ -150,4 +150,4 @@ rustPlatform.buildRustPackage rec {
mic92
];
};
}
})