From 4d9801a78fff121703c4ea4dcef8b6746973165c Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sun, 14 Nov 2021 23:14:09 +0000 Subject: lib: add inPureEvalMode This makes a value that is true if builtins does not contain the currentSystem function, but false if it does. --- lib/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/default.nix') diff --git a/lib/default.nix b/lib/default.nix index 22eb5440c28..e9d54e476d9 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -74,7 +74,7 @@ let info showWarnings nixpkgsVersion version isInOldestRelease mod compare splitByAndCompare functionArgs setFunctionArgs isFunction toFunction - toHexString toBaseDigits; + toHexString toBaseDigits inPureEvalMode; inherit (self.fixedPoints) fix fix' converge extends composeExtensions composeManyExtensions makeExtensible makeExtensibleWithCustomName; inherit (self.attrsets) attrByPath hasAttrByPath setAttrByPath -- cgit 1.4.1