2021-09-02 16:24:10 +00:00
|
|
|
{ lib, nimPackages, fetchFromGitHub, srcOnly, nim }:
|
2021-01-06 04:20:00 +00:00
|
|
|
|
2021-09-02 16:24:10 +00:00
|
|
|
nimPackages.buildNimPackage rec {
|
2021-01-06 04:20:00 +00:00
|
|
|
pname = "nimlsp";
|
2021-05-06 04:20:00 +00:00
|
|
|
version = "0.3.2";
|
2021-09-02 16:24:10 +00:00
|
|
|
nimBinOnly = true;
|
2021-01-06 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PMunch";
|
|
|
|
repo = "nimlsp";
|
|
|
|
rev = "v${version}";
|
2021-05-06 04:20:00 +00:00
|
|
|
sha256 = "1lm823nvpp3bj9527jd8n1jxh6y8p8ngkfkj91p94m7ffai6jazq";
|
2021-01-06 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-09-02 16:24:10 +00:00
|
|
|
buildInputs = with nimPackages; [ astpatternmatching jsonschema ];
|
2021-01-06 04:20:00 +00:00
|
|
|
|
2021-09-02 16:24:10 +00:00
|
|
|
nimFlags = [
|
|
|
|
"--threads:on"
|
|
|
|
"-d:explicitSourcePath=${srcOnly nimPackages.nim.passthru.nim}"
|
|
|
|
"-d:tempDir=/tmp"
|
|
|
|
];
|
2021-01-06 04:20:00 +00:00
|
|
|
|
2021-09-02 16:24:10 +00:00
|
|
|
nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
|
2021-01-06 04:20:00 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2021-01-06 04:20:00 +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 ];
|
|
|
|
};
|
|
|
|
}
|