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.fors...@gmail.com>wrote: > On 17 May 2013 22:56, Lluís Batlle i Rossell <vi...@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@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev