[Nix-dev] [***SPAM***] Proposal: Conditional attribute syntax sugar
Shea Levy
shea at shealevy.com
Sat Jan 7 23:35:09 CET 2012
Hi Eelco,
On 1/7/12 1:21 PM, Eelco Dolstra wrote:
> I've been thinking about a special ‘ignore’ value:
>
> derivation {
> CFLAGS = if system == "i686-darwin" then "bla" else ignore;
> }
>
> This value would be like ‘null’, except that if a derivation attribute evaluates
> to ‘ignore’, it wouldn't be added to the environment of the builder.
>
Neat idea. I've attached a patch for a simple implementation of this,
what do you think? Note that trying to explicitly coerce ignore to
string will cause an error in this implementation.
Cheers,
Shea
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ignore.patch
Url: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120107/1c7c04b9/attachment.pl
More information about the nix-dev
mailing list