depot/third_party/nixpkgs/pkgs/by-name/ni/nimlsp/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
1.1 KiB
Nix

{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-2 }:
buildNimPackage (finalAttrs: {
pname = "nimlsp";
version = "0.4.6";
src = fetchFromGitHub {
owner = "PMunch";
repo = "nimlsp";
rev = "v${finalAttrs.version}";
hash = "sha256-MCtpCx8jMQp0VXuMowh69d1DQreU5cDftBf0lww7PUM=";
};
lockFile = ./lock.json;
buildInputs =
let
# Needs this specific version to build.
jsonSchemaSrc = fetchFromGitHub {
owner = "PMunch";
repo = "jsonschema";
rev = "7b41c03e3e1a487d5a8f6b940ca8e764dc2cbabf";
sha256 = "1js64jqd854yjladxvnylij4rsz7212k31ks541pqrdzm6hpblbz";
};
in
[ jsonSchemaSrc ];
nimFlags = [
"--threads:on"
"-d:explicitSourcePath=${srcOnly nim-unwrapped-2}"
"-d:tempDir=/tmp"
];
nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
doCheck = false;
meta = {
description = "Language Server Protocol implementation for Nim";
homepage = "https://github.com/PMunch/nimlsp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ xtrayambak ];
};
})