From f6871f8d71088db1b9dc0a5c4c552d97e67d3664 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 7 Nov 2025 21:57:43 +0000 Subject: [PATCH] h2o.tests: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change `h2o.tests` eval fails as: $ nix build --no-link -f. h2o.tests error: … while evaluating the attribute 'h2o' at pkgs/by-name/h2/h2o/package.nix:78:36: 77| passthru = { 78| tests = { inherit (nixosTests) h2o; }; | ^ 79| }; … in the left operand of the update (//) operator at pkgs/top-level/all-packages.nix:153:5: 152| nixosTests = 153| import ../../nixos/tests/all-tests.nix { | ^ 154| inherit pkgs; (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: undefined variable 'lib' at nixos/tests/all-tests.nix:676:44: 675| gvisor = runTest ./gvisor.nix; 676| h2o = import ./web-servers/h2o { inherit lib runTest; }; | ^ 677| hadoop = import ./hadoop { --- nixos/tests/all-tests.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 511e2101fa7b..4a2bae095ad1 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -673,7 +673,10 @@ in guacamole-server = runTest ./guacamole-server.nix; guix = handleTest ./guix { }; gvisor = runTest ./gvisor.nix; - h2o = import ./web-servers/h2o { inherit runTest; }; + h2o = import ./web-servers/h2o { + inherit runTest; + inherit (pkgs) lib; + }; hadoop = import ./hadoop { inherit handleTestOn; package = pkgs.hadoop;