Skip to content

Commit

Permalink
add: nph
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Aug 29, 2024
1 parent 666c1e5 commit a3f81d5
Show file tree
Hide file tree
Showing 3 changed files with 33 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"
}
}
27 changes: 27 additions & 0 deletions anda/langs/nim/nph/nph.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 build -d:release -t:"%nim_tflags" -l:"%nim_lflags"

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

%files
%_bindir/nph
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 a3f81d5

Please sign in to comment.