1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7 nix-update-script,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "package-version-server";
12 version = "0.0.7";
13
14 src = fetchFromGitHub {
15 owner = "zed-industries";
16 repo = "package-version-server";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-/YyJ8+tKrNKVrN+F/oHgtExBBRatIIOvWr9mAyTHA3E=";
19 };
20
21 cargoHash = "sha256-/t1GPdb/zXe0pKeG/A4FKjKFFZ0zy2nT2PV8nxenKXc=";
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [ openssl ];
26
27 passthru = {
28 updateScript = nix-update-script { };
29 };
30
31 doCheck = lib.versionAtLeast version "0.0.8";
32
33 meta = {
34 description = "Language server that handles hover information in package.json files";
35 homepage = "https://github.com/zed-industries/package-version-server/";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ felixdorn ];
38 mainProgram = "package-version-server";
39 };
40}