matthewbauer / nixiosk

Declarative Kiosk systems built with NixOS
MIT License
141 stars 12 forks source link

Problems with flake configuration #26

Open brianmay opened 1 year ago

brianmay commented 1 year ago

Under https://github.com/matthewbauer/nixiosk#advanced-nixos-module--flake-configuration it talks about flake configuration. I think this might be required in order to use a custom derivation #17 (???).

But with my testing of this, nothing is cached (I believe I do have cachix configured correctly), so it has to build everything. And then it encounters a compile time error and dies.

Here is an example:

 nix shell github:matthewbauer/nixiosk -c nixiosk-build --flake './robotica#nixosConfigurations.example-rpi3'
warning: Using saved setting for 'substituters = https://nixiosk.cachix.org' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'trusted-public-keys = nixiosk.cachix.org-1:A4kH9p+y9NjDWj0rhaOnv3OLIOPTbjRIsXRPEeTtiS4=' from ~/.local/share/nix/trusted-settings.json.
warning: error: unable to download 'http://tarballs.nixos.org/stdenv-linux/x86_64/c5aabb0d603e2c1ea05f5a93b3be82437f5ebf31/bootstrap-tools.tar.xz': HTTP error 200 (curl error: Timeout was reached); retrying in 273 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv-linux/i686/4907fc9e8d0d82b28b3c56e3a478a2882f1d700f/busybox': HTTP error 200 (curl error: Timeout was reached); retrying in 267 ms
[1/43/1389 built, 232.1 MiB DL] downloading 'https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/[1/43/1389 built, 232.1 warning: error: unable to download 'https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/gettext-1.07.tar.gz': Timeout was reached (28); retrying in 253 ms
[1/103/1389 built, 442.3 MiB DL] building perl-5.34.0 (buildPhase): LD_LIBRARY_PATH=/build/perl-5.34.0 ./miniperl -Ilib[1/103/1389 built, 442.3 MiB DL] buildinerror: builder for '/nix/store/bsya6kwb9yzxli6cx6n3r78gg8l47dwz-gcc-10.3.0.drv' failed with exit code 2;
       last 10 log lines:
       > make[3]: *** [../../gcc-10.3.0/gcc/lto/Make-lang.in:88: lto1] Error 1
       > collect2: error: ld returned 1 exit status
       > make[3]: *** [../../gcc-10.3.0/gcc/lto/Make-lang.in:92: lto-dump] Error 1
       > rm gcc.pod
       > make[3]: Leaving directory '/build/build/gcc'
       > make[2]: *** [Makefile:4741: all-stage1-gcc] Error 2
       > make[2]: Leaving directory '/build/build'
       > make[1]: *** [Makefile:22554: stage1-bubble] Error 2
       > make[1]: Leaving directory '/build/build'
       > make: *** [Makefile:22875: bootstrap] Error 2
       For full logs, run 'nix log /nix/store/bsya6kwb9yzxli6cx6n3r78gg8l47dwz-gcc-10.3.0.drv'.
error: 1 dependencies of derivation '/nix/store/abiimflw84cq68iy5ap1pjadd755qm2b-bootstrap-stage4-gcc-wrapper-10.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lhv7k57qpjnb7z5pm2lvbqhjy74hhvby-clang-wrapper-13.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/634lrx5bacshlnv1rzpvggazwlbpn6b9-gcc-wrapper-10.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j6y2gxmldmpcy3n9ah2i3c5ni0jv5yar-gdb-11.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rldw95wz1n2vbphc4fd8k9g0yvwdcl7k-nix-2.5.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4l22qyn42maz4biwvw91ggshws0hdl8w-perl-5.34.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g9pkjrgj7scc7c6alwbavca0wivymwd8-perl-5.34.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y4abap6zqvwrxb8fbbnbidhghrixakpv-perl-5.34.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9cl686by7jg834f2avqnz39zpvnbxlcx-stdenv-linux.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cp60vfc62rc7rzn4ic1jv0z5rjy9b9v1-stdenv-linux.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b44c19jd5jxy1sicahfbs1n6k0srj2d8-nixiosk.drv' failed to build