nixos/shells/crossShell.nix
Ivan Bushchik 595cc4d833
Rethink configuration
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-08-21 13:30:49 +03:00

19 lines
369 B
Nix

{ crossSystem ? "aarch64-unknown-linux-musl" }:
let pkgs = import <nixpkgs> {
crossSystem = {
config = crossSystem;
};
};
in
pkgs.pkgsStatic.callPackage (
{mkShell, pkg-config, zlib, file}:
mkShell {
nativeBuildInputs = [ pkg-config file ];
buildInputs = [ zlib ];
env = {
CROSS_COMPILE = crossSystem;
};
}
) {}