[Nix-dev] Cross-compilation

Bjørn Forsman bjorn.forsman at gmail.com
Sun May 19 12:12:26 CEST 2013


On 17 May 2013 22:56, Lluís Batlle i Rossell <viric at viric.name> wrote:
> On Fri, May 17, 2013 at 09:23:13PM +0200, Bjørn Forsman wrote:
>> I'm slowly getting into cross-compilation on NixOS and I have a question.
>
> Brave!

Hehe, thanks :-)

[...]
> Well, I don't think anyone tried to cross-build python. It may need adjustments.
>
> As a first approach, add this line to the mkDerivation parameter:
>     buildNativeInputs = [ bzip2 ];
>
> It will take the native bzip2 with priority in PATH, compared to the cross-built
> bzip2 (requested by buildInputs).

Ah, yes, the different attributes for native/cross inputs. I forgot
about that. Thanks.

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list