From a85cffa8e5dba2d754bdf7184c9d7eb3ef9fd6f5 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sun, 27 Oct 2024 19:52:00 +0000 Subject: [PATCH] nimlsp: build with Nim 2.0.x --- pkgs/by-name/ni/nimlsp/package.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ni/nimlsp/package.nix b/pkgs/by-name/ni/nimlsp/package.nix index 36b9b3d3af01..d9eaa838f7f0 100644 --- a/pkgs/by-name/ni/nimlsp/package.nix +++ b/pkgs/by-name/ni/nimlsp/package.nix @@ -1,6 +1,12 @@ -{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-2 }: +{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-2_0, nim-unwrapped-2_0 }: -buildNimPackage (finalAttrs: { +let + buildNimPackage' = buildNimPackage.override { + # Do not build with Nim-2.2.x. + nim2 = nim-2_0; + }; +in +buildNimPackage' (finalAttrs: { pname = "nimlsp"; version = "0.4.6"; @@ -27,7 +33,7 @@ buildNimPackage (finalAttrs: { nimFlags = [ "--threads:on" - "-d:explicitSourcePath=${srcOnly nim-unwrapped-2}" + "-d:explicitSourcePath=${srcOnly nim-unwrapped-2_0}" "-d:tempDir=/tmp" ];