[Nix-dev] Overriding top level /nix directory
Eelco Dolstra
eelco.dolstra at logicblox.com
Fri May 8 12:20:50 CEST 2015
Hi,
On 07/05/15 20:20, Tyson Whitehead wrote:
> I don't see any easy way to get this though. This leaves me wondering if a
> new primop to expose the running toolsets value for the store and state
> directories is the way to go.
Nix 1.9 adds a builtins.storeDir constant. In builders, you can use the
$NIX_STORE environment variable.
Regarding the state directory, packages generally should not need to know where
Nix keeps its state.
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list