git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #167665 from hercules-ci/pkgs-type-tag

`pkgs._type = "pkgs"`

commitfb94afad504cae198ef496df796e74680cb303e6 authorRobert Hensing <roberth@users.noreply.github.com> dateSat 30 Apr 2022, 12:19 (5 years ago) parentacfb651ad1e250
1 file changed+15
pkgs/top-level/all-packages.nix+15
pkgs/top-level/all-packages.nix+15
@@ -11,6 +11,21 @@ res: pkgs: super:
1111with pkgs;
1212
1313{
14+ # A module system style type tag
15+ #
16+ # Allows the nixpkgs fixpoint, usually known as `pkgs`
17+ # to be distinguished nominally.
18+ #
19+ # pkgs._type == "pkgs"
20+ # pkgs.pkgsStatic._type == "pkgs"
21+ #
22+ # Design note:
23+ # While earlier stages of nixpkgs fixpoint construction
24+ # are supertypes of this stage, they're generally not
25+ # usable in places where a `pkgs` is expected.
26+ # (earlier stages being the various `super` variables
27+ # that precede all-packages.nix)
28+ _type = "pkgs";
1429
1530 # A stdenv capable of building 32-bit binaries. On x86_64-linux,
1631 # it uses GCC compiled with multilib support; on i686-linux, it's