Use different method to detect relative paths
see https://github.com/edolstra/flake-compat/pull/18
This commit is contained in:
parent
43a4aaabd9
commit
d3b9c42cb7
|
@ -44,7 +44,7 @@ let
|
||||||
})
|
})
|
||||||
else if info.type == "path" then
|
else if info.type == "path" then
|
||||||
{ outPath = builtins.path {
|
{ outPath = builtins.path {
|
||||||
path = if builtins.substring 0 1 info.path == "."
|
path = if builtins.substring 0 1 info.path != "/"
|
||||||
then src + ("/" + info.path)
|
then src + ("/" + info.path)
|
||||||
else info.path; };
|
else info.path; };
|
||||||
narHash = info.narHash;
|
narHash = info.narHash;
|
||||||
|
|
Loading…
Reference in a new issue