[Nix-dev] How to build all of nixpkgs?

Bjørn Forsman bjorn.forsman at gmail.com
Sun May 21 17:49:09 CEST 2017


Hi all Nix users,

I'd like to build all of nixpkgs. Or as much as possible.

What I've tried:

----8<----
$ nix-build --keep-going
error: Package ‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’
in ‘/home/bfo/proj/code/forks/nixpkgs/pkgs/development/libraries/agda/Agda-Sheaves/default.nix:18’
is marked as broken, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

$ NIXPKGS_ALLOW_BROKEN=1 nix-build --keep-going
error: assertion failed at
/home/bfo/proj/code/forks/nixpkgs/pkgs/top-level/all-packages.nix:6164:19
---->8----

So no success.

Any suggestions?

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list