From 995ed90d3d20e729a7d0aff8c8a95562465fb57d Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Tue, 11 Mar 2025 22:29:15 +0530 Subject: [PATCH] rustlings: add gcc to PATH fixes the following traceback when compiling an exercise: ```bash $ rustlings run error: linker `cc` not found | = note: No such file or directory (os error 2) error: could not compile `exercises` (bin "variables1") due to 1 previous error ``` --- pkgs/by-name/ru/rustlings/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ru/rustlings/package.nix b/pkgs/by-name/ru/rustlings/package.nix index 48a56690b2d1..5c3f1549df0c 100644 --- a/pkgs/by-name/ru/rustlings/package.nix +++ b/pkgs/by-name/ru/rustlings/package.nix @@ -8,6 +8,7 @@ cargo, rustc, clippy, + gcc, makeWrapper, }: let @@ -47,6 +48,7 @@ rustPlatform.buildRustPackage { cargo rustc clippy + gcc ] } '';