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