From 8d6384277cd0704268aa08b247f05657b501a239 Mon Sep 17 00:00:00 2001 From: quantenzitrone Date: Fri, 6 Feb 2026 22:10:50 +0100 Subject: [PATCH] rustlings: refactor this shouldn't create any rebuilds --- pkgs/by-name/ru/rustlings/package.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ru/rustlings/package.nix b/pkgs/by-name/ru/rustlings/package.nix index c2d818cfe705..cc8ad4924c54 100644 --- a/pkgs/by-name/ru/rustlings/package.nix +++ b/pkgs/by-name/ru/rustlings/package.nix @@ -9,16 +9,15 @@ gcc, makeWrapper, }: -let + +rustPlatform.buildRustPackage (finalAttrs: { pname = "rustlings"; version = "6.5.0"; -in -rustPlatform.buildRustPackage { - inherit pname version; + src = fetchFromGitHub { owner = "rust-lang"; repo = "rustlings"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-dUQIzNPxmKbhew9VjFIW7bY0D1IkuJ5+hRY2/CwmYhY="; }; @@ -55,4 +54,4 @@ rustPlatform.buildRustPackage { maintainers = with lib.maintainers; [ luftmensch-luftmensch ]; mainProgram = "rustlings"; }; -} +})