Compare commits

...

3 commits

Author SHA1 Message Date
Benjamin Koch a565cb46be Use different method to detect relative paths
see https://github.com/edolstra/flake-compat/pull/18
2021-01-24 05:04:36 +01:00
Benjamin Koch d1a6788892 Add support for "path:../parent", as well 2021-01-24 01:47:46 +01:00
Benjamin Koch e7e5d481a0 Add support for "path:./relative/path" 2021-01-20 01:42:58 +01:00

View file

@ -39,7 +39,10 @@ let
} else {
})
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;
}
else if info.type == "tarball" then