xrsh-buildroot/nix/cross.nix

13 lines
505 B
Nix
Raw Normal View History

2024-09-16 13:25:26 +02:00
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/release-24.05";
pkgs = (import nixpkgs {}).pkgsCross.i686-embedded;
in
# callPackage is needed due to https://github.com/NixOS/nixpkgs/pull/126844
pkgs.pkgsStatic.callPackage ({ mkShell, zlib, pkg-config, file }: mkShell {
# these tools run on the build platform, but are configured to target the host platform
nativeBuildInputs = [ pkg-config file ];
# libraries needed for the host platform
buildInputs = [ zlib ];
}) {}