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