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

Merged
merged 39 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
caf0d43
bump: choosenim
madonuko Aug 29, 2024
1b41064
url
madonuko Aug 29, 2024
cd1bda4
nimble c?
madonuko Aug 29, 2024
f7e8664
koch?
madonuko Aug 29, 2024
bc49751
koch checksums
madonuko Aug 29, 2024
1ce8da6
…dunno?
madonuko Aug 29, 2024
4f6c3f6
Update choosenim.spec
madonuko Aug 29, 2024
9dfb8b8
try --path
madonuko Sep 4, 2024
82af5c1
?
madonuko Sep 4, 2024
f7e8a3b
oops
madonuko Sep 4, 2024
de0b5ad
ls?
madonuko Sep 4, 2024
9e59842
--path
madonuko Sep 4, 2024
c4d98e2
try nimble install instead
madonuko Sep 4, 2024
5d8bef3
no nimble install?
madonuko Sep 4, 2024
6d35431
nimble build?
madonuko Sep 9, 2024
6824e56
--path?
madonuko Sep 9, 2024
52d8a17
?
madonuko Oct 4, 2024
f1ce4ae
anda-srpm-macros
madonuko Oct 4, 2024
41dcc0a
no cd
madonuko Oct 4, 2024
c8e5f5b
Update choosenim.spec
madonuko Oct 4, 2024
30f22c3
0.8.9?
madonuko Oct 4, 2024
8bf5936
idk?
madonuko Oct 4, 2024
68d3c9d
?
madonuko Oct 4, 2024
5e11ded
that kinda means I don't need nim here
madonuko Oct 4, 2024
9dd95bb
try just nimble build
madonuko Oct 4, 2024
1dd2e77
Merge branch 'frawhide' into mado/bump/choosenim
madonuko Oct 4, 2024
ccb9465
use nim macros
madonuko Oct 4, 2024
19f252f
Merge branch 'frawhide' into mado/bump/choosenim
madonuko Oct 5, 2024
9f6461d
Update choosenim.spec
madonuko Oct 5, 2024
ea8cd79
this?
madonuko Oct 5, 2024
092206b
Merge branch 'frawhide' into mado/bump/choosenim
madonuko Oct 5, 2024
d6db301
try official nim build
madonuko Oct 6, 2024
69deca4
try buildconflicts?
madonuko Oct 21, 2024
7a6222f
Merge branch 'mado/bump/choosenim' of github.com:terrapkg/packages in…
madonuko Jan 14, 2025
b37bcbb
Merge branch 'frawhide' into mado/bump/choosenim
madonuko Jan 14, 2025
b0f2ff7
bye firefox the funny
madonuko Jan 14, 2025
d85d101
Merge branch 'mado/bump/choosenim' of github.com:terrapkg/packages in…
madonuko Jan 14, 2025
c120965
Merge branch 'frawhide' into mado/bump/choosenim
madonuko Jan 15, 2025
e3001b2
nimble setup moment?
madonuko Jan 15, 2025
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
24 changes: 17 additions & 7 deletions anda/langs/nim/choosenim/choosenim.spec
Original file line number Diff line number Diff line change
@@ -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 <mado@fyralabs.com>
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
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"));