From 7583f8b836f4e5d6738033cda1c542587da3bc3a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 28 Oct 2025 06:48:13 +0000 Subject: [PATCH] botan3: fix `pkgsStatic` eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the eval fails as: $ nix build --no-link -f. pkgsStatic.botan3 error: … while calling a functor (an attribute set with a '__functor' attribute) at lib/customisation.nix:317:7: 316| if missingArgs == { } then 317| makeOverridable f allArgs | ^ 318| # This needs to be an abort so it can't be caught with `builtins.tryEval`, … while evaluating a branch condition at lib/customisation.nix:182:7: 181| in 182| if isAttrs result then | ^ 183| result (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: attribute 'libxccStdenv' missing at pkgs/by-name/bo/botan3/package.nix:37:28: 36| let 37| stdenv' = if static then buildPackages.libxccStdenv else stdenv; | ^ 38| in --- pkgs/by-name/bo/botan3/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/bo/botan3/package.nix b/pkgs/by-name/bo/botan3/package.nix index 7a52f1d1b89b..084eb1face8b 100644 --- a/pkgs/by-name/bo/botan3/package.nix +++ b/pkgs/by-name/bo/botan3/package.nix @@ -34,7 +34,7 @@ assert lib.assertOneOf "policy" policy [ ]; let - stdenv' = if static then buildPackages.libxccStdenv else stdenv; + stdenv' = if static then buildPackages.libcxxStdenv else stdenv; in stdenv'.mkDerivation (finalAttrs: { version = "3.9.0";