[Nix-dev] store & passwords - once again

Shea Levy shea at shealevy.com
Mon Aug 13 12:32:01 CEST 2012



On Aug 12, 2012, at 8:49 PM, Marc Weber <marco-oweber at gmx.de> wrote:

> Excerpts from Eelco Dolstra's message of Mon Aug 13 01:54:35 +0200 2012:
>> Unfortunately no, because this patch would introduce an untracked side effect to
>> evaluation, namely creating files in a non-store location.
> 
> enableParallelBuilding = true is also impure. Do you want to remove that
> feature again?
> 

There's a big difference. Think about the rules for unsafePerformIO in Haskell: can you see why enableParallelBuilding (when the package properly supports parallel make) would be considered a legal use of unsafePerformIO but your new primop wouldn't? With enableParallelBuilding, you can get an impurity if the target package (or perhaps make/gcc) does something wrong. With your primop, you get an impurity by design.

> Or can we apply the same solution to this problem: Create a new nix
> option so that people can opt in ?
> 
> I totally agree that Nix should as close to perfect as possible.
> Anyway putting passwords in the store as recommended by the mediawiki
> case in nixos is no option either.
> 
> Looks like I'm the only one wanting this for now - so I'll shut up.
> 
> I'm not going to force anything. You all will find a topic branch
> experimental/nix here: https://github.com/MarcWeber/nixpkgs including
> that and the debug coercion failure patch.
> 
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list