about summary refs log tree commit diff
path: root/nix.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'nix.spec.in')
-rw-r--r--nix.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/nix.spec.in b/nix.spec.in
index 2d9d9d2281c6..e94bcff8dddc 100644
--- a/nix.spec.in
+++ b/nix.spec.in
@@ -118,6 +118,10 @@ make DESTDIR=$RPM_BUILD_ROOT install
 
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
+# make the store
+mkdir -p $RPM_BUILD_ROOT/nix/store
+chmod 1775 $RPM_BUILD_ROOT/nix/store
+
 # make per-user directories
 for d in profiles gcroots;
 do
@@ -155,7 +159,6 @@ done
 
 %post
 chgrp %{nixbld_group} /nix/store
-chmod 1775 /nix/store
 %if ! 0%{?rhel}
 # Enable and start Nix worker
 systemctl enable nix-daemon.socket nix-daemon.service