guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

134/376: build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and $NI


From: Ludovic Courtès
Subject: 134/376: build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and $NIX_REMOTE_SYSTEMS
Date: Wed, 28 Jan 2015 22:04:33 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit ccd4fe5c490f3885615a01900ac34bc099735815
Author: Eelco Dolstra <address@hidden>
Date:   Sun Aug 17 18:05:24 2014 +0200

    build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and 
$NIX_REMOTE_SYSTEMS
---
 scripts/build-remote.pl.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in
index ab9392b..89d3a43 100755
--- a/scripts/build-remote.pl.in
+++ b/scripts/build-remote.pl.in
@@ -48,8 +48,8 @@ my $loadIncreased = 0;
 
 my ($localSystem, $maxSilentTime, $printBuildTrace, $buildTimeout) = @ARGV;
 
-my $currentLoad = $ENV{"NIX_CURRENT_LOAD"};
-my $conf = $ENV{"NIX_REMOTE_SYSTEMS"};
+my $currentLoad = $ENV{"NIX_CURRENT_LOAD"} // "/run/nix/current-load";
+my $conf = $ENV{"NIX_REMOTE_SYSTEMS"} // "@sysconfdir@/nix/machines";
 
 
 sub openSlotLock {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]