fix: externalDir not copied to store

This commit is contained in:
DavHau 2022-02-28 12:11:55 +07:00
parent 958bdd6699
commit e075f98a90

View File

@ -27,7 +27,7 @@
externalSources ?
lib.genAttrs
(lib.attrNames (builtins.readDir externalDir))
(inputName: "${externalDir}/${inputName}"),
(inputName: "${/. + externalDir}/${inputName}"),
# will be defined if called via flake
externalPaths ? null,
@ -41,7 +41,7 @@
})
# if called via CLI, load externals via env
else if builtins ? getEnv && builtins.getEnv "d2nExternalDir" != "" then
builtins.getEnv "d2nExternalDir"
/. + (builtins.getEnv "d2nExternalDir")
# load from default directory
else
./external,