1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +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:
Robert Helgesson 2018-07-04 19:54:27 +02:00
parent eecebbf186
commit 86fcfc74da
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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) {};
}; };