nimlsp: compile against Nim 2.x instead of Nim 1.6.x

This commit is contained in:
xTrayambak 2024-06-06 11:42:35 +05:30
parent c506b537db
commit 9b96207fa8

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 ];
};
})