svc.open accepts a /nix/store folder not an outputs folder

this mostly makes things simpler
This commit is contained in:
Daniel Barlow committed 2025-03-11 00:21:44 +00:00
1 parent f22237a3b3
commit 2b0972ed73
20 files changed
+38 -19

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@
: ipairs
:output
(fn [service-path path default]
(let [s (assert (svc.open (.. service-path "/.outputs")))]
(let [s (assert (svc.open service-path))]
(or (s:output path) default)))
:lua_quote #(string.format "%q" $1)
:json_quote (fn [x] (.. "\"" (json-escape x) "\""))