From a46249687a9eb66cf6dc441d83885e71f76d9e7b Mon Sep 17 00:00:00 2001 From: Jairo Llopis <973709+yajo@users.noreply.github.com> Date: Wed, 22 Nov 2023 11:22:23 +0000 Subject: [PATCH] fix: never attempt to call `builtins.storePath` in pure evaluation mode After 5a16547d46553d7bdd1dfc2cf418f5f7d236f6ad, I started getting errors like https://github.com/nix-community/home-manager/issues/2409. @moduon MT-1075 --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index bd63229..772e970 100644 --- a/default.nix +++ b/default.nix @@ -109,7 +109,7 @@ let # Massage `src` into a store path. if builtins.isPath src then - if dirOf (toString src) == builtins.storeDir + if builtins ? currentSystem && dirOf (toString src) == builtins.storeDir then # If it's already a store path, don't copy it again. builtins.storePath src -- 2.44.1