2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-1 }:
|
|
|
|
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
|
|
pname = "nimlsp";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.4.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
requiredNimVersion = 1;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PMunch";
|
|
|
|
repo = "nimlsp";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-MCtpCx8jMQp0VXuMowh69d1DQreU5cDftBf0lww7PUM=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lockFile = ./lock.json;
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
let
|
|
|
|
# Needs this specific version to build.
|
|
|
|
jsonSchemaSrc = fetchFromGitHub {
|
|
|
|
owner = "PMunch";
|
|
|
|
repo = "jsonschema";
|
|
|
|
rev = "7b41c03e3e1a487d5a8f6b940ca8e764dc2cbabf";
|
|
|
|
sha256 = "1js64jqd854yjladxvnylij4rsz7212k31ks541pqrdzm6hpblbz";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
[ jsonSchemaSrc ];
|
|
|
|
|
|
|
|
nimFlags = [
|
|
|
|
"--threads:on"
|
|
|
|
"-d:explicitSourcePath=${srcOnly nim-unwrapped-1}"
|
|
|
|
"-d:tempDir=/tmp"
|
|
|
|
];
|
|
|
|
|
|
|
|
nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Language Server Protocol implementation for Nim";
|
|
|
|
homepage = "https://github.com/PMunch/nimlsp";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.marsam ];
|
|
|
|
};
|
|
|
|
})
|