Closed yvan-sraka closed 1 year ago
Last night I helped a friend get setup using GHC via devenv.sh.
We used this devenv.nix
file (that works for me):
{ pkgs, ... }:
{
packages = [ pkgs.ghc
pkgs.git
pkgs.haskell-language-server
pkgs.hlint
pkgs.stylish-haskell
];
languages.haskell.enable = true;
languages.nix.enable = true;
}
We got the "ormolu cycle". Ugh.
In our case, the workaround was for me to have him delete his devenv.lock
file and replace it with mine (which points to older stuff).
But this means anyone trying GHC via devenv is going to hit this. Not a good first look.
This has been fixed :)
Steps To Reproduce
nix-shell -p ormolu
with currentnixpkgs-unstable
, will produce error:Build log
https://gist.github.com/c0207dde2cda91d1883fb6c1e4815b2a
Additional context
The content of
/nix/store/mn4cj42d5b99i1iky0k6z0iq0m8jwrix-ormolu-0.5.0.1.drv
produced.Notify maintainers
Cross-posted here: https://github.com/tweag/ormolu/issues/965
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.