This reverts commit 100e7cc337.
Unlike the last version, this fixes `--print-out-paths` for old clients
When the client lacks `featureRealisationWithPath` (worker) or version <
2.8 (serve), the daemon was sending an empty `StringMap` for
`builtOutputs`, causing `--print-out-paths` to print nothing. This
commit constructs the old wire format instead, using a dummy `sha256:`
hash since the derivation hash no longer exists. Old clients only need
the output name and path from the JSON.
12 lines
186 B
Bash
12 lines
186 B
Bash
# shellcheck shell=bash
|
|
source ../common.sh
|
|
|
|
# Need backend to support revamped CA
|
|
requireDaemonNewerThan "2.34.0pre20251217"
|
|
|
|
enableFeatures "ca-derivations"
|
|
|
|
TODO_NixOS
|
|
|
|
restartDaemon
|