fix: path of path dependencies not computer correctly

This commit is contained in:
DavHau 2022-03-10 14:41:29 +07:00
parent 3f46f3fad2
commit ae169b42ac
2 changed files with 1 additions and 3 deletions

View File

@ -180,7 +180,6 @@
cp -r ${./.} $out
chmod +w $out
mkdir $out/external
ls -lah ${externalDir}
cp -r ${externalDir}/* $out/external/
'';

View File

@ -25,8 +25,7 @@
then
if lib.isStorePath source.path
then source.path
# assume path relative to main package source
else "${overriddenSources."${defaultPackage}"."${defaultPackageVersion}"}/${source.path}"
else "${overriddenSources."${source.rootName}"."${source.rootVersion}"}/${source.path}"
else if fetchers.fetchers ? "${source.type}"
then
fetchSource {