The ebuild uses a strange installation folder: exeinto /usr/nim/bin
It's how nim keeps things locally and installs them in system: /usr/nim/bin/nim Basically nim uses --prefix=/usr/nim/ The problem is build system does not install al binaries it builds: bug #631512 Does it cause any problems?
I think this violates the Filesystem Hierarchy Standard. Technically it could also install in /etc or /sbin but I do not know which side effects will show up for the user. It should install its executable to /usr/bin/nim Perhaps this needs to be fixed upstream too. https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
WRT FHS gentoo explicitly does not conform to FHS (at least it used not to): https://devmanual.gentoo.org/general-concepts/filesystem/index.html "Gentoo does not consider the Filesystem Hierarchy Standard to be an authoritative standard, although much of our policy coincides with it." It's also not clear to me if nim violates it by using directories not described by standard. Many projects dump their state in /usr/lib/<something> directly. Be it executables, configs or libraries. Say, ghc installs as a whole into /usr/lib/ghc-8.0.2. Or go dumps almost everything into /usr/lib/go I don't think gentoo has any more guidelines than above to steer upstream directory hierarchy into any direction.
I just realized /usr/nim/ and /usr/lib/nim/. I'll try to fix it in 0.19.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7617f03216587b94eec6c655202d27efdef238f4 commit 7617f03216587b94eec6c655202d27efdef238f4 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-09-26 23:31:48 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-09-26 23:32:22 +0000 dev-lang/nim: bump up to 0.19.0, bug #635032 While at it move installation to /usr/ prefix. Reported-by: Jonas Stein Closes: https://bugs.gentoo.org/635032 Package-Manager: Portage-2.3.50, Repoman-2.3.11 dev-lang/nim/Manifest | 1 + dev-lang/nim/files/nim-0.19.0-paths.patch | 36 ++++++++++++++ dev-lang/nim/nim-0.19.0.ebuild | 79 +++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+)