summary refs log tree commit diff
path: root/lib/default.nix
diff options
context:
space:
mode:
authormatthewcroughan <matt@croughan.sh>2021-11-14 23:14:09 +0000
committermatthewcroughan <matt@croughan.sh>2022-05-06 15:42:52 +0100
commit4d9801a78fff121703c4ea4dcef8b6746973165c (patch)
treee4a917a0f6e0404e54d2fadf464885ba440355f8 /lib/default.nix
parent70b3cbff57169566a22fb8df6a0fd3c3b9b21b6b (diff)
downloadnixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.tar
nixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.tar.gz
nixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.tar.bz2
nixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.tar.lz
nixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.tar.xz
nixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.tar.zst
nixpkgs-4d9801a78fff121703c4ea4dcef8b6746973165c.zip
lib: add inPureEvalMode
This makes a value that is true if builtins does not contain the
currentSystem function, but false if it does.
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
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