Support installing the KCL language server through Nix/Devbox
Feature Request
Is your feature request related to a problem? Please describe: Currently, KCL itself can be installed through Nix/Devbox, but the language server cannot. Thus, if I'm setting up my own computer, or giving instructions for how to set up a KCL development environment, I need to use two different sources for KCL and the KCL language server. I'd love to be able to only use Devbox.
Describe the feature you'd like: Allow the KCL language server to be installed through Devbox the same way that KCL can be installed.
Related issue https://github.com/kcl-lang/kcl/issues/1169
cc @He1pa
https://github.com/appthrust/kcl-nix
Hello, I find the KCL language server Nix config.
Hi @Peefy , I'd like to work on this issue but I'm not really used to the Nix configs.
To get some clarifications, this is the only part from the provided link which needs to be added right ?
language-server = pkgs.stdenv.mkDerivation rec {
pname = "kcl-language-server";
version = "0.10.8";
src = pkgs.fetchurl {
url = "https://github.com/kcl-lang/kcl/releases/download/v${version}/kclvm-v${version}-${getArch system}.tar.gz";
sha256 = {
x86_64-linux = "0hidyj6ggs3grgaxnpx7ywmblqvdzjd5ilwaym90l38rpxjp6ssb";
aarch64-linux = "05fn7bzq8376144dcxk13f4jjfs7cf72d57z76fh6gc45j37lnvj";
x86_64-darwin = "1yscmcirv9dp97jakcsigj5r3a1yh3hn5lv9mfzbwl2lv6r3z6ga";
aarch64-darwin = "0dvs6kcimy0y7svry5rmifh155imilvv3qmyrw6sxjkg9aggz2vk";
}.${system};
};
installPhase = ''
mkdir -p $out/bin
cp bin/kcl-language-server $out/bin/
'';
};
and then the
in
{
default = {
inherit language-server ;
};
}
??
Hi @slashexx
You can refer here. https://github.com/appthrust/kcl-nix