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/
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to