summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2018-04-02 21:00:47 +0200
committerProfpatsch <mail@profpatsch.de>2018-04-27 18:59:39 +0200
commitfd54a946ca6d42b53df8d9040263fa43f6e426e9 (patch)
tree04019ddc65259fd420c5c5abb1e4ffbca2544565 /lib/modules.nix
parentb90104ea0edc6763505458e4143e034f1d92bc2a (diff)
downloadnixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.tar
nixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.tar.gz
nixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.tar.bz2
nixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.tar.lz
nixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.tar.xz
nixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.tar.zst
nixpkgs-fd54a946ca6d42b53df8d9040263fa43f6e426e9.zip
lib/debug: deprecate `addErrorContextToAttrs`
The function isn’t used anywhere and `addErrorContext` is an undocumented
builtin.
The builtin is explicitely qualified at its two uses in the module system.
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 4ef982c7ec9..6c8033322a5 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -159,7 +159,7 @@ rec {
       context = name: ''while evaluating the module argument `${name}' in "${key}":'';
       extraArgs = builtins.listToAttrs (map (name: {
         inherit name;
-        value = addErrorContext (context name)
+        value = builtins.addErrorContext (context name)
           (args.${name} or config._module.args.${name});
       }) requiredArgs);
 
@@ -309,7 +309,7 @@ rec {
           res.mergedValue;
 
     in opt //
-      { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
+      { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
         definitions = map (def: def.value) res.defsFinal;
         files = map (def: def.file) res.defsFinal;
         inherit (res) isDefined;