mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nixos-rebuild: Build only the 'out' output of nix (not 'doc' and 'debug' too)
This fixes the failing NixOS installer tests.
This commit is contained in:
parent
fb2eae08d5
commit
51c6383ebd
@ -270,9 +270,9 @@ remotePATH=
|
|||||||
if [ -n "$buildNix" ]; then
|
if [ -n "$buildNix" ]; then
|
||||||
echo "building Nix..." >&2
|
echo "building Nix..." >&2
|
||||||
nixDrv=
|
nixDrv=
|
||||||
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nixdrv --indirect -A config.nix.package "${extraBuildFlags[@]}")"; then
|
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package "${extraBuildFlags[@]}")"; then
|
||||||
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nixdrv --indirect -A nixFallback "${extraBuildFlags[@]}")"; then
|
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A nixFallback "${extraBuildFlags[@]}")"; then
|
||||||
if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nixdrv --indirect -A nix "${extraBuildFlags[@]}")"; then
|
if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
|
||||||
nixStorePath="$(prebuiltNix "$(uname -m)")"
|
nixStorePath="$(prebuiltNix "$(uname -m)")"
|
||||||
if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
|
if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
|
||||||
--option extra-binary-caches https://cache.nixos.org/; then
|
--option extra-binary-caches https://cache.nixos.org/; then
|
||||||
@ -293,7 +293,7 @@ if [ -n "$buildNix" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -a "$nixDrv" ]; then
|
if [ -a "$nixDrv" ]; then
|
||||||
nix-store -r "$nixDrv" --add-root $tmpDir/nix --indirect >/dev/null
|
nix-store -r "$nixDrv"'!'"out" --add-root $tmpDir/nix --indirect >/dev/null
|
||||||
if [ -n "$buildHost" ]; then
|
if [ -n "$buildHost" ]; then
|
||||||
nix-copy-closure --to "$buildHost" "$nixDrv"
|
nix-copy-closure --to "$buildHost" "$nixDrv"
|
||||||
# The nix build produces multiple outputs, we add them all to the remote path
|
# The nix build produces multiple outputs, we add them all to the remote path
|
||||||
|
Loading…
Reference in New Issue
Block a user