Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/drnc5wlvcasqwgzjgdf1a5n28nqk34k7-source source root is source/rust Executing cargoSetupPostUnpackHook Finished cargoSetupPostUnpackHook unpackPhase completed in 33 seconds Running phase: patchPhase Executing cargoSetupPostPatchHook Validating consistency between /build/source/rust/Cargo.lock and /build/ccusage-20.0.45-vendor/Cargo.lock Finished cargoSetupPostPatchHook Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase Running phase: buildPhase Executing cargoBuildHook cargoBuildHook flags: -j 32 --target x86_64-unknown-linux-gnu --offline --profile release -p ccusage --bin ccusage Compiling zmij v1.0.23 Compiling libc v0.2.190 Compiling proc-macro2 v1.0.107 Compiling unicode-ident v1.0.27 Compiling quote v1.0.47 Compiling serde_core v1.0.229 Compiling shlex v2.0.1 Compiling find-msvc-tools v0.1.14 Compiling itoa v1.0.18 Compiling rustix v1.1.5 Compiling serde_json v1.0.154 Compiling serde v1.0.229 Compiling linux-raw-sys v0.12.1 Compiling simd-adler32 v0.3.10 Compiling adler2 v2.0.1 Compiling bitflags v2.13.2 Compiling memchr v2.8.3 Compiling ccusage-cli v0.0.0 (/build/source/rust/crates/ccusage-cli) Compiling jiff-core v0.1.1 Compiling unicode-width v0.2.2 Compiling smallvec v1.16.4 Compiling rustc-hash v2.1.3 Compiling pkg-config v0.3.34 Compiling cfg-if v1.0.5 Compiling rustversion v1.0.23 Compiling zstd-safe v8.2.0 Compiling zeroize v1.9.1 Compiling untrusted v0.9.0 Compiling winnow v1.0.4 Compiling crc32fast v1.5.2 Compiling miniz_oxide v0.9.1 Compiling rustls-pki-types v1.15.1 Compiling httparse v1.10.1 Compiling schemars v0.8.22 Compiling static_assertions v1.1.0 Compiling rustls v0.23.46 Compiling log v0.4.34 Compiling bytes v1.12.1 Compiling once_cell v1.21.4 Compiling subtle v2.6.1 Compiling dyn-clone v1.0.20 Compiling base64 v0.23.1 Compiling percent-encoding v2.3.2 Compiling utf8-zero v0.8.1 Compiling toml_parser v1.1.5+spec-1.1.0 Compiling webpki-roots v1.0.11 Compiling flate2 v1.1.10 Compiling jiff v0.2.38 Compiling http v1.5.0 Compiling castaway v0.2.4 Compiling compact_str v0.10.0 Compiling terminal_size v0.4.4 Compiling syn v3.0.9 Compiling syn v2.0.119 Compiling ccusage-terminal v0.0.0 (/build/source/rust/crates/ccusage-terminal) Compiling getrandom v0.2.17 Compiling ureq-proto v0.6.5 Compiling jobserver v0.1.35 Compiling cc v1.8.0 Compiling toml_datetime v1.1.2+spec-1.1.0 Compiling serde_spanned v1.1.2 Compiling toml v1.1.8+spec-1.1.0 Compiling serde_derive_internals v0.29.1 Compiling ccusage-pricing-snapshots v0.0.0 (/build/source/rust/crates/ccusage-pricing-snapshots) Compiling ccusage-cli-parser v0.0.0 (/build/source/rust/crates/ccusage-cli-parser) Compiling ccusage v0.0.0 (/build/source/rust/crates/ccusage) Compiling serde_derive v1.0.229 Compiling schemars_derive v0.8.22 Compiling sqlite3-src v0.7.1 Compiling ring v0.17.14 Compiling zstd-sys v2.1.2+zstd.1.5.7 error: failed to run custom build command for `zstd-sys v2.1.2+zstd.1.5.7` Caused by: process didn't exit successfully: `/build/source/rust/target/release/build/zstd-sys-7d2611b9f4555e33/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=ZSTD_SYS_USE_PKG_CONFIG cargo:rerun-if-env-changed=ZSTD_SYS_NO_HIDE_SYMBOLS cargo:rerun-if-env-changed=LIBZSTD_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu 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' (1409) panicked at /build/ccusage-20.0.45-vendor/source-registry-0/zstd-sys-2.1.2+zstd.1.5.7/build.rs:231:10: Can't probe for zstd in pkg-config: pkg-config exited with status code 1 > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --static --libs --cflags libzstd pkg-config output: Package libzstd was not found in the pkg-config search path. Perhaps you should add the directory containing `libzstd.pc' to the PKG_CONFIG_PATH environment variable No package 'libzstd' found The system library `libzstd` required by crate `zstd-sys` was not found. The file `libzstd.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. The PKG_CONFIG_PATH environment variable is not set. HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libzstd.pc`. note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...