From 618043c125b0e9df59ec1fad1bde46877aa8a5a8 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 20 Nov 2024 17:08:54 -0600 Subject: [PATCH] nph: fix build with nim-2.0 --- pkgs/by-name/np/nph/package.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/np/nph/package.nix b/pkgs/by-name/np/nph/package.nix index 897b84d7980a..5535ce9f4085 100644 --- a/pkgs/by-name/np/nph/package.nix +++ b/pkgs/by-name/np/nph/package.nix @@ -1,10 +1,16 @@ { lib, - buildNimPackage, fetchFromGitHub, + buildNimPackage, + nim-2_0, }: - -buildNimPackage (finalAttrs: { +let + buildNimPackage' = buildNimPackage.override { + # Do not build with Nim-2.2.x. + nim2 = nim-2_0; + }; +in +buildNimPackage' (finalAttrs: { pname = "nph"; version = "0.6.0";