@@ -101,6 +101,18 @@ do
104+# Add application-specific extra targets
106+if [ "${targets[0]}" = "nix-bundle" ] || [ "${targets[0]}" = "nixStable" ] || [ "${targets[0]}" = "nixUnstable" ] || [ "${targets[0]}" = "nix" ]
110+ targets+=("coreutils")
104# Create tmp directory for the links produced by `nix build`
116# Create tmp directory for the links produced by `nix build`
106linkdir=$(mktemp -d)
118linkdir=$(mktemp -d)
@@ -142,9 +154,7 @@ fi
142# Determine bootstrap function -- This seems like a total hack!
154# Determine bootstrap function -- This seems like a total hack!
144bootstrap=nix-bootstrap
156bootstrap=nix-bootstrap
145−if [ "${targets[0]}" = "nix-bundle" ] || [ "${targets[0]}" = "nixStable" ] || [ "${targets[0]}" = "nixUnstable" ] || [ "${targets[0]}" = "nix" ]; then
146− bootstrap=nix-bootstrap-nix
147−elif ! [ -z "$extra_target_paths" ]; then
157+if ! [ -z "$extra_target_paths" ]; then
148 bootstrap=nix-bootstrap-path
158 bootstrap=nix-bootstrap-path