[Nix-dev] dead sources

Eelco Dolstra eelco.dolstra at logicblox.com
Tue Jan 15 21:30:40 CET 2013


Hi,

On 09/01/13 22:52, Peter Simons wrote:

>  > a) --download-only option for nix-build
>  > That way, before attempting long builds, I can make sure I have all
>  > the sources, and don't even need an internet connection during the
>  > real build.
> 
> it would be great if nix-build had an option like that. I don't know
> whether that feature would be easy to implement or not, but I can say
> that I've wanted something like that many times before.

Here is a one-liner for downloading all the source dependencies of a package:

> nix-store -r $(grep -l outputHash $(nix-store -qR $(nix-instantiate '<nixpkgs>' -A geeqie) | grep '.drv$'))

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list