lib/sources: remove absolute path literals

This commit is contained in:
Ameer Taweel
2026-04-28 01:00:25 +03:00
parent b0de7b521c
commit ecf55714fe
+7 -1
View File
@@ -311,7 +311,13 @@ let
fileName = path + "/${file}";
packedRefsName = path + "/packed-refs";
absolutePath =
base: path: if lib.hasPrefix "/" path then path else toString (/. + "${base}/${path}");
base: path:
if lib.hasPrefix "/" path then
path
else if lib.hasPrefix "/" base then
"${base}/${path}"
else
"/${base}/${path}";
in
if
pathIsRegularFile path