Package Details: choosenim 0.8.9-1

Git Clone URL: https://aur.archlinux.org/choosenim.git (read-only, click to copy)
Package Base: choosenim
Description: Installs different versions of Nim compiler and tools and switches between them
Upstream URL: https://github.com/nim-lang/choosenim
Keywords: nim
Licenses: BSD-3-Clause
Conflicts: nim
Provides: nim, nimble, nimgrep, nimpretty, nimsuggest
Submitter: 0x647262
Maintainer: SpotlightKid
Last Packager: SpotlightKid
Votes: 10
Popularity: 0.46
First Submitted: 2019-05-15 05:11 (UTC)
Last Updated: 2024-10-02 13:29 (UTC)

Dependencies (5)

Required by (76)

Sources (3)

Pinned Comments

SpotlightKid commented on 2024-09-22 08:57 (UTC)

This package now is built using the official Nim binary distribution for x86_64, so no previous Nim installation is needed to bootstrap.

Latest Comments

1 2 Next › Last »

SpotlightKid commented on 2024-09-22 08:57 (UTC)

This package now is built using the official Nim binary distribution for x86_64, so no previous Nim installation is needed to bootstrap.

SpotlightKid commented on 2024-09-19 10:33 (UTC) (edited on 2024-09-19 10:34 (UTC) by SpotlightKid)

No, they have to be added to the Arch Nim installation. That's a task for the extra/nim package maintainer. I'm in the process of putting together a summary of the problems with the package and filing an issue.

xiota commented on 2024-09-19 10:30 (UTC)

Thanks for follow up. Any chance those could be added to this package? Otherwise, it doesn't work in clean chroot.

SpotlightKid commented on 2024-09-19 10:15 (UTC) (edited on 2024-09-19 10:21 (UTC) by SpotlightKid)

@xiota: sorry, I thought I had tested this, but I still had Nim 2.0.8 installed by choosenim in my ~/.nimble/bin dir, which I have in the $PATH.

TL;DR: Arch nim package is broken, use https://nim-lang.org/install_unix.html or curl https://nim-lang.org/choosenim/init.sh -sSf | sh to bootstrap the Nim installation for your user and then build and use this package for further updates.

I now tested with extra/nim == 2.0.8-1 and can reproduce the error. Unfortunately, the Arch nim package is broken in several ways. For one, it is missing all the files in the dist directory the official Nim binary distribution contains and installs in the <prefix>/lib/nim` directory. Another problem (which doesn't affect us here, though, I think) is that several nim tools assume that some library files live next to the binaries, which isn't the case in an Arch Linux install, which tries to follow FHS.

Some of these issues have been reported here:

https://gitlab.archlinux.org/archlinux/packaging/packages/nim/-/issues

Some have been reported upstream or are being discussed on the Nim forum, e.g. here:

https://forum.nim-lang.org/t/11723

Unfortunately, the upstream maintainer isn't very sympathetic towards these reports and the underlying issues are getting fixed only very slowly, if at all.

I'll investigate whether it makes sense and is feasible to download a Nim binary build to build this package. I also will try to get the choosenim-bin package updated.

SpotlightKid commented on 2024-09-18 22:52 (UTC) (edited on 2024-09-18 22:58 (UTC) by SpotlightKid)

@xiota: works here. which version of Nim are you using to build?

Maybe related?: https://forum.nim-lang.org/t/12465#76824

So, if you use the Nim develchannel, i.e. used choosenim devel, make sure you update with choosenim update devel.

xiota commented on 2024-09-18 22:41 (UTC) (edited on 2024-09-19 10:28 (UTC) by xiota)

Fails to build. Problem seems to be with extra/nim 2.0.8-1, removal of dist module without updating references?

 Installing nimble@0.14.2
   Building nimble/nimble using c backend
/usr/lib/nim/compiler/nimblecmd.nim(18, 39) Error: cannot open file: ../dist/checksums/src/checksums/sha1

Edit: Add version info.

SpotlightKid commented on 2024-08-21 13:35 (UTC)

@Indiscipline: now that nim-lang.org has released version 0.8.5 I think it is indeed time to switch. An announcement is still missing, though, and I just posted on the Nim forum about that.

Indiscipline commented on 2024-08-21 12:59 (UTC)

@SpotlightKid the links on the official site have been recently switched. I don't think we'll get more official announcement.

SpotlightKid commented on 2024-08-15 10:57 (UTC)

@awe00: I'll do that when the fork gets officially announced (afaik it's still unofficial) and gets a release.