top-level: move top-level {build,host,target}Platform to aliases

deprecation was attempted in e51f736076548459f36a1250de4bf6867f880b66

but had to be reverted in 2a6e4ae49a891adc7c0562fda08b17d60beb1b4f

Artturin ecab3ede a518c771

+1 -9
+1
pkgs/top-level/aliases.nix
··· 1764 1764 zyn-fusion = zynaddsubfx; # Added 2022-08-05 1765 1765 1766 1766 inherit (stdenv.hostPlatform) system; # Added 2021-10-22 1767 + inherit (stdenv) buildPlatform hostPlatform targetPlatform; # Added 2023-01-09 1767 1768 1768 1769 # LLVM packages for (integration) testing that should not be used inside Nixpkgs: 1769 1770 llvmPackages_git = recurseIntoAttrs (callPackage ../development/compilers/llvm/git {
-9
pkgs/top-level/stage.nix
··· 138 138 inherit stdenv; 139 139 }; 140 140 141 - # The old identifiers for cross-compiling. These should eventually be removed, 142 - # and the packages that rely on them refactored accordingly. 143 - platformCompat = self: super: let 144 - inherit (super.stdenv) buildPlatform hostPlatform targetPlatform; 145 - in { 146 - inherit buildPlatform hostPlatform targetPlatform; 147 - }; 148 - 149 141 splice = self: super: import ./splice.nix lib self (adjacentPackages != null); 150 142 151 143 allPackages = self: super: ··· 282 274 # previous bootstrapping phases which have already been overlayed. 283 275 toFix = lib.foldl' (lib.flip lib.extends) (self: {}) ([ 284 276 stdenvBootstappingAndPlatforms 285 - platformCompat 286 277 stdenvAdapters 287 278 trivialBuilders 288 279 splice