mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
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