File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11{ bashInteractive
22, coreutils
3- , system
3+ , stdenv
44, writeTextFile
55} :
66let
77 bashPath = "${ bashInteractive } /bin/bash" ;
8- stdenv = writeTextFile {
8+ nakedStdenv = writeTextFile {
99 name = "naked-stdenv" ;
1010 destination = "/setup" ;
1111 text = ''
2727, passthru ? { }
2828} :
2929( derivation {
30- inherit name system ;
30+ inherit name ;
31+
32+ system = stdenv . hostPlatform . system ;
3133
3234 # `nix develop` actually checks and uses builder. And it must be bash.
3335 builder = bashPath ;
3739
3840 # $stdenv/setup is loaded by nix-shell during startup.
3941 # https://github.com/nixos/nix/blob/377345e26f1ac4bbc87bb21debcc52a1d03230aa/src/nix-build/nix-build.cc#L429-L432
40- stdenv = stdenv ;
42+ stdenv = nakedStdenv ;
4143
4244 # The shellHook is loaded directly by `nix develop`. But nix-shell
4345 # requires that other trampoline.
You can’t perform that action at this time.
0 commit comments