about summary refs log tree commit diff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index d25ccc5c2820..70857e62adc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,8 +19,12 @@ init-state:
 	$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix/db
 	$(INSTALL) -d $(DESTDIR)$(localstatedir)/log/nix
 	$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix/profiles
+	$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix/gcroots
+	$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix/gcroots/tmp
+	rm -f $(DESTDIR)$(localstatedir)/nix/gcroots/profiles
+	ln -s $(localstatedir)/nix/profiles $(DESTDIR)$(localstatedir)/nix/gcroots/profiles
 	$(INSTALL) -d $(DESTDIR)$(prefix)/store
 #	$(bindir)/nix-store --init
 else
 init-state:
-endif
\ No newline at end of file
+endif