depot/third_party/nixpkgs/pkgs/development/tools/misc/nimlsp/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

32 lines
834 B
Nix

{ lib, nimPackages, fetchFromGitHub, srcOnly, nim }:
nimPackages.buildNimPackage rec {
pname = "nimlsp";
version = "0.4.1";
nimBinOnly = true;
src = fetchFromGitHub {
owner = "PMunch";
repo = "nimlsp";
rev = "v${version}";
sha256 = "sha256-LAtUGhYEcOwvZzexQ2y3/HPgOge2EsScCbujJ/hz5Ec=";
};
buildInputs = with nimPackages; [ jsonschema ];
nimFlags = [
"--threads:on"
"-d:explicitSourcePath=${srcOnly nimPackages.nim.passthru.nim}"
"-d:tempDir=/tmp"
];
nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
meta = with lib; {
description = "Language Server Protocol implementation for Nim";
homepage = "https://github.com/PMunch/nimlsp";
license = licenses.mit;
platforms = nim.meta.platforms;
maintainers = [ maintainers.marsam ];
};
}