2023-08-13 17:59:59 +03:00
|
|
|
{ crossSystem ? "aarch64-unknown-linux-musl" }:
|
|
|
|
|
|
|
|
let pkgs = import <nixpkgs> {
|
|
|
|
crossSystem = {
|
|
|
|
config = crossSystem;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2023-08-13 18:05:23 +03:00
|
|
|
pkgs.pkgsStatic.callPackage (
|
|
|
|
{mkShell, pkg-config, zlib, file}:
|
2023-08-13 17:59:59 +03:00
|
|
|
mkShell {
|
2023-08-19 11:06:28 +03:00
|
|
|
nativeBuildInputs = [ pkg-config file ];
|
2023-08-13 17:59:59 +03:00
|
|
|
buildInputs = [ zlib ];
|
2023-08-13 18:16:15 +03:00
|
|
|
env = {
|
2023-08-19 11:06:28 +03:00
|
|
|
CROSS_COMPILE = crossSystem;
|
2023-08-13 18:16:15 +03:00
|
|
|
};
|
2023-08-13 17:59:59 +03:00
|
|
|
}
|
|
|
|
) {}
|