Hi Martin, Eelco suggested [1] the command
nix-store -r $(grep -l outputHash $(nix-store -qR $(nix-instantiate '<nixpkgs>' -A foobar) | grep '.drv$')) to download all sources for "foobar", which seems more robust than ad-hoc parsing of the Nixpkgs tree. Maybe this technique can help simplify your approach? Best regards, Peter [1] http://permalink.gmane.org/gmane.linux.distributions.nixos/10153 _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
