Commit 85f8f9c9 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

libweaver.updateScript: fix the eval

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?
parent d87c5662
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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" ];