2021-09-23 15:35:13 +00:00
|
|
|
{ lib, nimPackages, fetchFromGitHub, srcOnly, nim }:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
nimPackages.buildNimPackage rec {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "nimlsp";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.4.4";
|
2021-09-23 15:35:13 +00:00
|
|
|
nimBinOnly = true;
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PMunch";
|
|
|
|
repo = "nimlsp";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-Z67iKlL+dnRbxdFt/n/fsUcb2wpZwzPpL/G29jfCaMY=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = with nimPackages; [ jsonschema asynctools ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
nimFlags = [
|
|
|
|
"--threads:on"
|
|
|
|
"-d:explicitSourcePath=${srcOnly nimPackages.nim.passthru.nim}"
|
|
|
|
"-d:tempDir=/tmp"
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Language Server Protocol implementation for Nim";
|
|
|
|
homepage = "https://github.com/PMunch/nimlsp";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = nim.meta.platforms;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|