11 nov 2015


porting nixos to new architectures like ‘powerpc64 big endian’ just got easier using a cross compiler to build the ‘bootstrap-tools’!

porting nixos to new architectures

documented here:

nix and perl relation

but i wanted to point out that getting all the perl aspects in nix installed correctly is quite annoying. i even had to package a perl CPAN module for nix 1.10 for yocto to get nix running properly!


SUMMARY = "WWW::Curl - Perl extension interface for libcurl"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"

LIC_FILES_CHKSUM = "file://LICENSE;md5=a14040e6fa5b252da082d4dd0af3a542"

SRC_URI = "${PV}.tar.gz"
SRC_URI[md5sum] = "997ac81cd6b03b30b36f7cd930474845"
SRC_URI[sha256sum] = "52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba"

S = "${WORKDIR}/WWW-Curl-${PV}"
DEPENDS += " curl curl-native"

inherit cpan

do_configure_prepend() {
    sed -i "s:/usr/local/include/curl:${b}:g" Makefile.PL

do_compile() {

the good news is, there is a plan to get rid of perl in nix, which i consider a very good thing, see:

powerpc64 big endian bootstrap-tools

i had nix-1.10 running on powerpc64 big endian using yocto linux as base system but since i lost access to the system i didn’t finish with the bugs in the system build.

here is the download to the bootstrap-tools i had been building:


thanks very very much for viric’s support. basically all this knowledge i derived from him!

article source