Jump to content

Cheatsheet: Difference between revisions

imported>Mic92
imported>Lheckemann
Line 423: Line 423:
=== Cross-compile packages ===
=== Cross-compile packages ===


The following command will cross compile the tinc package for the aarch64 CPU architecture from a different architecture (i.e. x86_64).
The following command will cross compile the tinc package for the aarch64 CPU architecture from a different architecture (e.g. x86_64).


<source lang="console">
<source lang="console">
$ nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc
$ nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc
</source>
</source>
You can add your own specifications, or look at existing ones, in nixpkgs/lib/systems/examples.nix.


=== Customizing Packages ===
=== Customizing Packages ===
Anonymous user