mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 08:25:07 +03:00
9 lines
330 B
Nix
9 lines
330 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; };
|
|
}) { }
|