1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

nixpkgs: replace usage of deprecated traceValIfNot

This commit is contained in:
Daiderd Jordan 2018-05-04 19:12:43 +02:00
parent 5ea3bc169a
commit 6dbc6d43b5
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -30,7 +30,11 @@ let
configType = mkOptionType {
name = "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) {};
};