Merge pull request #333701 from ck3d/fix-bash-language-server

bash-language-server: fix broken package
This commit is contained in:
Doron Behar
2024-08-10 22:13:48 +00:00
committed by GitHub
@@ -5,6 +5,7 @@
, nodejs
, makeBinaryWrapper
, shellcheck
, versionCheckHook
}:
stdenv.mkDerivation (finalAttrs: {
@@ -28,11 +29,12 @@ stdenv.mkDerivation (finalAttrs: {
nodejs
pnpm_8.configHook
makeBinaryWrapper
versionCheckHook
];
buildPhase = ''
runHook preBuild
pnpm --filter=bash-language-server build
pnpm compile server
runHook postBuild
'';
@@ -53,13 +55,15 @@ stdenv.mkDerivation (finalAttrs: {
# Create the executable, based upon what happens in npmHooks.npmInstallHook
makeWrapper ${lib.getExe nodejs} $out/bin/bash-language-server \
--prefix PATH : ${lib.makeBinPath [ shellcheck ]} \
--suffix PATH : ${lib.makeBinPath [ shellcheck ]} \
--inherit-argv0 \
--add-flags $out/lib/bash-language-server/out/cli.js
runHook postInstall
'';
doInstallCheck = true;
meta = with lib; {
description = "A language server for Bash";
homepage = "https://github.com/bash-lsp/bash-language-server";