diff --git a/grammars.nix b/grammars.nix index 62db34649d187..204a103bfc68c 100644 --- a/grammars.nix +++ b/grammars.nix @@ -18,7 +18,9 @@ let rev = grammar.source.rev; allRefs = true; }; - in clangStdenv.mkDerivation rec { + mkDerivation = + (if stdenv.isDarwin then clangStdenv else stdenv).mkDerivation; + in mkDerivation rec { # see https://github.com/NixOS/nixpkgs/blob/fbdd1a7c0bc29af5325e0d7dd70e804a972eb465/pkgs/development/tools/parsing/tree-sitter/grammar.nix pname = "helix-tree-sitter-${grammar.name}";