NixOps deploys 64-bit binary to 32-bit machine
Deploying a simple app to a 32-bit machine fails because NixOps installs 64-bit binaries on the machine. The most problematic one is perl, because the deployment script uses it.
Perhaps nixpkgs.system is not getting set correctly.
Nixops currently only supports deploying to 64 bit systems. Not sure what the reason for this is though. @edolstra can you remember?
Do we?
I think, I haven't seen a 32 bit system deployment in forever :)
If I look at the code, it should be possible to at least set nixpkgs.system to i686-linux.
@nicot Do you set nixpkgs.system? and is the system you are deploying from 32 or 64 bit?
@rbvermaa: Whoops, I didn't realize that Nixops only supports 64 bit systems. I'll continue trying to work out the issue, but I'll close the issue as the system isn't supported.
After setting nixpkgs.system, the build gets impressively far for an unsupported system. It fails installing kmod, because the ubuntu mirror 404s. Here's the end of the log:
trying http://archive.ubuntu.com/ubuntu/pool/main/k/kmod/kmod_9-3ubuntu1.debian.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
error: cannot download kmod_9-3ubuntu1.debian.tar.gz from any mirror
builder for ‘/nix/store/5jbk8vlsk14rcnb9sq945l45di8xpniy-kmod_9-3ubuntu1.debian.tar.gz.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/585n4gcb3vnl0pqy0lwgm5rg0zfljxxb-kmod-blacklist-3ubuntu1.drv’: 1 dependencies couldn't be built
building path(s) ‘/nix/store/hfz2345prc9fy15n5nphmsk67zq56v3n-liberation-fonts-ttf-2.00.1.tar.gz’
killing process 23412
cannot build derivation ‘/nix/store/4hz15wbv5bjd8pwh7xdq94pc76123k8c-etc.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/lca6bdqxckxq9dc3m0xqdpbryd79bxpw-initrd-kmod-blacklist-ubuntu.drv’: 1 dependencies couldn't be built
building path(s) ‘/nix/store/i965ssb4s214b311sr3sf410iyy4xzrc-nixos-build-vms’
killing process 23417
cannot build derivation ‘/nix/store/ds6faahvgwkvq4n808lh6pwn9asjxydm-nixos-15.05pre59184.e07ea5c.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/0jgmpvcpy3nx0ljlrdd04a5kgp76bbgl-nixops-machines.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/0jgmpvcpy3nx0ljlrdd04a5kgp76bbgl-nixops-machines.drv’ failed