pkgs: add builtins prefixes for prelude functions to improve clarity

This commit is contained in:
NAHO
2025-10-04 19:02:43 +02:00
parent 3b97761aa7
commit 8052c76154
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -60,9 +60,9 @@ in
# If we are passed a derivation (based on stdenv*), we can use overrideAttrs to
# update the arguments to mkDerivation. This gives us the proper awareness of
# what arguments were effectively passed *to* mkDerivation as opposed to
# derivation (by mkDerivation). For example, stdenv.mkDerivation
# builtins.derivation (by mkDerivation). For example, stdenv.mkDerivation
# accepts an `env` attribute set which is postprocessed before being passed to
# derivation. This can lead to evaluation failures, if we assume
# builtins.derivation. This can lead to evaluation failures, if we assume
# that drvAttrs is equivalent to the arguments passed to mkDerivation.
# See https://github.com/NixOS/nixpkgs/issues/269539.
if lib.isDerivation attrs && attrs ? overrideAttrs then
@@ -76,7 +76,7 @@ let
else
base;
# Implements the toString interface.
# Implements the builtins.toString interface.
__toString =
self:
self.majMinTiny