From baa7aa7bd0a570b3b9edd0b8da859fee3ffaa4d4 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 8 Mar 2024 16:32:20 -0800 Subject: [PATCH] Check for pure eval mode before calling `builtins.storePath` --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index bd63229..fa8a1d4 100644 --- a/default.nix +++ b/default.nix @@ -110,6 +110,8 @@ let if builtins.isPath src then if dirOf (toString src) == builtins.storeDir + # `builtins.storePath` is not available in pure-eval mode. + && builtins ? currentSystem then # If it's already a store path, don't copy it again. builtins.storePath src -- 2.44.1