| It's coming from pkgs.mkShell.
To read how that happens, open up pkgs/top-level/all-packages.nix, find mkShell. That gets you to pkgs/build-support/mkshell/default.nix.
Inside pkgs/build-support/mkshell/default.nix, note how the return value is stdenv.mkDerivation. (that stdenv is the key).
Consider also mkShellNoCC for your use case. Note how that definition in pkgs/top-level/all-packages.nix does this:
mkShellNoCC = mkShell.override { stdenv = stdenvNoCC; };
You can do similarly to override the stdenv with whatever's appropriate for your usecase.
|