lib/repoSource: don't copy local repositories to the nix store

This commit is contained in:
Jörg Thalheim 2020-04-02 10:23:08 +01:00
parent d045ca1678
commit 8d75b35167
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

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";