Open id-adevz opened 1 week ago
package-version-server is language server for package.json
{ programs = { zed-editor = { userSettings = { lsp = { package-version-server = { binary = { path = "package-version-server"; }; };
working idea from a flake:
{ outputs = { self, nixpkgs }: let type = "x86_64-linux"; pkgs = import nixpkgs { inherit type; }; in { packages.${type}.FHS = pkgs.buildFHSUserEnv { name = "package-version-server-fhs"; targetPkgs = pkgs: [ self.packages.${type}.default pkgs.openssl ]; runScript = "${self.packages.${type}.default}/bin/package-version-server"; }; packages.${type}.default = pkgs.stdenv.mkDerivation { pname = "package-version-server"; version = "0.0.6"; src = pkgs.fetchurl { url = "https://github.com/zed-industries/package-version-server/releases/download/v0.0.6/package-version-server-x86_64-unknown-linux-gnu.tar.gz"; sha256 = "sha256-2qy6nYVEiQb+9mZKzT01Bn137xnToVv4ARoBiyiR7RQ="; }; phases = [ "unpackPhase" "installPhase" ]; unpackPhase = '' tar -xvf $src ''; installPhase = '' mkdir -p $out/bin cp package-version-server $out/bin/ chmod +x $out/bin/package-version-server ''; meta = with pkgs; with lib; { description = "Package Version Server binary"; homepage = "https://github.com/zed-industries/package-version-server"; license = licenses.mit; maintainers = with maintainers; [ id-adevz ]; }; }; }; inputs = { nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable"; }; }; description = "Flake for FHS-compatible environment for package-version-server binary"; }
Note for maintainers: Please tag this issue in your PR.
Add a :+1: reaction to issues you find important.
PR: #353527
Project description
package-version-server is language server for package.json
Metadata
working idea from a flake:
Note for maintainers: Please tag this issue in your PR.
Add a :+1: reaction to issues you find important.