[Nix-dev] NixON initiative
zimbatm
zimbatm at zimbatm.com
Mon Feb 29 23:54:00 CET 2016
@Eelco: that looks super cool, once it’s in we should implement all the
nix-prefetch-* scripts in function of that.
One difference is that nix-prefetch-git also resolves the git revision from
a tag or branch name which makes it easy to generate an update script.
@gfxmonk: heh not yet but https://github.com/NixOS/nixpkgs/pull/13584
changes the output to JSON. After(if) that change lands you can do
something like:
$ nix-prefetch-git git://yoururl > repo.json
and in nix:
mkDerivation {
src = stdenv.lib.importJSON ./repo.json;
}
On Mon, 29 Feb 2016 at 21:33 Herwig Hochleitner <hhochleitner at gmail.com>
wrote:
> 2016-02-28 15:35 GMT+01:00 zimbatm <zimbatm at zimbatm.com>:
>
>> No, not the dead president :) JavaScript has JSON and Nix has NixON. A
>> subset of the language that only contains literal values.
>>
>
>
> Cool Idea! Here is some code to translate NixON into edn (clojure's json,
> https://github.com/edn-format/edn):
> https://github.com/webnf/dwn/blob/master/util.nix#L3-L30
> I also have code to generate NixON from clojure, somewhere ..
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160229/e731e775/attachment.html
More information about the nix-dev
mailing list