Nix package broken since 0.89.0 version
Resolved 💬 2 comments Opened Feb 18, 2026 by sgiath Closed Feb 21, 2026
What version of Codex CLI is running?
codex-cli 0.89.0
What subscription do you have?
pro
Which model were you using?
_No response_
What platform is your computer?
NixOS, Linux 6.18.8-xanmod1 x86_64 unknown
What terminal emulator and version are you using (if applicable)?
kitty 0.45.0
What issue are you seeing?
The Nix package from the flake.nix cannot be build since the 0.92.0 version. It has different issues in different versions, the current error looks like this:
error: Cannot build '/nix/store/7znk4iakrp3r50vvdgp2pcgi64lgk7l0-codex-rs-0.104.0.drv'.
Reason: builder failed with exit code 101.
Output paths:
/nix/store/6r1a53h0sphpdblmlr7jidv4wki9wdzn-codex-rs-0.104.0
Last 25 log lines:
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
>
> --- stderr
>
> thread 'main' (14858) panicked at linux-sandbox/build.rs:39:9:
> failed to compile vendored bubblewrap for Linux target: libcap not available via pkg-config:
> pkg-config exited with status code 1
> > PKG_CONFIG_PATH=/nix/store/fgm3pz8486ksh3f94629lpb7xjr2wjp7-openssl-3.6.0-dev/lib/pkgconfig:$PKG_CONFIG_PATH PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libcap
>
> The system library `libcap` required by crate `codex-linux-sandbox` was not found.
> The file `libcap.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> PKG_CONFIG_PATH contains the following:
> - /nix/store/fgm3pz8486ksh3f94629lpb7xjr2wjp7-openssl-3.6.0-dev/lib/pkgconfig
> - $PKG_CONFIG_PATH
>
> HINT: you may need to install a package such as libcap, libcap-dev or libcap-devel.
>
> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> warning: build failed, waiting for other jobs to finish...
For full logs, run:
nix log /nix/store/7znk4iakrp3r50vvdgp2pcgi64lgk7l0-codex-rs-0.104.0.drv
It seems like pkgs.libcap needs to be added to the buildInputs
What steps can reproduce the bug?
nix build '.#codex-rs'
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗