aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09 10:57:28 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09 10:57:28 -0400
commit099125435fc5ada63365a94ca153c711e706e225 (patch)
treef64ef41264120d9b740e7a1819ea261fa1145c2d /perl
parent98a423b75aa9061f0164c316f9d2481ce6d5e2f1 (diff)
download-from-binary-cache: add nix.conf options
Diffstat (limited to 'perl')
-rw-r--r--perl/lib/Nix/Config.pm.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl/lib/Nix/Config.pm.in b/perl/lib/Nix/Config.pm.in
index 64aaccd7c..57751b6b4 100644
--- a/perl/lib/Nix/Config.pm.in
+++ b/perl/lib/Nix/Config.pm.in
@@ -14,16 +14,16 @@ $curl = "@curl@";
$useBindings = "@perlbindings@" eq "yes";
+%config = ();
+
sub readConfig {
- my %config;
- my $config = "@sysconfdir@/nix/nix.conf";
+ my $config = "$confDir/nix.conf";
return unless -f $config;
open CONFIG, "<$config" or die "cannot open `$config'";
while (<CONFIG>) {
/^\s*([\w|-]+)\s*=\s*(.*)$/ or next;
$config{$1} = $2;
- print "|$1| -> |$2|\n";
}
close CONFIG;
}