diff options
author | maralorn <mail@maralorn.de> | 2022-11-24 15:32:05 +0100 |
---|---|---|
committer | maralorn <mail@maralorn.de> | 2022-11-24 15:32:48 +0100 |
commit | ca3fb231997ff2e3d181bde1a776b6e34ffec5bf (patch) | |
tree | 3d787af3027fdac728c3246ca6c6d424e3e152ee /pkgs/development/tools/haskell | |
parent | 1d8f8eaf380f7c6bff3564bf6288f906a8646b53 (diff) |
haskell-language-server: Update wrapper to ghc 92 and don‘t provide version less executable
Diffstat (limited to 'pkgs/development/tools/haskell')
-rw-r--r-- | pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix b/pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix index e7ba49fa68dc0..48a473be169b3 100644 --- a/pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix +++ b/pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix @@ -1,6 +1,6 @@ { lib , stdenv -, supportedGhcVersions ? [ "90" ] +, supportedGhcVersions ? [ "92" ] , dynamic ? true , haskellPackages , haskell @@ -40,23 +40,21 @@ let "ln -s ${ tunedHls (getPackages version) }/bin/haskell-language-server $out/bin/${x}") (targets version); - pkg = tunedHls haskellPackages; -in stdenv.mkDerivation { +in assert supportedGhcVersions != []; stdenv.mkDerivation { pname = "haskell-language-server"; version = haskellPackages.haskell-language-server.version; buildCommand = '' mkdir -p $out/bin - ln -s ${pkg}/bin/haskell-language-server $out/bin/haskell-language-server - ln -s ${pkg}/bin/haskell-language-server-wrapper $out/bin/haskell-language-server-wrapper + ln -s ${tunedHls (getPackages (builtins.head supportedGhcVersions))}/bin/haskell-language-server-wrapper $out/bin/haskell-language-server-wrapper ${concatMapStringsSep "\n" makeSymlinks supportedGhcVersions} ''; meta = haskellPackages.haskell-language-server.meta // { maintainers = [ lib.maintainers.maralorn ]; longDescription = '' - This package provides haskell-language-server, haskell-language-server-wrapper, ${ + This package provides the executables ${ concatMapStringsSep ", " (x: concatStringsSep ", " (targets x)) supportedGhcVersions - }. + } and haskell-language-server-wrapper. You can choose for which ghc versions to install hls with pkgs.haskell-language-server.override { supportedGhcVersions = [ "90" "92" ]; }. ''; }; |