Add support for "path:./relative/path" #18

Closed
BBBSnowball wants to merge 3 commits from BBBSnowball/pr-1 into master

View file

@ -39,7 +39,10 @@ let
} else { } else {
}) })
else if info.type == "path" then else if info.type == "path" then
{ outPath = builtins.path { path = info.path; }; { outPath = builtins.path {
path = if builtins.substring 0 1 info.path != "/"
then src + ("/" + info.path)
else info.path; };
narHash = info.narHash; narHash = info.narHash;
} }
else if info.type == "tarball" then else if info.type == "tarball" then