diff options
author | Timothy Allen <Timothy.Allen@optiver.com.au> | 2016-07-01 13:56:09 +1000 |
---|---|---|
committer | Timothy Allen <Timothy.Allen@optiver.com.au> | 2016-07-01 14:09:42 +1000 |
commit | 3a535abbc782ac43a031f9f917e66d17e3789b3a (patch) | |
tree | 84f741a34e430bd92ecb7613bad6b0926f6004b1 | |
parent | 0610486d61f8359227ac4c2073de7becb27128a2 (diff) |
nix.spec.in: Create /nix/store at install time.
Since we now chmod /nix/store at install time, we don't need to do it in the
post install script. We still chgrp in the post-install, because the nixbld
group doesn't exist at install time.
-rw-r--r-- | nix.spec.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nix.spec.in b/nix.spec.in index 2d9d9d228..e94bcff8d 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 |