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

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

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) "\""))