dear-imgui.hs
dear-imgui.hs copied to clipboard
Bump haskell.nix
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?
The error looks really weird. The interesting files are:
- 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 - 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.
Well done, thanks @dpwiz !