parent
b0d0959bbb
commit
c7ed82b231
@ -1,18 +1,22 @@ |
||||
with import <nixpkgs> { |
||||
(import <nixpkgs> { |
||||
crossSystem = "aarch64-linux"; |
||||
overlays = [ (import ../..) ]; |
||||
}; |
||||
}).callPackage ( |
||||
{ mkShell, rust-bin, pkg-config, openssl, pkgsBuildBuild }: |
||||
mkShell { |
||||
nativeBuildInputs = [ |
||||
# Manual `buildPackages` is required here. See: https://github.com/NixOS/nixpkgs/issues/49526 |
||||
# build = host = x86_64, target = aarch64 |
||||
buildPackages.rust-bin.stable.latest.minimal |
||||
buildPackages.pkg-config |
||||
# build = host = target = x86_64, just to avoid re-build. |
||||
rust-bin.stable.latest.minimal |
||||
pkg-config |
||||
|
||||
# build = host = target = x86_64 |
||||
# qemu itself is multi-platform and `target` doesn't matter for it. |
||||
# Use build system's to avoid rebuild. |
||||
pkgsBuildBuild.qemu |
||||
]; |
||||
buildInputs = [ |
||||
# build = x86_64, host = target = aarch64 |
||||
openssl |
||||
]; |
||||
} |
||||
}) {} |
||||
|
Loading…
Reference in new issue