mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
nixpkgs: replace use of traceValIfNot
The `traceValIfNot` function is deprecated in Nixpkgs master. Instead use `traceSeqN`. Fixes #301
This commit is contained in:
parent
eecebbf186
commit
86fcfc74da
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ let
|
||||||
configType = mkOptionType {
|
configType = mkOptionType {
|
||||||
name = "nixpkgs-config";
|
name = "nixpkgs-config";
|
||||||
description = "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) {};
|
merge = args: fold (def: mergeConfig def.value) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue