Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, pkgs, ... }:let nixpkgsFun = import ../../top-level;inlib.recurseIntoAttrs { platformEquality = let configsLocal = [ # crossSystem is implicitly set to localSystem. { localSystem = { system = "x86_64-linux"; }; } { localSystem = { system = "aarch64-linux"; }; crossSystem = null; } # Both systems explicitly set to the same string. { localSystem = { system = "x86_64-linux"; }; crossSystem = { system = "x86_64-linux"; }; } # Vendor and ABI inferred from system double. { localSystem = { system = "aarch64-linux"; }; crossSystem = { config = "aarch64-unknown-linux-gnu"; }; } ]; configsCross = [ # GNU is inferred from double, but config explicitly requests musl. { localSystem = { system = "aarch64-linux"; }; crossSystem = { config = "aarch64-unknown-linux-musl"; }; } # Cross-compile from AArch64 to x86-64. { localSystem = { system = "aarch64-linux"; }; crossSystem = { system = "x86_64-unknown-linux-gnu"; }; } ];
pkgsLocal = map nixpkgsFun configsLocal; pkgsCross = map nixpkgsFun configsCross; in assert lib.all (p: p.buildPlatform == p.hostPlatform) pkgsLocal; assert lib.all (p: p.buildPlatform != p.hostPlatform) pkgsCross; pkgs.emptyFile;}