[Nix-dev] Resolve symlink during copy to /nix/store
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Fri Aug 22 22:47:08 CEST 2014
Hi,
I currently have a setup like this:
##
haddock/default.nix
haddock/src
haddock/…
haddock/haddock-api/default.nix
haddock/haddock-api/src -> ../src
haddock/haddock/api/…
##
When I try to nix-build ‘haddock-api’, the cabal builder fails with
##
Setup: can't find source for Documentation/Haddock in src,
dist/build/autogen
##
If I run with -K and peek into the store path, I can see
##
default.nix ->
/home/shana/programming/nix-project-defaults/haddock-api/default.nix
src -> ../src/
…
##
With this my question should be obvious: how can I get nix to resolve
the symlink(s) and copy what they are pointing at rather than copying
them as-is where they become broken if they are relative paths?
In fact, I'd imagine that copying symlinks would be something that would
be very much looked out for considering it lets you trivially change
behaviour of a package in the store after it has already been built so I
thought this might have been already solved before but my searches
didn't bring up anything that could help me.
--
Mateusz K.
More information about the nix-dev
mailing list