[Nix-dev] Reconsidering dash in package names

Luca Bruno lethalman88 at gmail.com
Fri Oct 10 23:39:21 CEST 2014


derivation {
  inherit foo-bar;
  buildPhase = ''
    use $foo-bar...
  '';
}

Apart ${foo-bar}.

On Fri, Oct 10, 2014 at 11:18 PM, Bjørn Forsman <bjorn.forsman at gmail.com>
wrote:

> On 10 October 2014 22:56, Luca Bruno <lethalman88 at gmail.com> wrote:
> > Dash in package names are cool, because they map to the real package
> name.
> > However I just found a breaker: bash does not support variables with
> dash.
> > $foo-bar or ${foo-bar} or whatever does not work.
>
> I don't understand. Why/when do we need bash variable _identifiers_
> named like packages (with dashes)? And what values would those
> "package name variables" contain?
>
> Best regards,
> Bjørn Forsman
>



-- 
www.debian.org - The Universal Operating System
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141010/6be84e15/attachment.html 


More information about the nix-dev mailing list