about summary refs log tree commit diff
path: root/scripts/build-remote.pl.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-11-23T12·21+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-11-23T12·21+0000
commitab20af3e6f83f320232d0e5f6bcfcb279c0047c0 (patch)
treed52aa97d9687235d16c056f03f1c2c3844b14b6d /scripts/build-remote.pl.in
parent993fa94fb489f46e127ef760bea8c65ef281ef7f (diff)
* build-remote.pl: drop a hard-coded reference to /nix/etc/nix.
Diffstat (limited to 'scripts/build-remote.pl.in')
-rwxr-xr-xscripts/build-remote.pl.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in
index e8c76086dae2..110c95f223a0 100755
--- a/scripts/build-remote.pl.in
+++ b/scripts/build-remote.pl.in
@@ -3,6 +3,7 @@
 use Fcntl ':flock';
 use English '-no_match_vars';
 use IO::Handle;
+use Nix::Config;
 use Nix::SSH qw/sshOpts openSSHConnection/;
 no warnings('once');
 
@@ -208,7 +209,7 @@ print STDERR "@ build-remote $drvPath $hostName\n" if $printBuildTrace;
 
 
 my $maybeSign = "";
-$maybeSign = "--sign" if -e "/nix/etc/nix/signing-key.sec";
+$maybeSign = "--sign" if -e "$Nix::Config::confDir/signing-key.sec";
 
 
 # Register the derivation as a temporary GC root.  Note that $PPID is