diff options
| author | Robert Hensing <robert@roberthensing.nl> | 2022-04-07 11:05:28 +0200 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2022-05-02 09:51:52 +0200 |
| commit | 66b0db71f463164486a36dded50bedee185e45c2 (patch) | |
| tree | 6a1b958db6d5975dfb73eb667a253ae6cc551aee | |
| parent | isl: isl.gforge.inria.fr has been taken offline (diff) | |
| download | nixpkgs-origin/release-20.09.tar.gz | |
pkgs: Add _type = "pkgs"origin/release-20.09origin/nixpkgs-20.09-darwinorigin/nixos-20.09-small
(cherry picked from commit ad1e2500efd0aa49b0dc7427bf69d4879f3b0ff5)
(cherry picked from commit aec730a0af4c977513ce28236cbecaca72af6901)
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 174e2dbdbb71..25b8b351e12c 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 |
