[Nix-dev] Hydra build failure not reproducible

Bjørn Forsman bjorn.forsman at gmail.com
Sat Jul 20 00:35:44 CEST 2013


On 19 July 2013 21:21, Malcolm Matalka <mmatalka at gmail.com> wrote:
> It doesn't, you have to turn it in the nix config since it is how the
> builder runs.
>
> In NixOS you have to do:
>
> nix.useChroot = true;

Ok. I did that and ran nixos-rebuild switch. But when I try to build
it *without* using the binary cache, this happens:

$ nix-build -A netpbm --option build-use-substitutes false
these derivations will be built:
  /nix/store/mpp3g0jbslh0avjfqs81j3y3z179v9jk-netpbm-advanced-1742.drv
building path(s)
`/nix/store/xa0s1zlwr7k7jx7svrl06cbza914zcrs-netpbm-advanced-1742'
error: failed to set up the build environment for
`/nix/store/mpp3g0jbslh0avjfqs81j3y3z179v9jk-netpbm-advanced-1742.drv'

If I allow the binary cache then it just downloads it:

$ nix-build -A netpbm
these paths will be fetched (1.10 MiB download, 6.46 MiB unpacked):
  /nix/store/xa0s1zlwr7k7jx7svrl06cbza914zcrs-netpbm-advanced-1742
fetching path `/nix/store/xa0s1zlwr7k7jx7svrl06cbza914zcrs-netpbm-advanced-1742'...

*** Downloading
‘http://cache.nixos.org/nar/0pw83978mlq9jlqjbwfg8ck1d7s5r9yxvgq2bvwm03bs3njm3izi.nar.xz’
to ‘/nix/store/xa0s1zlwr7k7jx7svrl06cbza914zcrs-netpbm-advanced-1742’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1121k  100 1121k    0     0  1167k      0 --:--:-- --:--:-- --:--:-- 1168k

/nix/store/xa0s1zlwr7k7jx7svrl06cbza914zcrs-netpbm-advanced-1742

Huh, seems like netpbm.x86_64-linux now builds, but netpbm.i686-linux
is still in "cached failure" mode:
http://hydra.nixos.org/eval/954091


More information about the nix-dev mailing list