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
nix develop
throughs error
#653
Comments
Hi, thank you for letting me know! For now, |
I am still not succeeding in building When asking around on the Nix Haskell Matrix channel, I also got the comment that hasktorch follows the "pre nix2.8 approach" which is deprecated, and that "The flake should migrate to use devShells.$system.default instead". I'd be happy to file a PR, but first I need to be able to build the project. |
I just checked, and it is not surprising that GHC8.4.4 is built because it is not anymore cached by IOHK: https://input-output-hk.github.io/haskell.nix/reference/supported-ghc-versions.html. The question is, why is GHC844 needed? |
I think GHC-8.4.4 is needed to build other ghc. It might be ghc-8.10. |
In the first place, I want to use ghc of nixpkgs directly, because ghc is built every time when the version is upgraded. |
For now, I expect that hls can be cached with this PR. |
Hi! Thanks for looking into this. I am still not having any luck. Cloning
and executing |
I've tried stacklock2nix. |
haskell.nix reduces the depth of bootstrap. input-output-hk/haskell.nix#1854 The attempts to use nixpkgs's compiler failed with this branch(https://github.com/hasktorch/hasktorch/blob/feat/haskell-nix-ghc-nixpkgs/flake.nix#L63-L79). This branch does not work with the latest haskell.nix(2023/8/16 1970bb2d5b0eb8152f89b305f32d055dbd6857d9). Haskell.nix is better than stacklock2nix due to the number of maintainers, but I'll go with stacklock2nix. |
Hi! Thanks a lot for working on
hasktorch
, it looks like we do have a nice machine learning library in Haskell!When building
hasktorch
usingnix develop
I had the following problems:Even with substituters and public keys properly set up, more than 1000 Haskell packages have to be built (not GHC, so the caches do work at least somewhat).
After buliding the roughly 1000 packages, the following error is thrown:
(I noticed this weird package naming
name-lib-name-version
. Is this specific tohaskell.nix
?)haskell-nix.custom-tools.haskell-language-server
seems to be set to version1.5.0.0
, which was released in November 2021.Thanks for your help!
The text was updated successfully, but these errors were encountered: