From 7172b204f93ec6cc5eb09a43d0e3b02ccdfda3da Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 15 Jan 2025 08:25:46 -0800 Subject: [PATCH] bump: choosenim (#2017) (#3005) (cherry picked from commit 650abcf67e11fbe4decbe47f23d8d3f0e92bd9ee) Co-authored-by: madomado --- anda/langs/nim/choosenim/choosenim.spec | 24 +++++++++++++++++------- anda/langs/nim/choosenim/update.rhai | 2 +- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/anda/langs/nim/choosenim/choosenim.spec b/anda/langs/nim/choosenim/choosenim.spec index da60b61965..19d31c5bae 100644 --- a/anda/langs/nim/choosenim/choosenim.spec +++ b/anda/langs/nim/choosenim/choosenim.spec @@ -1,22 +1,32 @@ + Name: choosenim -Version: 0.8.4 +Version: 0.8.9 Release: 1%?dist Summary: Easily install and manage multiple versions of the Nim programming language License: BSD-3-Clause -URL: https://github.com/dom96/choosenim -Source0: %url/archive/refs/tags/v%version.tar.gz -BuildRequires: nim git +URL: https://github.com/nim-lang/choosenim +Source0: %url/archive/refs/tags/v%version.tar.gz +# Fix for https://github.com/nim-lang/choosenim/issues/13 +Patch0: https://patch-diff.githubusercontent.com/raw/nim-lang/choosenim/pull/38.patch +Packager: madonuko +BuildRequires: nim +BuildRequires: git-core anda-srpm-macros %description choosenim installs the Nim programming language from official downloads and sources, enabling you to easily switch between stable and development compilers. %prep -%autosetup +%autosetup -p1 +#? https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=choosenim +# we compile proxyexe in a separate step +sed -i -e '/static: compileProxyexe()/d' src/choosenimpkg/switcher.nim +%nim_prep %build -nimble setup -y -nim c -t:-fPIE -l:-pie -d:release -t:"$CFLAGS" -l:"$LDFLAGS" src/choosenim +%nim_c -p:/usr/lib/nim/dist/nimble/src/ -p:`pwd` src/choosenimpkg/proxyexe +strip src/choosenimpkg/proxyexe +%nim_c -p:/usr/lib/nim/dist/nimble/src/ -p:`pwd` src/choosenim %install install -Dm755 src/choosenim %buildroot%_bindir/choosenim diff --git a/anda/langs/nim/choosenim/update.rhai b/anda/langs/nim/choosenim/update.rhai index 06b3e87387..6cc4e85559 100644 --- a/anda/langs/nim/choosenim/update.rhai +++ b/anda/langs/nim/choosenim/update.rhai @@ -1 +1 @@ -rpm.version(gh("dom96/choosenim")); +rpm.version(gh("nim-lang/choosenim"));