Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, nimPackages, fetchFromGitHub, srcOnly, nim }:
2
3nimPackages.buildNimPackage rec {
4 pname = "nimlsp";
5 version = "0.4.4";
6 nimBinOnly = true;
7
8 src = fetchFromGitHub {
9 owner = "PMunch";
10 repo = "nimlsp";
11 rev = "v${version}";
12 sha256 = "sha256-Z67iKlL+dnRbxdFt/n/fsUcb2wpZwzPpL/G29jfCaMY=";
13 };
14
15 buildInputs = with nimPackages; [ jsonschema asynctools ];
16
17 nimFlags = [
18 "--threads:on"
19 "-d:explicitSourcePath=${srcOnly nimPackages.nim.passthru.nim}"
20 "-d:tempDir=/tmp"
21 ];
22
23 nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
24
25 meta = with lib; {
26 description = "Language Server Protocol implementation for Nim";
27 homepage = "https://github.com/PMunch/nimlsp";
28 license = licenses.mit;
29 platforms = nim.meta.platforms;
30 maintainers = [ maintainers.marsam ];
31 };
32}