504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-1 }:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "nimlsp";
|
|
version = "0.4.4";
|
|
|
|
requiredNimVersion = 1;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PMunch";
|
|
repo = "nimlsp";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-Z67iKlL+dnRbxdFt/n/fsUcb2wpZwzPpL/G29jfCaMY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|