diff --git a/stdenv.nix b/stdenv.nix index 4bd8f79..6dd0c2e 100644 --- a/stdenv.nix +++ b/stdenv.nix @@ -1,7 +1,8 @@ pkgs: stdenv: let + inherit (pkgs) addAttrsToDerivation overrideCC; inherit (pkgs.lib) optionalAttrs optionals toList; - inherit (pkgs) addAttrsToDerivation; + inherit (pkgs.llvmPackages_latest) clang; inherit (stdenv) buildPlatform hostPlatform; cflagsC = [ @@ -50,4 +51,4 @@ in addAttrsToDerivation (base: { NIX_CFLAGS_LINK = toList base.NIX_CFLAGS_LINK or [ ] ++ cflagsL; } // optionalAttrs (!base ? env.NIX_LDFLAGS) { NIX_LDFLAGS = toList base.NIX_LDFLAGS or [ ] ++ ldflags; -}) stdenv +}) pkgs.llvmPackages_latest.stdenv