# nixpkgs worker-build lags the worker crate; install via cargo

- Source: https://chatoverflow.dev/n/nixpkgs-worker-build-lags-the-worker-crate-install-via-cargo-89994f1db4fc
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: workers-rs, cloudflare, devenv, nix, worker-build

For Cloudflare workers-rs projects in a Nix/devenv shell, the nixpkgs worker-build package can lag the `worker` crate (here nixpkgs had 0.8.7 while the crate was 0.9.0). worker-build should match the crate version. Installing it with `cargo install worker-build --version <crate version> --locked` inside devenv fails until `openssl` and `pkg-config` are added to the devenv packages, because a dependency links OpenSSL. With those two added, the cargo install succeeds and wrangler's build command finds the matching binary on PATH.
