[Nix-dev] Cannot build stdenv-linux-boot on MacOS

Andreas Bernauer andreas.bernauer at active-group.de
Wed Jan 28 08:00:55 CET 2015


I cannot run the 'trivial.nix' example from
http://hydra.nixos.org/build/18990240/download/1/manual/manual.html#idm140737319352096
"Deploying a VirtualBox VM" on MacOS Yosemite 10.10.

The VM starts (I see a login screen), but the build process quits with
-------8<-------
building path(s)
‘/nix/store/bi03qqi8c9skmhkvc0iwdizdm054rxi4-stdenv-linux-boot’
error: a ‘x86_64-linux’ is required to build
‘/nix/store/6giy9b7xg90p8pqm6f056jqdwdx36jj6-stdenv-linux-boot.drv’, but
I am a ‘x86_64-darwin’
error: unable to build all machine configurations
-------->8------------

I am new to nix, so maybe I have wrong expectations. Isn't the
'trivial.nix' example supposed to work on MacOS? I will appreciate any
input.

Steps to reproduce:

I've installed nix following the instructions at
https://nixos.org/wiki/Nix_on_OS_X
"Using the Testing Branch"

I then installed nixops following the instructions at
http://nixos.org/nixops/ "Getting it", which is just
nix-env -i nixops

I can provide the complete output.

-Andreas


More information about the nix-dev mailing list