pkgs: Add _type = "pkgs"
This commit is contained in:
parent
0e141f0382
commit
ad1e2500ef
1 changed files with 15 additions and 0 deletions
|
@ -11,6 +11,21 @@ res: pkgs: super:
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
# 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,
|
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
|
||||||
# it uses GCC compiled with multilib support; on i686-linux, it's
|
# it uses GCC compiled with multilib support; on i686-linux, it's
|
||||||
|
|
Loading…
Reference in a new issue