[Nix-dev] Reconsidering dash in package names

Shea Levy shea at shealevy.com
Sat Oct 11 15:16:56 CEST 2014


On Sat, Oct 11, 2014 at 03:09:37PM +0200, Vladimír Čunát wrote:
> On 10/11/2014 02:55 PM, Shea Levy wrote:
> >In my experience, the majority of scripts in nixpkgs either put
> >dependend packages in buildInputs or interpolate them directly into
> >scripts; adding a package directly as an env var is rare. Why is this
> >worth giving up the superior readability and fidelity to actual package
> >name provided by dashes?
> 
> +1. Are there any use cases for directly inheriting packages into the
> derivation?
> 
> BTW, what happens if you do it?
> 

If you do { inherit gcc; }, then $gcc just points to gcc's out path at
build time.

> 
> Vladimir
> 
> 



> _______________________________________________
> 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