1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 10:45:08 +02:00

* Allow read-only access to the store (e.g., non-root users on NixOS

can do operations like "nix-store -qR <path>" even without the Nix
  daemon).
This commit is contained in:
Eelco Dolstra 2008-07-18 15:34:46 +00:00
parent 8bc591a6f0
commit 989176c56e
2 changed files with 11 additions and 6 deletions

View file

@ -8,7 +8,6 @@ use File::Temp qw(tempdir);
my $manifestDir = "@localstatedir@/nix/manifests";
my $logFile = "@localstatedir@/log/nix/downloads";
open LOGFILE, ">>$logFile" or die "cannot open log file $logFile";
# Create a temporary directory.
my $tmpDir = tempdir("nix-download.XXXXXX", CLEANUP => 1, TMPDIR => 1)
@ -76,6 +75,8 @@ die unless scalar @ARGV == 2;
my $targetPath = $ARGV[1];
open LOGFILE, ">>$logFile" or die "cannot open log file $logFile";
my $date = strftime ("%F %H:%M:%S UTC", gmtime (time));
print LOGFILE "$$ get $targetPath $date\n";