[Nix-dev] nix-build $CONFIG -A package

Sergey Mironov ierton at gmail.com
Fri Apr 13 19:04:47 CEST 2012


Hi!

I used to call function

fetch () {
	nix-build $NIXPKGS_ALL -A $1.src --show-trace
}

to download a source tarball for a package.

But it doesn't work anymore! That is because of absence of
$NIXPKGS_ALL in my environment. How to fix it? I've tried the
following, also unsuccessfully:

$ nix-build /etc/nixos/configuration.nix -A firefox.src --show-trace
error: cannot auto-call a function that has an argument without a
default value (`config')


More information about the nix-dev mailing list