From af11d6d164c7c7cf92b8d976a00f238dba1e9746 Mon Sep 17 00:00:00 2001 From: Sander Date: Mon, 22 Apr 2024 17:46:46 +0000 Subject: [PATCH] c: fix an issue where the wrong c/cpp compiler could be set up We already add `stdenv`, which contains all the compilers and sets up the `CC` and `CXX` env variables for each platform. Adding `clang` or `gcc` on top can result in the wrong compilers being set up for the current platform, e.g. gcc on macOS. We saw this happen when building native extensions in ruby. --- src/modules/languages/c.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/languages/c.nix b/src/modules/languages/c.nix index 54fe1442c..963a95578 100644 --- a/src/modules/languages/c.nix +++ b/src/modules/languages/c.nix @@ -12,9 +12,7 @@ in packages = with pkgs; [ stdenv gnumake - clang ccls - gcc pkg-config ]; };