[Nix-dev] NixON initiative
zimbatm
zimbatm at zimbatm.com
Sun Feb 28 19:55:21 CET 2016
Interesting how much traffic this thread has. If we have importJSON I
suppose that we could then output JSON from all of our tooling. It should
also make it easier to get the output from any modern language.
In that case I will make some changes so that nix-prefetch-git outputs JSON
by default and propose importJSON to be added to the stdlib.
On Sun, 28 Feb 2016 at 17:48 Moritz Ulrich <moritz at tarn-vedra.de> wrote:
>
> zimbatm <zimbatm at zimbatm.com> writes:
> > ```
> > $ nix-prefetch-git git://github.com/direnv/direnv.git 2>/dev/null | tee
> > repo.nix
> > {
> > url = "git://github.com/direnv/direnv.git";
> > rev = "9283a67646349bfef002a7242db47a6b8ef75305";
> > sha256 = "15kbzxwl03f0awnf5n6mw7hcz2dr7p6rpvhfyq3kxn1nk8jxcipx";
> > }
> > ```
>
> Any reason why we can't use JSON here? That would make everything *much*
> easier to generate from tools.
>
> I totally agree with other people in this thread: as much as I like Nix
> the language, I don't think we should create another JSON-like data
> format.
>
> Also, The only thange would be putting the attrs in "" and replacing the
> ; with ,. I don't think that would make it less readable.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160228/adadbf6b/attachment.html
More information about the nix-dev
mailing list