[Nix-dev] Cross-compilation

Domen Kožar domen at dev.si
Mon May 20 11:22:19 CEST 2013


I added bzip2 as native build input for all interpreters, however, there
are more fixes to be done.

For `python27`, following needs to be set when cross-compiling:

 export ac_cv_have_long_long_format=yes

However, I was unable to set crossAttrs.preBuild to apply that (so I didn't
commit that yet).

Another thing that needs to be done is setting HOSTPGEN (probably also a
patch to take that setting)




On Sun, May 19, 2013 at 12:12 PM, Bjørn Forsman <bjorn.forsman at gmail.com>wrote:

> 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
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130520/b97e9f81/attachment-0001.html 


More information about the nix-dev mailing list