Closed lf- closed 3 years ago
The issue here is, that that commit bumped the base and base-noprelude version we use (because it bumps default ghc to 8.8).
I am not sure, but I think a fix for this would be to override base-noprelude to 4.12.0.0 in pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
Alternatively, if possible we may want to just raise pandoc to compile with ghc-8.8.
I think this issue is about pandoc being broken with ghc 8.6.5. I think the normal nixpkgs pandoc is already build with 8.8. at least I can install it without issue.
@maralorn Aaah, that makes sense. Thanks for the clarification.
@lf- In that case, you should be aware that the support for various Haskell packages not on the current main Haskell compiler can be very spotty.
For instance, the current main Haskell compiler is GHC-8.8. As @maralorn said, Pandoc is built with GHC-8.8, but it may not be working on GHC-8.10, GHC-8.6, etc.
If you'd like to build Pandoc with an older GHC, I suggest you just use an older version of Nixpkgs, where the main GHC is older.
@cdepillabout I'd like to, but there are some dependency issues such that nixpkgs Haskell is overall more broken on ghc 8.8, for my project at least, with more dependency conflicts, mostly relating to base versions. And I want Haskell language server for productivity reasons, which is why I was trying to upgrade nixpkgs.
The haskell-updates
branch has now been updated to Stackage Nightly, which is currently using ghc-8.10.2.
Given that it hasn't been fixed, I don't think it is likely that anyone will look into getting pandoc building on the old ghc-8.6.5. If you need pandoc building with an old GHC, I suggest you just use an old version of nixpkgs.
@cdepillabout yeah, the update on that is we migrated to GHC8.8, with some suffering from Pandoc changes, and are holding back the ghcjs components to nixos-20.03 [which we intend on moving forward but haven't had time] :)
so it's all good on our end.
Describe the bug The build for
nixpkgs.haskell.packages.ghc865.base-noprelude
is broken, also breaking pandoc. It is not broken on thenixos-20.03
branch.This regression appears to have happened in ea1aae15ae62c59641cfb84f1138a8a0d3b365e2.
git bisect run nix-build . -A haskell.packages.ghc865.base-noprelude
Fail log
To Reproduce Steps to reproduce the behavior:
nix-build -A haskell.packages.ghc865.base-noprelude
Expected behavior Package should build.
Additional context This broke the build for
pandoc
and probably many other packages.Notify maintainers
@peti
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 4.19.104-microsoft-standard, Arch Linux, noversion
no
yes
nix-env (Nix) 2.3.7
"nixpkgs-20.09pre239330.beb9180019b"
/home/jade/.nix-defexpr/channels/nixpkgs
Maintainer information: