Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump haskell.nix #201

Merged
merged 4 commits into from
Jun 23, 2024
Merged

Bump haskell.nix #201

merged 4 commits into from
Jun 23, 2024

Conversation

dpwiz
Copy link
Member

@dpwiz dpwiz commented Apr 13, 2024

No description provided.

@TristanCacqueray
Copy link
Contributor

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?

@s-and-witch
Copy link

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.

@dpwiz dpwiz enabled auto-merge (squash) June 23, 2024 19:11
@dpwiz dpwiz merged commit 92a3cc5 into main Jun 23, 2024
2 checks passed
@dpwiz dpwiz deleted the nix-20240413 branch June 23, 2024 19:42
@TristanCacqueray
Copy link
Contributor

Well done, thanks @dpwiz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants