Git Product home page Git Product logo

cross-nixos-aarch64's Introduction

Cross compile NixOS to Aarch64

Building for Raspberry Pi 3

$ nix-build \
  -I nixpkgs=https://github.com/ElvishJerricco/nixpkgs/archive/cross-nixos-aarch64-2018-08-05.tar.gz \
  system.nix -A config.system.build.sdImage -o sdImage
$ sudo dd if=sdImage/sd-image/*.img of=/dev/YOUR_SD_CARD status=progress

cross-nixos-aarch64's People

Contributors

elvishjerricco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cross-nixos-aarch64's Issues

How to use with 18.09+?

I wish I knew how to cross-build RPi images using 18.09.

I gather some things have changed with cross-compilation in 18.09, and I think cross-compilation got simpler, but I can't figure it out.

I rebased your nixpkgs branch on release-18.09, and also tried without that override, but I seem to get a perl error:

nix-build -I nixpkgs=https://github.com/paulreimer/nixpkgs/archive/cross-nixos-aarch64-1.tar.gz system.nix -A config.system.build.sdImage -o sdImage
...
  /nix/store/jsrwk2mmhns5qvkh3y9wwdlqnrf7r7ya-nixos-sd-image-18.09.2327.37694c8cc0e-aarch64-linux.img-aarch64-unknown-linux-gnu.drv                                                                          
building
...
Checking perl version ... perl5-5.28.1                                                                                                                                                                       
No patchset found for perl5-5.28.1 in cnf/diffs                                                                                                                                                              
This perl version is probably not supported by perl-cross                                                                                                                                                    
ERROR: configure --mode=buildmini failed                                                                                                                                                                     
checking for stdint.h... yes                                                                                                                                                                                 
builder for '/nix/store/xm914bxrz8ykfbg3xl56swy0jbimndxj-perl-5.28.1-aarch64-unknown-linux-gnu.drv' failed with exit code 255                                                                                
cannot build derivation '/nix/store/anwd62j7wcyh8i08srbzahlw9dlp1hg7-nixos-system-nixos-18.09.2327.37694c8cc0e-aarch64-unknown-linux-gnu.drv': 1 dependencies couldn't be built                              
cannot build derivation '/nix/store/jsrwk2mmhns5qvkh3y9wwdlqnrf7r7ya-nixos-sd-image-18.09.2327.37694c8cc0e-aarch64-linux.img-aarch64-unknown-linux-gnu.drv': 1 dependencies couldn't be built                
error: build of '/nix/store/jsrwk2mmhns5qvkh3y9wwdlqnrf7r7ya-nixos-sd-image-18.09.2327.37694c8cc0e-aarch64-linux.img-aarch64-unknown-linux-gnu.drv' failed

Can't cross compile texinfo

@Mic92 I was trying to use your fork, but it failed to build because of texinfo.

  ../tools/info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
  /nix/store/dkh7l9a4sx7zqh8riqbj3z21sz25p8xy-bash-4.4-p23/bin/bash: ../tools/info/makedoc: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.