Unverified Commit 8052c761 authored by NAHO's avatar NAHO
Browse files

pkgs: add builtins prefixes for prelude functions to improve clarity

parent 3b97761a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ let
      else
        base;

    # Implements the toString interface.
    # Implements the builtins.toString interface.
    __toString =
      self:
      self.majMinTiny