45 lines
579 B
Nix
45 lines
579 B
Nix
{
|
|
mkShell,
|
|
pkgsCross,
|
|
bc,
|
|
bison,
|
|
dtc,
|
|
flex,
|
|
gnutls,
|
|
libuuid,
|
|
ncurses,
|
|
openssl,
|
|
pkg-config,
|
|
python3,
|
|
swig,
|
|
}:
|
|
let
|
|
aarch64 = pkgsCross.aarch64-multiplatform;
|
|
aarch32 = pkgsCross.arm-embedded;
|
|
in
|
|
mkShell {
|
|
depsBuildBuild = [
|
|
aarch64.stdenv.cc
|
|
aarch32.stdenv.cc
|
|
];
|
|
|
|
packages = [
|
|
bc
|
|
bison
|
|
dtc
|
|
flex
|
|
gnutls
|
|
libuuid
|
|
ncurses
|
|
openssl
|
|
pkg-config
|
|
python3
|
|
python3.pkgs.libfdt
|
|
python3.pkgs.pyelftools
|
|
python3.pkgs.setuptools
|
|
swig
|
|
];
|
|
|
|
CROSS_COMPILE = "${aarch64.stdenv.cc.targetPrefix}";
|
|
}
|