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

@@ -50,8 +50,7 @@
(fn run []
(let [{: out-path : watched-service : path } (parse-args arg)
dir (.. watched-service "/.outputs")
service (assert (svc.open dir))]
service (assert (svc.open watched-service))]
(accumulate [tree {}
v (service:events)]
(write-changes out-path tree (or (service:output path) {})))))