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

add: nimble #3960

Open
wants to merge 3 commits into
base: frawhide
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions anda/langs/nim/nimble/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "nimble.spec"
}
}
File renamed without changes.
35 changes: 35 additions & 0 deletions anda/langs/nim/nimble/nimble.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Name: nimble
Version: 0.14.2
Release: 1%?dist
Summary: Package manager for the Nim programming language
License: BSD
URL: https://github.com/nim-lang/nimble
Source0: %url/archive/refs/tags/v%version.tar.gz
Source1: nimble.1
# We use `nim` to get `nimble`… to build `nimble`
BuildRequires: nim anda-srpm-macros git-core rpm_macro(bash_completions_dir)
Conflicts: nim

%description
%summary.

%prep
%autosetup
%nim_prep

%build
%nim_build src/nimble

%install
install -Dpm755 src/nimble %buildroot%_bindir/nimble
install -Dpm644 -t%buildroot%_mandir/man1 %SOURCE1
install -Dpm644 nimble.bash-completion %buildroot%bash_completions_dir/nimble
install -Dpm644 nimble.zsh-completion %buildroot%zsh_completions_dir/_nimble.zsh

%files
%doc readme.markdown
%license license.txt
%_bindir/nimble
%_mandir/man1/nimble.1
%bash_completions_dir/nimble
%zsh_completions_dir/_nimble.zsh
1 change: 1 addition & 0 deletions anda/langs/nim/nimble/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("nim-lang/nimble"));
Loading