[Nix-dev] Installing nix with $prefix != /nix

SIGOURE Benoit sigoure.benoit at lrde.epita.fr
Mon Aug 21 15:14:50 CEST 2006


Hello folks

I'm installing Nix on an NFS share so that our users can have (read only) access
to an up to date Nix install (packages and stuff are updated by a daily
crontab). Unfortunately, I can't install it under /nix. Here is what I've done
so far:

/tmp/nix-0.10pre6097 $ ./configure --prefix=/lrde/dev/linux-x86/nix
[...]
/tmp/nix-0.10pre6097 $ make && make install
[...]
~ $ echo '[ -f /lrde/dev/linux-x86/nix/etc/profile.d/nix.sh ] && \
  source /lrde/dev/linux-x86/nix/etc/profile.d/nix.sh' >> ~/.zshrc
~ $ exec zsh
creating /lrde/beyrouth/admin/lrde/.nix-profile
~ $ nix-channel --add http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable
~ $ nix-channel --add
http://nix.cs.uu.nl/dist/stratego/channels-v3/strategoxt-unstable
~ $ nix-channel --update
error: the path `/lrde/dev' is a symlink; this is not allowed for the Nix store
and its parent directories
cannot clear substitutes at /lrde/dev/linux-x86/nix/bin/nix-channel line 74.

OK right, I already came across this problem and the Nix manual reminded me that
I needed to export NIX_IGNORE_SYMLINK_STORE. We're using BSD's AutoMounter
Daemon (amd) for our NFS shares and the NFS mounts are under
/lrde/<hostname>/<share> but we use convenient symlinks (such as /lrde/dev
/lrde/home etc.)

~ $ export NIX_IGNORE_SYMLINK_STORE=1
~ $ nix-channel --update
upgrading Nix store to new schema (this may take a while)...
hashing paths...
processing closures...
pulling cache manifest from
`http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable'
obtaining list of Nix archives at
http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable/MANIFEST...
1507 store paths in manifest
registering substitutes...
error: path `/nix/store/6j4aa0mzhnxpj5nd1lr283ns9bjnzv9k-setup-hook.sh' is not
in the Nix store
cannot pull cache manifest from
`http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable' at
/lrde/dev/linux-x86/nix/bin/nix-channel line 85.

OK now I'm stuck... What's wrong?
I tried nix-store --clear-substitutes but it won't change anything.

Any help would be appreciated, thanks.

-- 
SIGOURE Benoit aka Tsuna
   _____
  /EPITA\ Promo 2008, LRDE




More information about the nix-dev mailing list