nixpkgs/pkgs/development/tools/misc/nimlsp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
834 B
Nix
Raw Normal View History

2021-09-02 16:24:10 +00:00
{ lib, nimPackages, fetchFromGitHub, srcOnly, nim }:
2021-09-02 16:24:10 +00:00
nimPackages.buildNimPackage rec {
pname = "nimlsp";
2022-07-29 02:19:15 +00:00
version = "0.4.1";
2021-09-02 16:24:10 +00:00
nimBinOnly = true;
src = fetchFromGitHub {
owner = "PMunch";
repo = "nimlsp";
rev = "v${version}";
2022-07-29 02:19:15 +00:00
sha256 = "sha256-LAtUGhYEcOwvZzexQ2y3/HPgOge2EsScCbujJ/hz5Ec=";
};
2022-02-19 04:20:00 +00:00
buildInputs = with nimPackages; [ jsonschema ];
2021-09-02 16:24:10 +00:00
nimFlags = [
"--threads:on"
"-d:explicitSourcePath=${srcOnly nimPackages.nim.passthru.nim}"
"-d:tempDir=/tmp"
];
2021-09-02 16:24:10 +00:00
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 ];
};
}