@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 <[email protected]> wrote: > 2016-02-28 15:35 GMT+01:00 zimbatm <[email protected]>: > >> 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 > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
