haskell-language-server: support haskellPackages.ghc.version by default

This commit is contained in:
Alexandre Esteves
2025-01-17 00:48:56 +00:00
committed by sternenseemann
parent 4913c739e9
commit a0141c7665
@@ -9,7 +9,9 @@
# Run
# $ nix-instantiate --eval -E 'with import <nixpkgs> {}; builtins.attrNames pkgs.haskell.packages'
# to list for your nixpkgs version.
supportedGhcVersions ? [ "96" ],
supportedGhcVersions ? [
(lib.strings.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor haskellPackages.ghc.version))
],
# Whether to build hls with the dynamic run-time system.
# See https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html#static-binaries for more information.