Skip to content

Commit ecab3ed

Browse files
committed
top-level: move top-level {build,host,target}Platform to aliases
deprecation was attempted in e51f736 but had to be reverted in 2a6e4ae
1 parent a518c77 commit ecab3ed

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

pkgs/top-level/aliases.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,7 @@ mapAliases ({
17641764
zyn-fusion = zynaddsubfx; # Added 2022-08-05
17651765

17661766
inherit (stdenv.hostPlatform) system; # Added 2021-10-22
1767+
inherit (stdenv) buildPlatform hostPlatform targetPlatform; # Added 2023-01-09
17671768

17681769
# LLVM packages for (integration) testing that should not be used inside Nixpkgs:
17691770
llvmPackages_git = recurseIntoAttrs (callPackage ../development/compilers/llvm/git {

pkgs/top-level/stage.nix

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,6 @@ let
138138
inherit stdenv;
139139
};
140140

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-
149141
splice = self: super: import ./splice.nix lib self (adjacentPackages != null);
150142

151143
allPackages = self: super:
@@ -282,7 +274,6 @@ let
282274
# previous bootstrapping phases which have already been overlayed.
283275
toFix = lib.foldl' (lib.flip lib.extends) (self: {}) ([
284276
stdenvBootstappingAndPlatforms
285-
platformCompat
286277
stdenvAdapters
287278
trivialBuilders
288279
splice

0 commit comments

Comments
 (0)