Merge pull request 'Check for pure eval mode before calling builtins.storePath
' (#65) from 9999years/fix-64 into master
Reviewed-on: #65
This commit is contained in:
commit
1be18e491b
|
@ -110,6 +110,8 @@ let
|
||||||
if builtins.isPath src
|
if builtins.isPath src
|
||||||
then
|
then
|
||||||
if dirOf (toString src) == builtins.storeDir
|
if dirOf (toString src) == builtins.storeDir
|
||||||
|
# `builtins.storePath` is not available in pure-eval mode.
|
||||||
|
&& builtins ? currentSystem
|
||||||
then
|
then
|
||||||
# If it's already a store path, don't copy it again.
|
# If it's already a store path, don't copy it again.
|
||||||
builtins.storePath src
|
builtins.storePath src
|
||||||
|
|
Loading…
Reference in a new issue