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

[f39] add: nph (#2016) #2027

Merged
merged 1 commit into from
Aug 29, 2024
Merged
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/nph/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "nph.spec"
}
}
31 changes: 31 additions & 0 deletions anda/langs/nim/nph/nph.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%define debug_package %nil

Name: nph
Version: 0.6.0
Release: 1%?dist
Summary: An opinionated code formatter for Nim
License: MIT
URL: https://github.com/arnetheduck/nph
Source0: %url/archive/refs/tags/v%version.tar.gz
SourceLicense: MIT
Packager: madonuko <[email protected]>
BuildRequires: anda-srpm-macros
BuildRequires: nim

%description
nph is an opinionated source code formatter for the Nim language, aiming to take the drudgery of manual formatting out of your coding day.

%prep
%autosetup
%nim_prep -t:"%nim_tflags" -l:"%nim_lflags"

%build
nimble c -d:release -t:"%nim_tflags" -l:"%nim_lflags" src/nph

%install
install -Dpm755 src/nph %buildroot%_bindir/nph

%files
%_bindir/nph
%license copying.txt
%doc README.md
1 change: 1 addition & 0 deletions anda/langs/nim/nph/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("arnetheduck/nph"));
Loading