diff --git a/pkgs/development/tools/jsonnet-language-server/default.nix b/pkgs/development/tools/jsonnet-language-server/default.nix new file mode 100644 index 000000000000..1bd82f850199 --- /dev/null +++ b/pkgs/development/tools/jsonnet-language-server/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "jsonnet-language-server"; + version = "0.7.2"; + + src = fetchFromGitHub { + owner = "grafana"; + repo = "jsonnet-language-server"; + rev = "v${version}"; + sha256 = "sha256-hI8eGfHC7la52nImg6BaBxdl9oD/J9q3F3+xbsHrn30="; + }; + + vendorSha256 = "sha256-UEQogVVlTVnSRSHH2koyYaR9l50Rn3075opieK5Fu7I="; + + ldflags = [ + "-s -w -X 'main.version=${version}'" + ]; + + meta = with lib; { + homepage = "https://github.com/grafana/jsonnet-language-server"; + description = "Language Server Protocol server for Jsonnet"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ hardselius ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 83dba697c268..b758597249e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18387,6 +18387,8 @@ with pkgs; jsonnet-bundler = callPackage ../development/tools/jsonnet-bundler { }; + jsonnet-language-server = callPackage ../development/tools/jsonnet-language-server { }; + jrsonnet = callPackage ../development/compilers/jrsonnet { }; go-jsonnet = callPackage ../development/compilers/go-jsonnet { };