My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/infra/libkookie/overlays/rust/examples/cross-aarch64/shell.nix

19 lines
509 B

# See docs/cross_compilation.md for details.
(import <nixpkgs> {
crossSystem = "aarch64-linux";
overlays = [ (import ../..) ];
}).callPackage (
{ mkShell, stdenv, rust-bin, pkg-config, openssl, qemu }:
mkShell {
nativeBuildInputs = [
rust-bin.stable.latest.minimal
pkg-config
];
depsBuildBuild = [ qemu ];
buildInputs = [ openssl ];
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "${stdenv.cc.targetPrefix}cc";
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER = "qemu-aarch64";
}) {}