From feb9a3849497cffca0dfc142c580f3337957871c Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 3 Jun 2025 14:13:52 +0200 Subject: [PATCH] nim, revbump, use nodejs20 and add upstream patch for nimble (#12467) --- dev-lang/nim/nim-2.2.4.recipe | 7 ++++--- dev-lang/nim/patches/nim-2.2.4.patchset | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 dev-lang/nim/patches/nim-2.2.4.patchset diff --git a/dev-lang/nim/nim-2.2.4.recipe b/dev-lang/nim/nim-2.2.4.recipe index 9df6f50e5..5258e2446 100644 --- a/dev-lang/nim/nim-2.2.4.recipe +++ b/dev-lang/nim/nim-2.2.4.recipe @@ -12,10 +12,11 @@ HOMEPAGE="https://nim-lang.org/" COPYRIGHT="2006-2024 Andreas Rumpf 2017-2024 Nim contributors" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="https://nim-lang.org/download/nim-$portVersion.tar.xz" SOURCE_DIR="nim-$portVersion" CHECKSUM_SHA256="f82b419750fcce561f3f897a0486b180186845d76fb5d99f248ce166108189c7" +PATCHES="nim-$portVersion.patchset" ADDITIONAL_FILES=" config.nims nim.rdef.in @@ -65,7 +66,7 @@ BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libpcre$secondaryArchSuffix >= 1 cmd:git - cmd:node >= 16 + cmd:node >= 20 " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix @@ -75,7 +76,7 @@ BUILD_PREREQUIRES=" TEST_REQUIRES=" lib:libcrypto$secondaryArchSuffix lib:libgc$secondaryArchSuffix - cmd:node >= 16 + cmd:node >= 20 " BUILD() diff --git a/dev-lang/nim/patches/nim-2.2.4.patchset b/dev-lang/nim/patches/nim-2.2.4.patchset new file mode 100644 index 000000000..ac9bd0f24 --- /dev/null +++ b/dev-lang/nim/patches/nim-2.2.4.patchset @@ -0,0 +1,22 @@ +From ac12649151df3f5397fb47bbac4755f6b629be16 Mon Sep 17 00:00:00 2001 +From: Al Hoang <13622+hoanga@users.noreply.github.com> +Date: Mon, 19 May 2025 04:18:55 +0000 +Subject: add haiku to os options + + +diff --git a/dist/nimble/src/nimblepkg/downloadnim.nim b/dist/nimble/src/nimblepkg/downloadnim.nim +index 03614ff..6ef5c26 100644 +--- a/dist/nimble/src/nimblepkg/downloadnim.nim ++++ b/dist/nimble/src/nimblepkg/downloadnim.nim +@@ -140,6 +140,8 @@ proc getNightliesUrl*(parsedContents: JsonNode, arch: int): (string, string) = + "osx" + elif defined(freebsd): + "freebsd" ++ elif defined(haiku): ++ "haiku" + for jn in parsedContents.getElems(): + if jn["name"].getStr().contains("devel"): + let tagName = jn{"tag_name"}.getStr("") +-- +2.48.1 +