[Nix-dev] Flags to configure script

Bjorn Buckwalter bjorn.buckwalter at gmail.com
Mon May 25 19:00:21 CEST 2009


2009/5/24 Lluís Batlle <viriketo at gmail.com>:
> The store is used, and I think you also use the
> PREFIX/etc/profile.d/nix.sh script to set up your path.
> Where did your store go? /nix/store or PREFIX/store ?

The store goes in /nix/store unless another destination is explicitly
specified with --with-store-dir (i.e. not affected by --prefix). The
same is true for the state dir which goes in /nix/var unless
--localstatedir is specified. As an example, to get everything to
install in $HOME/nix on a machine where I lacked admin privileges I
had to use:

./configure --prefix=$HOME/nix --with-store-dir=$HOME/nix/store
--localstatedir=$HOME/nix/var

Thanks,
Bjorn



More information about the nix-dev mailing list