summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-05-03 00:13:50 +0000
committerGitHub <noreply@github.com>2022-05-03 00:13:50 +0000
commitd6dd9350e74940ebaa770a2b0486af76763969cc (patch)
tree3069130da4077165dc3e268fa37988a8d0041b6a
parent86459a1612d8d2cda99032716b55568e5b083a77 (diff)
parentd13dbc47e22579aa670e69b8e776c839bd9c5ef6 (diff)
Merge staging-next-21.05 into staging-21.05staging-21.05
-rw-r--r--pkgs/top-level/all-packages.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 2d9c25fd0974..b8febdace3c0 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24,6 +24,21 @@ let
in
{
+ # A module system style type tag
+ #
+ # Allows the nixpkgs fixpoint, usually known as `pkgs`
+ # to be distinguished nominally.
+ #
+ # pkgs._type == "pkgs"
+ # pkgs.pkgsStatic._type == "pkgs"
+ #
+ # Design note:
+ # While earlier stages of nixpkgs fixpoint construction
+ # are supertypes of this stage, they're generally not
+ # usable in places where a `pkgs` is expected.
+ # (earlier stages being the various `super` variables
+ # that precede all-packages.nix)
+ _type = "pkgs";
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
# it uses GCC compiled with multilib support; on i686-linux, it's