Skip to content

Commit

Permalink
fix: choosenim (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Feb 19, 2024
1 parent dcbd9aa commit 7715f86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions anda/langs/nim/choosenim/anda.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "choosenim.spec"
}
Expand Down
16 changes: 7 additions & 9 deletions anda/langs/nim/choosenim/choosenim.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,27 @@ Summary: Easily install and manage multiple versions of the Nim programming lan
License: BSD-3-Clause
URL: https://github.com/dom96/choosenim
Source0: %url/archive/refs/tags/v%version.tar.gz
BuildRequires: nim mold
BuildRequires: nim git

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

%prep
%autosetup -n choosenim-%version
%autosetup

%build
nimble setup -y
nim c -t:-fPIE -l:-pie -d:release -t:"$CFLAGS" -l:"$LDFLAGS" src/choosenim

%install
mold -run nimble build -t:-fPIE -l:-pie
install -Dm755 src/choosenim %buildroot%_bindir/choosenim


%files
%doc readme.md
%license LICENSE
%{_bindir}/choosenim
%_bindir/choosenim

%changelog
* Sat Jun 17 2023 windowsboy111 <[email protected]> - 0.8.4-3
- Use nim to compile instead of prebuilt binaries.

* Mon Jan 9 2023 windowsboy111 <[email protected]> - 0.8.4-1
- Initial Package.
%autochangelog

0 comments on commit 7715f86

Please sign in to comment.