[Nix-dev] crosscompiling question

Tomasz Kontusz tomasz.kontusz at gmail.com
Tue Jul 14 09:34:16 CEST 2015


I think the only way is to build in qemu on the host, or copy-closure whole system profiles (and then link and activate them by name).

"Lluís Batlle i Rossell" <viric at viric.name> napisał:
>On Tue, Jul 14, 2015 at 09:03:06AM +0200, Tomas Hlavaty wrote:
>> Like this, I would like to crosscompile packages on my desktop and
>then
>> copy-closure them to the board.  However, they are different paths in
>> the store.  How can I actually achive this?  Is there some trick I am
>> missing?
>
>Different recipes give different store paths. The recipe of
>cross-building
>is quite different from the recipe of native building.
>
>If you expect the cross-built 'hello' to have the same hash as the
>natively built, I don't know any trick. They are effectively built
>differently, and thus, they have a different store path.
>
>I don't know of any way in nix that can relate cross-built packages
>with
>natively built.
>
>-- 
>(Escriu-me xifrat si saps PGP / Write ciphered if you know PGP)
>PGP key D4831A8A - https://emailselfdefense.fsf.org/
>_______________________________________________
>nix-dev mailing list
>nix-dev at lists.science.uu.nl
>http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Wysłane za pomocą K-9 Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150714/5d326bf6/attachment.html 


More information about the nix-dev mailing list