Use different method to detect relative paths

see https://github.com/edolstra/flake-compat/pull/18
This commit is contained in:
Benjamin Koch 2021-01-24 05:04:36 +01:00
parent d1a6788892
commit a565cb46be

View file

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