Merge pull request #79 from nix-community/nur-combined-fix

fix import from local repository when `file` is used
This commit is contained in:
Jörg Thalheim 2018-09-20 11:21:25 +01:00 committed by GitHub
commit 07bdbce3ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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