Skip to content

Commit

Permalink
add: nph (#2016)
Browse files Browse the repository at this point in the history
* add: nph

* nim

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Aug 29, 2024
1 parent 03a3662 commit 8074e4a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
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"));

0 comments on commit 8074e4a

Please sign in to comment.