summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-05-04 19:12:43 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-05-04 19:12:43 +0200
commit6dbc6d43b5db21b01e2db7d59cdc3eb4ad83cd64 (patch)
treebc0b850e2caf18826ac90bb973eeb2aa8cbd830d
parent5ea3bc169a44a07e7706bdee2bc7270acfff0761 (diff)
nixpkgs: replace usage of deprecated traceValIfNot
-rw-r--r--modules/nix/nixpkgs.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/nix/nixpkgs.nix b/modules/nix/nixpkgs.nix
index f199807..dc95f91 100644
--- a/modules/nix/nixpkgs.nix
+++ b/modules/nix/nixpkgs.nix
@@ -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) {};
};