28 lines
423 B
Nix
28 lines
423 B
Nix
|
{
|
||
|
mkShellNoCC,
|
||
|
stdenv,
|
||
|
pkgsCross,
|
||
|
dtc,
|
||
|
openssl,
|
||
|
}:
|
||
|
let
|
||
|
aarch64 = pkgsCross.aarch64-multiplatform;
|
||
|
m0 = pkgsCross.arm-embedded;
|
||
|
in
|
||
|
mkShellNoCC {
|
||
|
depsBuildBuild = [
|
||
|
stdenv.cc
|
||
|
aarch64.stdenv.cc
|
||
|
m0.stdenv.cc
|
||
|
];
|
||
|
packages = [
|
||
|
dtc
|
||
|
openssl
|
||
|
];
|
||
|
|
||
|
CROSS_COMPILE = "${aarch64.stdenv.cc.targetPrefix}";
|
||
|
M0_CROSS_COMPILE = "${m0.stdenv.cc.targetPrefix}";
|
||
|
|
||
|
hardeningDisable = [ "all" ];
|
||
|
}
|