[Nix-dev] Flags to configure script

Bjorn Buckwalter bjorn.buckwalter at gmail.com
Sun May 24 20:42:00 CEST 2009


On Sun, May 24, 2009 at 09:57, Mads Lindstrøm <mads_lindstroem at yahoo.dk> wrote:
> "First, the docs state that --prefix=/nix is the default, but it seems
> it's
> /usr/local. At least make install (as a normal user!) tried to create
> /usr/local/libexec or something and failed."
>
> I suspect that I should have given the configure script the
> --prefix=/nix flag. Should I have?

I ran into this one too and was slightly annoyed. Based on the
documentation I too assumed that nix-env et al would be installed in
/nix/bin, libraries in /nix/lib, etc, but instead they all went into
/usr/local. Was convenient to not have to adjust my PATH but it wasn't
what I expected.

Also, my impression is that after installing nix "within" nix
('nix-env -i nix') the stuff in /usr/local is never used again
(assuming your ~/.nix-profile/bin preceeds /usr/local/bin in $PATH).
Perhaps someone else could confirm?

Thanks,
Bjorn



More information about the nix-dev mailing list