跳到正文

flox 版本记录

FloxDev, Inc. · 用于在开发与交付流程中声明和管理可复现软件环境的 macOS 工具。

Cask开发工具 4,225
主页
安装命令
brew install --cask flox
近 30 天安装
86
App榜第 1112
近一年安装
1,713
365 天累计
最新版本
1.20.0
下载大小
60MB
pkg
更新节奏
每两周
近 30 天 2 个版本
  1. 1.20.0

    最新

    OpenNavo 编辑 Homebrew 收录

    Flox 1.20.0 于 2026-11-17 发布,遵守 DO_NOT_TRACK,允许构建覆盖一个目录输入,并让 activate 钩子不再钉住旧的存储路径。

    功能
    Flox 遵守 DO_NOT_TRACK,其他值都会关闭遥测。flox build 和 develop 可覆盖一个目录输入且不改锁。
    修复
    activate 钩子从安装路径运行 flox,不再用固定存储路径。错误报告和追踪不再包含计算机主机名。无法解析配置时,Flox 不再写出指标文件。NixOS、nix-darwin 和 home-manager 模块信任 floxhub-1 密钥。项目路径含空格时,Nix 表达式构建可以工作。flox show 会说没有可用构建,而不是找不到包。

    Flox 1.20.0 于 2026-11-17 发布,让管理可复现环境的人可以遵守 DO_NOT_TRACK,为一次构建覆盖一个目录输入,并让已经打开的 shell 用上升级后的 Flox。官方说明:https://github.com/flox/flox/releases/tag/v1.20.0

    • 除空值、0 或 false 以外,任何 DO_NOT_TRACK 值都会关闭遥测。
    • flox build 和 flox develop 可以把一个目录输入指向另一个来源,且不改已提交的锁。
    • activate 钩子从安装路径运行 flox,错误报告不再包含主机名。
    • 项目路径含空格时 Nix 表达式构建可以工作,flox show 会说明已知包没有构建。
  2. 1.19.4

    补丁

    OpenNavo 编辑 Homebrew 收录

    Flox 1.19.4 已于 2026-11-05 发布。本次更新更改了 `flox publish` 的确认和检出规则,将目录锁迁移到格式版本 2,并修复了 shell 激活与容器镜像问题。

    Flox 1.19.4 已于 2026-11-05 发布。本次更新更改了 flox publish 的确认和检出规则,将目录锁迁移到格式版本 2,并修复了 shell 激活与容器镜像问题。

    • 如果 Flox 通过 brew upgrade 在 Mac 上升级到了 1.19.1 或 1.19.2,那么再执行普通的 brew upgrade flox 升级到 1.19.4 仍会失败,因为 Homebrew 会先运行旧版本的卸载脚本。恢复脚本可修复安装并升级 Flox。它会使用 sudo,但不应以 root 身份运行。
    • 如果你用 Nix 表达式构建或发布软件包,现有的 v1 .flox/catalog.lock 必须用 flox build update-catalogs 重新生成;此外 flox publish 会拒绝浅克隆检出,因此使用 actions/checkout 的 GitHub Actions 必须设置 fetch-depth: 0。
    • flox publish 会在构建之前而非构建并上传之后,要求你确认源码谱系变更。
    • 自定义构建可通过 defaultAuthnMode 选择默认的 FloxHub 身份验证模式。未使用此选项的构建仍默认采用令牌身份验证。
    • 基础目录源构建使用锁文件中记录的 nixpkgs 主机。公共 GitHub 获取仍与现有缓存条目兼容。
    • nix profile install github:flox/flox 和本地 nix develop 可以使用 Flox CI 从 cache.floxsdlc.com 构建的路径,该缓存会在 cache.nixos.org 和 cache.flox.dev 之后尝试,并使用与 cache.flox.dev 相同的受信任密钥。
    • .flox/catalog.lock 现在使用格式版本 2。使用现有 v1 锁文件的 Nix 表达式操作需要先执行 flox build update-catalogs,不会发生自动迁移。
    • flox publish 要求已检出的分支具有上游、完整的历史记录,且其修订版本包含在该上游所公布的提示中。
    • 如果远程分支已推进且其提示不在本地克隆中,flox publish 会停止并提示你运行 git fetch <remote> <branch>,然后重试。
    • Zsh 和 tcsh 不再为子 shell 中的 cd(例如 (cd project && make))自动激活环境,这一点与 bash 一致。要在另一个项目的环境中运行一条命令,请使用 flox activate -d project -- make。
    • 当子 shell 更改目录时,Zsh 和 tcsh shell 不再失去与已自动激活环境的关联。此前这会导致 PID … is not attached to the activation 错误,并可能在 shell 仍在使用某环境时停止该环境的服务。
    • flox containerize 现在会遵循 [options] cuda-detection。此前无论清单如何设置,每个容器化环境中的 CUDA 检测都会被禁用。
    • 容器镜像现在包含真实的 /etc/passwd 和 /etc/group 文件,而不是指向 Nix store 的符号链接。此前构建的镜像在 containerd 2.2.0–2.2.7 上,以及在 2.3.0–2.3.4 上、overlay/bind 快速路径之外,可能无法启动,并报错 open etc/passwd: path escapes from parent。
    • 当 hook.on-activate 失败时,hook.on-deactivate 不再运行。
  3. 1.19.3

    补丁

    OpenNavo 编辑 Homebrew 收录

    修复 macOS 上重复进行 Homebrew 升级的问题,并修正 Debian 和 Ubuntu 的软件包维护。

    • 修复第二次或后续 Homebrew 升级时报“An existing package already provides the following file”的问题,该问题可能导致重启后 /nix 未挂载。
    • 经 brew upgrade 升至 1.19.1 或 1.19.2 的 Mac 仍需使用官方恢复脚本:正常升级前会先运行旧版卸载脚本。恢复脚本会修复安装并升至 1.19.3;它使用 sudo,但不能以 root 身份运行,因为 brew 拒绝 root 执行。
    • Debian 和 Ubuntu 升级时会使用新配置重启 nix-daemon;apt remove flox 会删除 nixbld 用户和用户组。

    官方发布说明

  4. 1.19.2

    展开

    OpenNavo 编辑 Homebrew 收录

    修补随附 Nix 的 Brotli 解压库中的 CVE-2026-111497。

    • 如果可信基础设施遭入侵或发生中间人攻击,来自 Nix 替代源、flake 下载端点或软件包源码下载端点的恶意 Brotli 压缩数据可能导致任意代码执行。
    • 项目方表示,目前未发现直接针对 Flox 的已知利用。
    • 发布方建议升级至 1.19.2 后重启系统,以确保修复完全生效。

    官方发布说明

  5. 1.19.1

    展开

    OpenNavo 编辑 Homebrew 收录

    调整证书环境变量,更新 Linux 和容器的 CA 信任,并停止旧环境导出过时证书路径。发布方建议升级后重启。

    Flox 不再设置 SSL_CERT_FILE、将其复制到 NIX_SSL_CERT_FILE,或覆盖用户设置的 NIX_SSL_CERT_FILE、PATH_LOCALE、LOCALE_ARCHIVE。两种证书变量都未设置时,仅为 Nix 构建的软件设置 NIX_SSL_CERT_FILE。若工具依赖原来导出的 SSL_CERT_FILE,需在清单 [vars] 中明确设置。

    Linux 内置证书包不再信任四个已泄露的根证书,即三个 emSign 根和 Comodo AAA Services。macOS 的信任由系统钥匙串控制,不受此信任变更影响。1.19.0 或更早版本构建的环境激活时不再导出过时 SSL_CERT_FILE,无需重新构建。flox containerize 镜像在 /etc/ssl/certs 使用同一证书包。Linux 激活、服务、构建、flox develop、flox run 和扩展不再继承 Flox TLS 库写入的 SSL_CERT_FILE、SSL_CERT_DIR。发布方建议升级后重启。

    https://github.com/flox/flox/releases/tag/v1.19.1

  6. 1.19.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增按包组配置目录稳定性,增强离线 flox list --all 信息。改进包选择和登录提示,修复并发激活及容器分层环境修改。所有版本解析目录包现需免费 FloxHub 登录;搜索及使用最新锁文件激活仍公开可用。

    新增按包组配置目录稳定性,增强离线 flox list --all 信息。改进包选择和登录提示,修复并发激活及容器分层环境修改。所有版本解析目录包现需免费 FloxHub 登录;搜索及使用最新锁文件激活仍公开可用。

    Source: https://github.com/flox/flox/releases/tag/v1.19.0

  7. 1.18.2

    展开

    OpenNavo 编辑 Homebrew 收录

    将内置 Nix 更新至 2.31.6,处理 2026 年 10 月 Nix/Lix 安全公告所列问题。

    将内置 Nix 更新至 2.31.6。2026 年 10 月 Nix/Lix 公告中的部分问题在多用户安装环境下可组合导致本地 root 提权;多用户安装是 Flox 的默认方式。发布方说明所有早于 1.18.2 的 Flox 版本都包含受影响的 Nix,并建议升级至 1.18.2。

    https://github.com/flox/flox/releases/tag/v1.18.2

  8. 1.18.1

    展开

    OpenNavo 编辑 Homebrew 收录

    修复环境停用和重新激活时脚本的行为。请重启当前活动的 shell 会话,以启用新的提示符钩子。

    修复
    停用脚本会再次运行,且不再显示意外上下文消息。在同一 shell 中重新激活同一环境时,会再次加载其配置脚本。重启活动的 shell 会话以启用新的提示符钩子。

    Flox 1.18.1 修复了在当前 shell 中激活和停用环境时的脚本行为。停用时不再打印意外上下文消息,环境的停用脚本也会再次运行。在同一 shell 中再次激活同一环境时,其配置脚本也会再次加载。

    请重启任何当前活动的 shell 会话,以启用新的提示符钩子。

    来源:Flox v1.18.1 发布说明

  9. 1.18.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增清单与 schema 处理选项,调整软件包构建输入,并宣布从下一版本起解析软件包需要登录 FloxHub。

    功能
    清单设置可关闭环境激活时的升级通知。flox edit 将清单升级到最低适用 schema 版本。Flox 容器镜像现已发布到 Docker Hub。
    变更
    从下一版本起,解析软件包需要免费的 FloxHub 账户。发布前会确认已登记源代码库或 ref 的更改。构建命令使用目录当前 nixpkgs 或 --stability 指定版本。
    修复
    修复激活时变量损坏及列表变量重复项。不再将远程环境缓存检出单列为非活动环境。构建 runtime-packages 支持带命名空间的软件包。

    Flox 1.18.0 新增清单设置 options.activate.upgrade-notifications = false,可为所有激活该环境的用户关闭升级通知。使用 schema-version = "1.18.0" 时,flox edit 会将清单升级到支持其字段的最低 schema 版本,并打印提示,而不再失败。Flox 容器镜像现以 flox/flox 名称发布到 Docker Hub。

    从下一版本起,从 Flox Catalog 解析软件包需要免费的 FloxHub 账户。可通过 flox auth login 登录,或在 CI 中设置 FLOX_FLOXHUB_TOKEN。无需登录仍可搜索软件包并激活已锁定的环境。install-flox-action 新增 floxhub-token 输入,用于 CI 身份验证。flox publish 在替换已登记的软件包源代码库或 ref 前会请求确认;非交互使用时可传入 --allow-lineage-change。flox build、flox develop 和 flox publish 使用目录当前的 nixpkgs,或由 --stability 指定的版本。--nixpkgs-url <url> 可在不联系目录的情况下固定修订版。

    修复包括嵌套激活时变量损坏的问题(包括钩子扩展且未带分隔符的变量)以及列表变量中的重复项。flox envs 不再将支持远程环境的本地缓存检出列为单独的非活动环境。构建的 runtime-packages 列表现在也接受 owner/pkg 这样的带命名空间目录软件包。

    官方发行说明

  10. 1.17.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增面向构建的开发 shell 和更清晰的环境说明;调整升级 dry-run 行为,并修复身份验证、服务恢复、钥匙串提示、目录重试及配置报告问题。

    功能
    flox develop 为 Nix 表达式构建打开包含构建输入的 shell。交互式命令以 Markdown 显示环境说明。flox init -D 创建当前用户的 FloxHub default 环境。首次 flox install 会说明如何通过 shell RC 文件激活。
    变更
    upgrade --dry-run 报告可升级项,不构建或下载软件包。dry-run 成功不再保证升级后的环境能够构建。
    修复
    令牌过期时发出警告,身份验证状态以非零值退出。服务命令可从遗留的管理器 socket 中恢复。钥匙串访问仅提示一次,而非每个发行版都提示。目录请求遵循服务器延迟,并重试临时故障。flox config -l 解释为何省略未设置的可选值。

    功能

    flox develop [<package>] 会为 Nix 表达式构建打开开发 shell,其中包含位于 PATH 的软件包构建输入,并加载 stdenv 构建阶段。使用 -c/--command 可在该 shell 中运行命令而不进入 shell;shell 打开期间,构建输入不会被垃圾回收。manifest 的 toplevel description 会在交互式 flox activate 中以 Markdown 呈现,其首行会显示在 flox envs 中。flox init -D 会在 FloxHub 创建 <current_user>/default 环境。首次使用 flox install 创建 default 环境时,也会说明如何通过 shell RC 文件激活。

    变更与修复

    flox upgrade --dry-run 现在仅报告有可用升级的软件包,不会构建或下载软件包,因此成功不再保证升级后的环境能够构建。FloxHub 令牌过期时,flox auth status 会发出警告并以非零状态退出。若先前的服务管理器被终止后未清理 socket,服务命令现在可以恢复。flox 只提示一次钥匙串访问,而非每个发行版都提示。目录请求会等待服务器要求的时间,并在服务暂时不可用时重试。flox config -l 会解释为何省略未设置的可选值,包括 auto_activate。

    官方发行说明

  11. 1.16.0

    展开

    GitHub Release Homebrew 收录

    Services

    Flox 1.16.0 introduces a new manifest schema 1.16.0 that includes the service fields depends-on, shutdown.timeout-seconds, and shutdown.signal.

    • Services can declare start ordering: [services.<name>.depends-on] waits for another service to start or complete before this one starts.
    • [services.<name>.shutdown] gains timeout-seconds, which sets how long a service gets to shut down before it is killed, and signal, which sets the signal to deliver.
    • Services now start in dependency order, so a service listed before its dependency no longer starts early and ignores depends-on.

    flox run

    flox run now provides the ability to run commands solely by providing the command name. For example, use flox run rg to run ripgrep.

    • The -p/--package argument is now optional. When several packages provide the same command, Flox prompts asking what package to use if an interactive terminal is available, and remembers the choice for next time.
    • flox run now accepts --reselect <COMMAND>, which clears the choice of what package to use for a command.
    • flox search --command <COMMAND> lists the packages that provide a named binary, with --all to show every result and --json for machine-readable output.

    Changes

    • flox develop no longer activates an environment; use flox activate instead. flox develop will be used to provide a Nix development shell for Nix expression builds.
    • flox init now records the environment's anonymous metrics id in the env_id field of .flox/env.json instead of a separate .flox/telemetry_id file. Existing telemetry_id files are still honored. The id is committed with the environment on purpose, so that clones of one environment count as one environment, and it is only submitted when metrics collection is enabled.
    • Catalog inputs for expression builds resolve to the latest published versions, independent of --stability, which selects only the nixpkgs base package set.
    • nix profile install github:flox/flox now prefers cache.nixos.org for upstream packages; cache.flox.dev continues to serve the Flox closures themselves. No action is needed, as the substituter and trusted key shipped in the flake are unchanged apart from the priority parameter.

    Features

    • A new Flox NixOS module runs systemd services from Flox environments, with automatic environment provisioning, scheduled updates, and restart-on-change. See the module README for details.
    • auto_activate_environments keys may now be glob patterns, where * matches one directory name and ** matches any depth, so a single entry can allow or deny auto-activation for many repositories. An exact path always wins, and if matching patterns disagree the directory is denied, as in flox config --set 'auto_activate_environments."/home/me/work/*"' allow.
    • flox auth status displays the active credential expiry when known.
    • flox auth login now asks the configured FloxHub server where to log in: a deployment serving auth discovery gets the device-grant login against its own identity provider, and a deployment without it keeps today's Auth0 login unchanged.
    • Projects using Nix expression builds may now pin their catalog inputs in a single committed .flox/catalog.lock, created explicitly with flox build update-catalogs, so every build of a revision uses the same pinned inputs. Without one, builds resolve the built packages' references fresh on every invocation, and nothing is written into the project tree. flox publish submits only the entries relevant to the published package, and a stale committed lock fails the publish with the uncovered references.

    Fixes

    • Fixed an intermittent flox publish failure, failed to parse file for lock results, caused by a race in per-package catalog locking.
    • flox publish no longer sends the user and password portion of an http(s) git remote URL, or the password portion of an ssh one. Where a remote is configured as https://<user>:<token>@host/owner/repo, only https://host/owner/repo is sent, and the repository is identified the same way. A credential in a git:// remote, or in a remote-helper address such as hg::https://…, is still sent in full. Source URLs recorded by publishes made before this release may include userinfo for any shape, so rotate any token that was configured in a remote.
    • Fixed verbose authentication output so FloxHub credentials are redacted.
    • flox auth token now prints personal access tokens and other opaque credentials instead of reporting that you are not logged in.
    • Setting auth_notifications = false now also suppresses the warning about resolving packages while logged out, which previously fired every eight hours regardless of the setting.
    • Commands that fail with "Environment not found in FloxHub." now add "you may need to run 'flox auth login'" when no FloxHub identity is resolved locally, rather than implying the environment was deleted. This covers flox pull in an existing environment directory and the remote-environment commands such as flox activate -r. flox pull <owner>/<name> into a new directory has its own message and is unchanged.
    • Fixed a bug where flox edit --name silently reset .flox/env.json to owner-only permissions; env.json rewrites now preserve the file's existing permissions.

    Thank you to our community contributions this release

    • Corrected the clone command syntax in CONTRIBUTING.md (@esteve)

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.16.0 and SHA512 checksums for Flox 1.16.0 online.

  12. 1.15.0

    展开

    GitHub Release Homebrew 收录

    [!WARNING]

    • [breaking change] It is recommended to exit all current activations or reboot after installing.

    Features

    • Added hook.on-deactivate to the manifest. The on-deactivate script is run in Bash when the last activate of an environment exits.
    • flox publish now detects an already-published build before building the package, so re-publishing an unchanged source and closure returns immediately instead of paying for a full build first.
    • flox service was added as an alias for flox services.
    • Added an auth_notifications config option. Set it to false (via flox config --set auth_notifications false or FLOX_AUTH_NOTIFICATIONS=false) to quiet the "You are not logged in to FloxHub" reminder. Commands that require authentication still fail with an explanation, and this does not control warnings about authentication when connecting to the catalog.
    • Unauthenticated users are now warned that resolving packages will require authentication to FloxHub in an upcoming release. See https://go.flox.dev/auth for more information. The warning appears only when the CLI actually contacts the catalog, and at most once every 8 hours. Use -q to suppress it.

    Fixes

    • If an environment variable is set prior to activating an environment with a variable in [vars], a second activation of that environment still sets the variable from [vars]. Closes https://github.com/flox/flox/issues/3761
    • When activating an environment in one shell on top of a second environment but on top of a third environment in another shell, environment variables from the second environment no longer leak into the second shell.
    • Experimental plugin scripts can now read variables set in the manifest's [vars] section: activation sources Flox's own profile.d scripts first, then exports [vars], then sources plugin-provided profile.d scripts. A variable exported by a plugin script takes precedence over a same-named [vars] entry.
    • Clearer errors and guidance are now provided when packages and package outputs have file collisions.
    • Locking a package whose systems names a system missing from options.systems now suggests adding that system to options.systems.
    • flox push now works when temporary editor files are present in .flox/env.
    • fish and tcsh now honor $FLOX_PROMPT when NO_COLOR is set.
    • flox build now fails with a source location when a Nix expression cannot be parsed or read, or when it uses the catalog namespace in a way that cannot be analyzed, instead of writing a lock with missing catalog inputs.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.15.0 and SHA512 checksums for Flox 1.15.0 online.

  13. 1.14.1

    展开

    GitHub Release Homebrew 收录

    Features

    • Activations now announce the environment they enter when stderr is a terminal, using the same wording in every activation mode, including in-place and auto-activations. Re-activations of an already-active environment and environments named default stay quiet.
    • flox -q activate is now silent in every mode, and no longer prints an execution trace of the activation scripts.
    • Environments named default now appear in the shell prompt by default. Set hide_default_prompt = true to hide them again.
    • The shell prompt now shows just the environment name for each active environment, instead of owner/name (local).
    • flox-activate(1) now documents $FLOX_PROMPT and the exported prompt variables.
    • flox now reminds users who are not logged in to FloxHub to run flox auth login, instead of only warning when a previously stored token had expired. The reminder appears once per shell session and is suppressed for flox auth commands and prompt hooks.
    • flox search accepts more search terms. Terms such as c++ and g++, and terms written in non-Latin scripts, now work, and the message for a rejected term no longer prints a regular expression at the user. Search terms longer than 200 characters are rejected before the request is sent.
    • flox build now passes FLOX_ENV_CACHE to builds, so generated state such as pip.ini is written for manifest and sandboxed builds.

    Changes

    • x86_64-darwin is no longer one of the implicit default systems, because nixpkgs drops it from LTS releases after 26.05, which makes environments that include it resolve to older package versions. It remains valid when listed explicitly in options.systems, and the current system is always included, so environments on x86_64-darwin keep working there.
    • Locking now warns when it removes packages, which can happen when re-locking an environment created before this change. Building an environment with no packages locked for the current system now fails with an error naming the locked systems, instead of producing an empty environment.
    • flox activate no longer adds the environment's sbin directory to PATH by default. Opt back in per activation with flox activate --add-sbin. Packages you build and publish can install to sbin to keep an executable off PATH, while base catalog packages are unaffected. flox run still finds executables installed to sbin, and PATH handling inside flox build wrappers is unchanged.

    Fixes

    • Deactivating the last active environment no longer breaks auto-activation for the rest of the shell session ("This shell's Flox prompt hook is out of sync with the running Flox.").
    • Environments spawned by auto-activation no longer misreport the Flox version as v0.0.0 (seen as "This environment requires Flox vX.Y.Z or later" warnings).
    • flox init in the home directory now creates the default environment even when $HOME contains symlinked path components.
    • Remote environment initialization no longer fails when a missing Git branch produces additional diagnostic output.
    • flox activate now writes the generated pip.ini to the environment's cache directory (.flox/cache/pip.ini) instead of .flox/pip.ini. This fixes flox activate -r failing for environments that provide pip when the working directory has no .flox directory. Stale .flox/pip.ini files from earlier versions are no longer used and can be deleted.
    • flox push no longer reports "changes that are not yet synced to a generation" after upgrading an environment created with an older version of Flox.
    • [vars] entries that reference other entries with ${name} now resolve in dependency order, so a reference works regardless of where the entries appear in the manifest. A reference cycle between entries fails with a clear error instead of aborting activation.
    • Process monitoring now falls back to polling when it cannot block waiting for a process, instead of assuming the process has exited and re-monitoring the same PID.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.14.1 and SHA512 checksums for Flox 1.14.1 online.

  14. 1.14.0

    展开

    GitHub Release Homebrew 收录

    Auto activation

    Flox now prompts whether to auto-activate environments in the current directory and parent directories. After an environment is approved, it is subsequently activated whenever the shell enters the directory containing the environment, and it is deactivated when the shell leaves that directory.

    Auto-activated Flox environments work just like normal Flox activations, so this provides an easy way to load packages, environment variables, shell aliases, and services all with a single cd.

    Auto-activation requires the Flox prompt hook to be installed, which can be done by activating a default environment in your shell's RC files.

    For more details, see https://flox.dev/docs/concepts/auto-activation

    Authentication changes

    • flox can now authenticate with FloxHub personal access tokens. Tokens are generated in FloxHub on the user profile page. To login, run flox auth login --token-file or export FLOX_FLOXHUB_TOKEN
    • flox auth login now supports non-interactive authentication via --token-file <PATH>
    • flox auth login now stores your FloxHub token in your operating system's encrypted credential store (macOS Keychain / Linux Secret Service) by default, instead of in plain text. On systems without a keyring, it falls back to a 0600 plain-text file and warns you. Existing plain-text tokens are migrated into the keyring automatically and safely. Use flox auth login --insecure-storage to force plain-text storage, and flox auth status to see where your credential is stored.
    • flox auth login --insecure-storage is now a persistent preference: the FloxHub token stays in plain text in flox.toml on subsequent commands instead of being moved into the OS keyring on the next invocation. Use flox auth login --insecure-storage --once to store plain text for a single login without changing the preference, and flox config --delete floxhub_token_storage (or --set floxhub_token_storage keyring) to switch back to keyring storage.

    Other features and changes

    • Users can now trust all environments from an organization with a single config entry: flox config --set 'trusted_environments.myorg/*' trust. The interactive trust prompt also offers this as a one-step option when activating an untrusted remote environment.
    • flox activate -D now proceeds when your FloxHub token has expired, instead of forcing a re-login, since the expired token still carries a valid handle.
    • Packages installed to an environment that provide Bash script in the etc/profile.d directory now have those scripts sourced on flox activate, in lexical order alongside scripts provided by Flox itself.
    • An experimental [plugins] manifest section is now available for storing free-form data for installed plugin packages. It is not yet stable, so its shape may change.
    • flox build update-catalogs is deprecated. Catalog inputs for Nix expression builds are resolved and locked automatically during flox build and flox publish.

    Fixes

    • flox deactivate and auto-deactivation now work when the active environment's directory has been deleted (e.g. a removed git worktree), instead of erroring with "Did not find an environment" on every prompt.
    • Fish shell users using auto-activation (cd-triggered) will now see the flox [env] prompt prefix, matching the behavior of interactive flox activate.
    • Fixed INFOPATH inside activated environments so info manuals installed outside the environment (e.g. the built-in emacs manual) remain discoverable.
    • Deactivating from within a subshell no longer fails with PID XXX is not attached to the activation.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.14.0 and SHA512 checksums for Flox 1.14.0 online.

  15. 1.13.2

    展开

    GitHub Release Homebrew 收录

    Improvements to auto-activate (experimental)

    [!NOTE] Auto-activate is behind a feature flag. Enable it with flox config --set features.auto_activate true (or FLOX_FEATURES_AUTO_ACTIVATE=true).

    • Declining the auto-activation prompt for an environment is now remembered, so you are no longer prompted for it again.
    • Re-allowing a previously denied environment in the middle of a nested auto-activation stack now restores it to its correct position in the prompt and PATH, matching what a fresh cd into the directory produces.
    • The auto-activation prompt no longer hangs when using the fish shell.

    Features

    • flox run now supports running packages from custom catalogs (e.g. flox run -p owner/pkg -- ...), using an authenticated download path.

    Fixes

    • flox gc and flox envs no longer fail with Failed to fetch environment: ref not found when a deleted environment is still referenced by the local environment registry.
    • flox install no longer prints the "additional outputs" hint when you explicitly selected outputs (pkg^.. or pkg^out,man).
    • The "Your FloxHub token has expired" reminder is now shown once per shell session instead of repeating for nested flox invocations.
    • flox install pkg^bad with an invalid output name now shows a clear error instead of a raw Nix build trace.
    • flox activate no longer crashes on a rare race in activation cleanup.
    • Installing flox via the Nix module no longer emits a 'system' has been renamed evaluation warning.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.13.2 and SHA512 checksums for Flox 1.13.2 online.

  16. 1.13.1

    展开

    GitHub Release Homebrew 收录

    Features

    • flox run -p <PACKAGE> [--] <COMMAND> runs a command directly from a Flox Catalog package without creating an environment, resolving, downloading, and executing it in a single step. Packages not in the binary cache, such as unfree packages, are built from source automatically.
    • flox build import-nixpkgs now accepts --stability <STABILITY> to select the nixpkgs revision used for the import, matching the behavior of flox build.
    • flox containerize now accepts --mode/-m to containerize the dev or run environment directly, without editing the manifest.

    Fixes

    • flox build environment conflict errors now include the output names (for example (out)) when two outputs of the same package collide on a file path, making the conflict easier to act on.
    • flox deactivate no longer fails with a missing prompt-hook error when deactivating one of several stacked environments.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.13.1 and SHA512 checksums for Flox 1.13.1 online.

  17. 1.13.0

    展开

    GitHub Release Homebrew 收录

    Features

    • flox deactivate is now available. Use it to leave an active environment and return your shell to its previous state, without closing the shell or terminal the way exit would.
    • A new profile.deactivate section for scripts that run when an environment is deactivated. Requires setting schema-version = "1.13.0".
    • flox upgrade output now distinguishes version changes (curl: 8.9.0 -> 8.10.1) from same-version rebuilds (terraform-docs: 0.21.0 (rebuild, ...)) and summarizes them as "N version changes and M rebuilds".
    • Manifest builds support two new sandbox levels, warn and enforce, alongside off and pure, plus a sandbox-allow allow-list for files outside the build closure. Requires setting schema-version = "1.13.0".
    • A new disable_hook config option skips installing the prompt hook when set to true.

    Fixes

    • flox activate no longer re-locks or rebuilds an environment whose lockfile is already current.
    • flox upgrade and flox activate --remote now correctly create activation symlinks on the first run in an environment that has never been built locally.
    • Flox environment creation is faster, reducing nix build invocations from 3 to 1 per build-and-link cycle and spawning no fetch subprocesses when all packages are already cached.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.13.0 and SHA512 checksums for Flox 1.13.0 online.

  18. 1.12.2

    展开

    GitHub Release Homebrew 收录

    Fixes

    • Enable use of git describe for setting version strings in manifest builds.
    • Fix bug triggering unnecessary rebuilds with flox publish.

    Changes

    • Add color highlighting to debug output for easier identification of slow operations.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.12.2 and SHA512 checksums for Flox 1.12.2 online.

  19. 1.12.1

    展开

    GitHub Release Homebrew 收录

    Features

    • -D/--default flag provides a shortcut to reference your default FloxHub environment across any command that accepts -r/--reference as an argument, replacing -r <user>/default.
    • flox install <package>^<output> now appends an output to a package that is already installed; previously this only worked when the package was not yet installed.
    • flox publish skips rebuilds and publish when the exact build has already been published

    Fixes

    • FLOX_ACTIVATE_START_SERVICES is no longer overridden when a second environment is activated from an RC file.

    Thank you to our community contributors for this release

    • flox auth login no longer suggests running flox auth login when the existing token is expired (@stahnma)

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.12.1 and SHA512 checksums for Flox 1.12.1 online.

  20. 1.12.0

    展开

    GitHub Release Homebrew 收录

    Fix for Nix vulnerabilities

    This release fixes GHSA-vh5x-56v6-4368 and GHSA-gr92-w2r5-qw5p. For Linux and macOS installations of Flox, GHSA-vh5x-56v6-4368 can allow arbitrary code execution as root. This affects Flox versions >=1.3.12.

    Features

    The manifest schema was bumped from 1.11.0 to 1.12.0 for the auto-start feature below.

    • flox activate automatically starts services when auto-start = true is set in the manifest's [services] section, and a new --no-start-services flag suppresses this on individual invocations.
    • flox publish reports failure-specific error messages for common repository validation issues (missing upstream branch, detached HEAD, SSH/authentication failure, revision not on remote).
    • flox publish collects narinfo for build outputs and their full closure from the local Nix store when publishing to a metadata-only catalog. This data is required to build a complete SBOM.

    Fixes

    • Propagated packages now respect the priority of their parent package in the manifest's [install] block when activated in "develop" mode.
    • Manifest builds no longer fail when source files contain special characters in their filenames.
    • FLOX_FLOXHUB_TOKEN is redacted in log files and verbose output.
    • flox publish reports a clear error when .flox files are untracked in the build repository, instead of failing with a confusing "could not find environment pointer file" message.
    • flox publish honors the keep_tempdir setting when a build fails in an ephemeral directory.
    • flox publish no longer hangs polling for publisher confirmation when running against a metadata-only or NixCopy catalog configuration.
    • Metadata-only flox publish no longer fails with NoToken when no FloxHub token is configured when using Kerberos Authn.
    • flox include upgrade no longer unnecessarily migrates manifests with older but still-supported schema versions, avoiding schema version drift in the lockfile.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.12.0 and SHA512 checksums for Flox 1.12.0 online.

  21. 1.11.4

    展开

    GitHub Release Homebrew 收录

    [!WARNING] Security Advisory: This release includes a version of Nix vulnerable to GHSA-vh5x-56v6-4368 and GHSA-gr92-w2r5-qw5p, which can allow privilege escalation to root. Please upgrade to Flox v1.12.0 or later.

    This release is a hotfix for an expired package signing key with no other changes. If you see the following error when running sudo apt update or sudo dnf check-update, you can install the latest package directly to resolve it:

    The following signatures were invalid: EXPKEYSIG 17C4AE797B819BF4 Flox Security (release signing key) <security@flox.dev>

    Debian/Ubuntu (DEB):

    # For x86_64:
    curl -fsSL -O https://downloads.flox.dev/by-env/stable/deb/flox-1.11.4.x86_64-linux.deb
    sudo dpkg -i flox-1.11.4.x86_64-linux.deb
    
    # For aarch64 (ARM):
    curl -fsSL -O https://downloads.flox.dev/by-env/stable/deb/flox-1.11.4.aarch64-linux.deb
    sudo dpkg -i flox-1.11.4.aarch64-linux.deb
    

    Fedora/RHEL/Rocky (RPM):

    First, find and remove the expired Flox signing key:

    rpm -e gpg-pubkey-d89ee7d68a1ba21f4bf9a8f517c4ae797b819bf4-661ed2e2
    

    [!NOTE] This may return error: package gpg-pubkey-d89ee7d68a1ba21f4bf9a8f517c4ae797b819bf4-661ed2e2 is not installed; that message is expected and does not indicate a failure

    Then import the updated signing key:

    rpm --import https://downloads.flox.dev/by-env/stable/rpm/flox-archive-keyring.asc
    

    Then update Flox:

    dnf update flox
    

    Once installed, sudo apt update and sudo dnf check-update will no longer produce this error. If you have any issues or questions, you can reach us on our community slack.

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.11.4 and SHA512 checksums for Flox 1.11.4 online.

  22. 1.11.3
  23. 1.11.2

    展开

    GitHub Release Homebrew 收录

    [!WARNING] Security Advisory: This release includes a version of Nix vulnerable to GHSA-vh5x-56v6-4368 and GHSA-gr92-w2r5-qw5p, which can allow privilege escalation to root. Please upgrade to Flox v1.12.0 or later.

    Hotfix for Nix vulnerability

    This is a hotfix release to patch a vulnerability in Nix. See https://github.com/NixOS/nix/security/advisories/GHSA-g3g9-5vj6-r3gj

    For Linux installations of Flox, the vulnerability allows non-root users to gain root privileges by modifying sensitive files. macOS and container installations are not affected. This affects Flox installations >=1.3.2 up to this release.

    Full details from the Nix advisory

    A bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents.

    In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files.

    Details relevant to Flox

    Flox installations outside of containers default to a multi-user installation with allowed-users defaulting to all. Questions and additional info can be found in our community slack.

    Other fixes

    • Manifest parse errors now include line and column information, making it easier to locate syntax errors.

    Thank you to our community contributions this release

    • Manifest parse error improvements (@electricalen)

    Download Links

    [!NOTE] You can find the SHA256 checksums for Flox 1.11.2 and SHA512 checksums for Flox 1.11.2 online.

  24. 1.11.1

    展开

    GitHub Release Homebrew 收录

    [!WARNING] Security Advisory: This release includes a version of Nix vulnerable to GHSA-g3g9-5vj6-r3gj, a vulnerability that allows privilege escalation to root. Please upgrade to Flox v1.11.2 or later.

    Changes

    • When both a non-root user and working-dir are set in [containerize.config], working-dir is created and chown'ed to user.
    • flox init now always creates a lockfile, including with --bare.
    • flox auth login now displays the verification URL in the prompt so users can copy it to any browser.

    Fixes

    • minimum-cli-version is no longer ignored when schema-version is still "1.10.0".
    • Package download failure errors now include the actual nix copy stderr instead of "unknown reason".
    • flox edit --name with no argument no longer gives a misleading "no such flag" error.

    Thank you to our community contributions this release

    • Improve download failure error messages (@tonky)
    • Improve flox edit --name error (@tonky)

    Download Links