Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump: choosenim #2017

Open
wants to merge 32 commits into
base: frawhide
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions anda/langs/nim/choosenim/choosenim.spec
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
%global nimver %(curl -sSL https://nim-lang.org/channels/stable | xargs)

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
Source1: https://nim-lang.org/download/nim-%nimver-linux_x64.tar.xz
Packager: madonuko <[email protected]>
BuildRequires: git-core anda-srpm-macros
BuildConflicts: nim nim-tools
#BuildRequires: nim nim-tools

%description
choosenim installs the Nim programming language from official downloads and
sources, enabling you to easily switch between stable and development compilers.

%prep
%autosetup
tar -xvJf %SOURCE1

%build
nimble setup -y
nim c -t:-fPIE -l:-pie -d:release -t:"$CFLAGS" -l:"$LDFLAGS" src/choosenim
NIMPATH=`pwd`/nim-%nimver/bin
PATH=$PATH:$NIMPATH
%nim_c src/choosenim

%install
install -Dm755 src/choosenim %buildroot%_bindir/choosenim
Expand Down
2 changes: 1 addition & 1 deletion anda/langs/nim/choosenim/update.rhai
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rpm.version(gh("dom96/choosenim"));
rpm.version(gh("nim-lang/choosenim"));
Loading