Merge pull request #317108 from xTrayambak/nimlsp-use-nim2

nimlsp: compile against Nim 2.0.x instead of Nim 1.6.x
This commit is contained in:
Weijia Wang 2024-06-08 23:24:14 +02:00 committed by GitHub
commit 63874868ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View File

@ -22520,6 +22520,11 @@
githubId = 46590321;
name = "xrelkd";
};
xtrayambak = {
github = "xTrayambak";
githubId = 59499552;
name = "Trayambak Rai";
};
xurei = {
email = "olivier.bourdoux@gmail.com";
github = "xurei";

View File

@ -1,11 +1,9 @@
{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-1 }:
{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-2 }:
buildNimPackage (finalAttrs: {
pname = "nimlsp";
version = "0.4.6";
requiredNimVersion = 1;
src = fetchFromGitHub {
owner = "PMunch";
repo = "nimlsp";
@ -29,7 +27,7 @@ buildNimPackage (finalAttrs: {
nimFlags = [
"--threads:on"
"-d:explicitSourcePath=${srcOnly nim-unwrapped-1}"
"-d:explicitSourcePath=${srcOnly nim-unwrapped-2}"
"-d:tempDir=/tmp"
];
@ -41,6 +39,6 @@ buildNimPackage (finalAttrs: {
description = "Language Server Protocol implementation for Nim";
homepage = "https://github.com/PMunch/nimlsp";
license = lib.licenses.mit;
maintainers = [ ];
maintainers = with lib.maintainers; [ xtrayambak ];
};
})