mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
* Put build logs in $prefix/var/nix/log/drvs/.
This commit is contained in:
parent
fb5dae8694
commit
88273f9574
2 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ init-state:
|
|||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix
|
||||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/db
|
||||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/log/nix
|
||||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/log/nix/drvs
|
||||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/profiles
|
||||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/gcroots
|
||||
$(INSTALL) $(INIT_FLAGS) -d $(DESTDIR)$(localstatedir)/nix/temproots
|
||||
|
|
|
@ -1156,7 +1156,7 @@ void DerivationGoal::computeClosure()
|
|||
void DerivationGoal::openLogFile()
|
||||
{
|
||||
/* Create a log file. */
|
||||
Path logFileName = nixLogDir + "/" + baseNameOf(drvPath);
|
||||
Path logFileName = nixLogDir + "/drvs/" + baseNameOf(drvPath);
|
||||
fdLogFile = open(logFileName.c_str(),
|
||||
O_CREAT | O_WRONLY | O_TRUNC, 0666);
|
||||
if (fdLogFile == -1)
|
||||
|
|
Loading…
Reference in a new issue