fix import from local repository when file is used

This commit is contained in:
Jörg Thalheim 2018-09-20 07:46:47 +01:00
parent 81d4435788
commit 7974547807

View file

@ -21,7 +21,7 @@ let
localPath = ../repos + "/${name}";
in
if lib.pathExists localPath then
localPath
"${localPath}"
else if lib.hasPrefix "https://github.com" attr.url && !submodules then
fetchzip {
url = "${attr.url}/archive/${revision.rev}.zip";