utils: installables->nix-expressions: Fix attrpath check.

This commit is contained in:
Hilton Chain committed 2026-07-02 19:55:58 +08:00
1 parent 205b14dd34
commit 4d2f3a2e0c
1 file changed
+1 -2
+1 -2
View File
@@ -98,8 +98,7 @@ optional and interpreted as attribute paths relative to the Nix expression."
attrpath
(installable->flakeref+attrpath installable))
(attrpath
(if (and (string? attrpath)
(string=? attrpath "."))
(if (and=> attrpath (cut string=? <> "."))
#f
attrpath)))
(match expression