[Nix-dev] How to download all sources for all of nixpkgs?

Bjørn Forsman bjorn.forsman at gmail.com
Mon Mar 20 14:32:51 CET 2017


On 16 March 2017 at 10:07, Bjørn Forsman <bjorn.forsman at gmail.com> wrote:
> Hi all Nixers,
>
> I would like to use Nix on an air gapped network. For that I need to
> download all sources referred by nixpkgs.

I started digging into ./maintainers/scripts/find-tarballs.nix and
found that there was just small changes needed to make it output all
fetch* derivations, not just fetchurl ones (unless I'm mistaken --
haven't fully verified it).

However, due to evaluation problems in nixpkgs and a stack overflow,
it's unuseable :-(

The code is here:
https://github.com/bjornfor/nixpkgs/blob/find-all-sources/maintainers/scripts/all-sources.nix

In the top of the file I list the problems I faced.

Any suggestions?

Can we have a bounty for implementing "nix fetch-sources --recursive
$expr"? I'll pay! :-)

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list