From f847918575202d3989d38aa69cc6c3b97b27c362 Mon Sep 17 00:00:00 2001 From: aviac Date: Fri, 20 Feb 2026 09:24:36 +0100 Subject: [PATCH] fix(nix): Fix `all-features` build The build was broken since we started using an unstable reqwest version which requires setting an extra feature flag --- nix/packages/uwulib/build.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/packages/uwulib/build.nix b/nix/packages/uwulib/build.nix index 04b400e6..e36b57f0 100644 --- a/nix/packages/uwulib/build.nix +++ b/nix/packages/uwulib/build.nix @@ -102,7 +102,13 @@ rec { ''; cargoArtifacts = deps; doCheck = true; - env = uwuenv.buildPackageEnv // rocksdbEnv; + env = + uwuenv.buildPackageEnv + // rocksdbEnv + // { + # required since we started using unstable reqwest apparently ... otherwise the all-features build will fail + RUSTFLAGS = "--cfg reqwest_unstable"; + }; passthru.env = uwuenv.buildPackageEnv // rocksdbEnv; meta.mainProgram = crateInfo.pname; inherit (features) cargoExtraArgs;