mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
lib/debug: fix use-sites of deprecated debug functions
This commit is contained in:
parent
562286aa56
commit
b90104ea0e
@ -33,7 +33,11 @@ let
|
||||
configType = mkOptionType {
|
||||
name = "nixpkgs-config";
|
||||
description = "nixpkgs config";
|
||||
check = traceValIfNot isConfig;
|
||||
check = x:
|
||||
let traceXIfNot = c:
|
||||
if c x then true
|
||||
else lib.traceSeqN 1 x false;
|
||||
in traceXIfNot isConfig;
|
||||
merge = args: fold (def: mergeConfig def.value) {};
|
||||
};
|
||||
|
||||
|
@ -224,7 +224,7 @@ let
|
||||
else if builtins.isAttrs x && builtins ? out then toNix "${x}" # a derivation
|
||||
else if builtins.isAttrs x then "{${lib.concatStringsSep ", " (lib.mapAttrsToList (n: v: "${toNix n}: ${toNix v}") x)}}"
|
||||
else if builtins.isList x then "[${lib.concatMapStringsSep ", " toNix x}]"
|
||||
else throw "turning ${lib.showVal x} into a VimL thing not implemented yet";
|
||||
else throw "turning ${lib.generators.toPretty {} x} into a VimL thing not implemented yet";
|
||||
|
||||
in assert builtins.hasAttr "vim-addon-manager" knownPlugins;
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user