Files
Philip White 9ddfd8a70a kiro-cli: run all commands through a single FHS environment
kiro-cli currently builds one FHS environment per sub-command
(kiro-cli, kiro-cli-chat, kiro-cli-term). Since buildFHSEnv supports a
single entry point per environment, that gives each command its own
derivation — each carrying its own unfree license and each requiring
its own entry in the `allowUnfreePredicate` allowlist — alongside
`kiro-cli-unwrapped`, for four predicate names in total.

All three binaries ship in the same upstream artifact and need the same
runtime environment, so one sandbox is enough. The environment's entry
script dispatches to whichever command is passed to it, and
`extraInstallCommands` exposes one thin wrapper per command in
`$out/bin` (the same approach as `aja-desktop-software`). This reduces
the unfree allowlist to two names (`kiro-cli` and `kiro-cli-unwrapped`)
while keeping the unfree license truthful on the unwrapped derivation.

Assisted-by: DeepSeek V4 Flash / Neuralwatt / Pi coding agent
2026-08-11 23:14:58 -07:00
..