Closed jmatsushita closed 2 years ago
This is the way to add hls:
shellExtBuildInputs = {pkgs}: with pkgs; [
haskellPackages.haskell-language-server
];
Ah ok I understand now, thanks! How about with the hls flake in my first example?
My guess was that it should be something like this:
shellExtBuildInputs = {pkgs}: with pkgs; [
hls.packages.${pkgs.system}.default
];
But in that particular case it fails with an error:
attribute 'ormolu_0_4_0_0' missing
Hi,
I'm wondering if it's possible to use the hls flake with
shellExtBuildInputs
:This fails with
error: Dependency is not of a valid type: element 3 of buildInputs for ghc-shell-for-packages-0
I also couldn't use it with the non-flake package after the breaking change in https://github.com/ivanovs-4/haskell-flake-utils/pull/4
Before that I could do:
Maybe with the new API you suggested https://github.com/ivanovs-4/haskell-flake-utils/issues/2#issuecomment-1138755328 it would work well since we would have
pkgs
available to us?