Skip to content

Instantly share code, notes, and snippets.

@expipiplus1
Last active April 25, 2017 19:21
Show Gist options
  • Save expipiplus1/16175278cdb0ae6e025435c6badf61d5 to your computer and use it in GitHub Desktop.
Save expipiplus1/16175278cdb0ae6e025435c6badf61d5 to your computer and use it in GitHub Desktop.
# call with `nix-build aarch64.nix -A hello`
# Produces /nix/store/n2br952d84irpiai2y280maibbpfxf0l-hello-2.10-aarch64-linux-gnu
let
aarch64 = rec {
config = "aarch64-linux-gnu";
bigEndian = false;
arch = "aarch64";
withTLS = true;
libc = "glibc";
platform = (import ./lib/systems/platforms.nix).aarch64-multiplatform;
inherit (platform) gcc;
openssl.system = "linux-generic64";
};
in
import ./default.nix {
crossSystem = aarch64;
}
# Call with `nix-build ./. --arg crossSystem 'import ./crosspkgs.nix' -A pkgs.hello`
# Produces /nix/store/ml7ym1cjpyxlh23638b90cpcds33z5hg-hello-2.10 (The native derivation)
rec {
config = "aarch64-linux-gnu";
bigEndian = false;
arch = "aarch64";
withTLS = true;
libc = "glibc";
platform = (import ./lib/systems/platforms.nix).aarch64-multiplatform;
inherit (platform) gcc;
openssl.system = "linux-generic64";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment