dear-imgui.hs icon indicating copy to clipboard operation
dear-imgui.hs copied to clipboard

Bump haskell.nix

Open dpwiz opened this issue 10 months ago • 1 comments

dpwiz avatar Apr 13 '24 16:04 dpwiz

The build fails with error: function 'anonymous lambda' called with unexpected argument 'fetchSubmodules', but we are not providing this argument... Is this a bug in haskell.nix?

TristanCacqueray avatar Apr 15 '24 13:04 TristanCacqueray

The error looks really weird. The interesting files are:

  1. The last time we see haskell.nix in the stack trace: https://github.com/input-output-hk/haskell.nix/blob/83f1cb67cb3c97553815d5562d070ac754c25686/overlays/fetch-source.nix#L37
  2. Declaration of fetch gitlab function: https://github.com/NixOS/nixpkgs/blob/63dacb46bf939521bdc93981b4cbb7ecb58427a0/pkgs/build-support/fetchgitlab/default.nix#L19

In the second file, we can see these lines:

  useFetchGit = fetchSubmodules || leaveDotGit || deepClone || forceFetchGit || (sparseCheckout != []);
  fetcher = if useFetchGit then fetchgit else fetchzip;

And there is explicitly specified fetchSubmodules in the first file. Given that, I'm really surprised to see fetchzip in the rest of the stack trace:

... while calling anonymous lambda
at /nix/store/w34a3j05pqqmsk4y3vbpzbf4klhacx03-source/pkgs/build-support/fetchzip/default.nix:10:1:

I also don't know why it even makes an attempt to fetch GHC 9.10 or 9.11.

It would be better to ask somebody with more solid knowledge of haskell.nix or even create an issue.

s-and-witch avatar Jun 20 '24 13:06 s-and-witch

Well done, thanks @dpwiz !

TristanCacqueray avatar Jun 23 '24 22:06 TristanCacqueray