[Nix-dev] Templates

Malcolm Matalka mmatalka at gmail.com
Wed Jun 26 21:30:37 CEST 2013


That does not give access to variables, from my understanding.
On Jun 26, 2013 9:29 PM, "Michael Raskin" <7c6f434c at mail.ru> wrote:

> >I want to add Riak support to NixOS.  The config file is quite large and
> >can be complex.  It also is a supported file type in my Emacs so I get
> >pretty syntax highlighting.  Putting this inside Nix expressions losses
> >this feature.  I think putting config files in Nix expressions is
> >suboptimal.
>
> There is readFile builtin then.
>
> >
> >> I don't get what's bad about nix, you can use import (but you know
> that).
> >>
> >> Nix should suppport: (I never tested it):
> >>
> >>   let config = import
> >>
> "${derivation_reading_config_file_creating_nix_file}/the_generated_nix_file.nix":
> >>
> >> That's closest and works right now.
> >>
> >> Well of course you can just write ruby preprocessors turning your
> >> templates into nix files, too.
> >>
> >> Or patching nix are options.
> >>
> >> But honestly I don't understand your use case.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130626/883a915d/attachment.html 


More information about the nix-dev mailing list