[Nix-dev] (Cross-)Building a custom installation CD

Sergey Mironov grrwlf at gmail.com
Tue Jan 21 20:04:55 CET 2014


Good news, I'll try. Thanks!

Sergey

2014/1/21 Eelco Dolstra <eelco.dolstra at logicblox.com>:
> Hi,
>
> On 20/01/14 15:59, Sergey Mironov wrote:
>
>> Unfortunately, there is a complication: target device and developer
>> machines have different architectures (x86 via x86-64)
>
> In this case you don't actually need a cross-compiler, since Nix on x86_64 can
> do x86 builds just fine (through the personality() syscall).  So you can just do
> something like:
>
>   $ nix-build '<nixpkgs/nixos/release.nix>' -A iso_minimal.i686-linux
>
> or more generally, to build a NixOS configuration:
>
>   $ nix-build '<nixpkgs/nixos>' -A config.system.build.toplevel \
>       --argstr system i686-linux
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list