Check for pure eval mode before calling builtins.storePath #65

Merged
9999years merged 1 commit from 9999years/fix-64 into master 2024-04-30 19:53:07 +00:00

View file

@ -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