2021-10-28 08:04:14 +00:00
|
|
|
{
|
|
|
|
system ? builtins.currentSystem,
|
|
|
|
}:
|
|
|
|
|
|
|
|
with import ./common.nix;
|
|
|
|
|
|
|
|
let
|
|
|
|
platforms = [
|
2022-10-14 13:45:37 +00:00
|
|
|
#"x86_64-unknown-linux-musl"
|
2021-10-28 08:04:14 +00:00
|
|
|
"i686-unknown-linux-musl"
|
2022-10-14 13:45:37 +00:00
|
|
|
#"aarch64-unknown-linux-musl"
|
2021-10-28 08:04:14 +00:00
|
|
|
"armv6l-unknown-linux-musleabihf"
|
|
|
|
];
|
|
|
|
pkgsList = builtins.map (target: import pkgsSrc {
|
|
|
|
inherit system;
|
2022-10-14 13:45:37 +00:00
|
|
|
crossSystem = {
|
|
|
|
config = target;
|
|
|
|
isStatic = true;
|
|
|
|
};
|
2022-10-13 12:35:39 +00:00
|
|
|
overlays = [ cargo2nixOverlay ];
|
2021-10-28 08:04:14 +00:00
|
|
|
}) platforms;
|
|
|
|
pkgsHost = import pkgsSrc {};
|
|
|
|
lib = pkgsHost.lib;
|
|
|
|
kaniko = (import ./kaniko.nix) pkgsHost;
|
2022-03-03 12:34:20 +00:00
|
|
|
winscp = (import ./winscp.nix) pkgsHost;
|
2022-10-13 12:35:39 +00:00
|
|
|
manifestTool = (import ./manifest-tool.nix) pkgsHost;
|
2021-10-28 08:04:14 +00:00
|
|
|
in
|
|
|
|
lib.flatten (builtins.map (pkgs: [
|
|
|
|
pkgs.rustPlatform.rust.rustc
|
|
|
|
pkgs.rustPlatform.rust.cargo
|
|
|
|
pkgs.buildPackages.stdenv.cc
|
|
|
|
]) pkgsList) ++ [
|
|
|
|
kaniko
|
2022-03-03 12:34:20 +00:00
|
|
|
winscp
|
2022-10-13 12:35:39 +00:00
|
|
|
manifestTool
|
2021-10-28 08:04:14 +00:00
|
|
|
]
|
|
|
|
|