[Nix-dev] Where are the builtins function declarations?

4levels 4levels at gmail.com
Sun Jun 19 15:42:23 CEST 2016


Hi Layus,

perfect, exactly what I was looking for ;-)

Thanks!

Erik

On Sun, Jun 19, 2016 at 3:11 PM Layus <layus.on at gmail.com> wrote:

> Hi Erik,
>
> The builtins are builtins from nix, and are found in the nix tool, not in
> nixpkgs.
>
> For listToAttrs, you will fins them in
> https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L1089
>
> Regards,
>
> -- Layus.
>
>
> On 19/06/16 15:07, 4levels wrote:
>
> Hi Nix-devs,
>
> I'm often looking up the usage of functions in the various files I can
> find here: https://github.com/NixOS/nixpkgs/blob/master/lib/
> (eg. attsets.nix, strings.nix, lists.nix, ..)
>
> But I can't seem to find the file where the builtin functions are defined
> (eg. listToAttrs), searching in the github repo doesn't show me the file(s)
> either..
>
> Kind regards,
>
> Erik
>
>
> _______________________________________________
> nix-dev mailing listnix-dev at lists.science.uu.nlhttp://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
> _______________________________________________
> 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/20160619/bf8fd7d1/attachment-0001.html>


More information about the nix-dev mailing list