fix: never attempt to call builtins.storePath in pure evaluation mode #63

Closed
yajo wants to merge 1 commit from moduon/pure-eval into master

View file

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