From 85f8f9c9a1a362a52d8eb2e3b41d19328ba32b97 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 2 Mar 2026 21:41:13 +0000 Subject: [PATCH] libweaver.updateScript: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the eval fails as: $ nix eval --impure --expr 'with import ./. {}; libweaver.updateScript' error: … while evaluating the attribute 'updateScript' at pkgs/by-name/li/libweaver/package.nix:34:5: 33| passthru = { 34| updateScript = unstableGitUpdater { harcodeZeroVersion = true; }; | ^ 35| tests.cmake-config = testers.hasCmakeConfigModules { … while calling a functor (an attribute set with a '__functor' attribute) at pkgs/by-name/li/libweaver/package.nix:34:20: 33| passthru = { 34| updateScript = unstableGitUpdater { harcodeZeroVersion = true; }; | ^ 35| tests.cmake-config = testers.hasCmakeConfigModules { (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: function 'anonymous lambda' called with unexpected argument 'harcodeZeroVersion' at pkgs/common-updater/unstable-updater.nix:16:1: 15| 16| { | ^ 17| url ? null, # The git url, if empty it will be set to src.gitRepoUrl Did you mean hardcodeZeroVersion? --- pkgs/by-name/li/libweaver/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libweaver/package.nix b/pkgs/by-name/li/libweaver/package.nix index bea881edb092..411d28cbf9e5 100644 --- a/pkgs/by-name/li/libweaver/package.nix +++ b/pkgs/by-name/li/libweaver/package.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: { ]; passthru = { - updateScript = unstableGitUpdater { harcodeZeroVersion = true; }; + updateScript = unstableGitUpdater { hardcodeZeroVersion = true; }; tests.cmake-config = testers.hasCmakeConfigModules { package = finalAttrs.finalPackage; moduleNames = [ "libweaver" ];