Skip to content

Commit

Permalink
+nak
Browse files Browse the repository at this point in the history
 closes #7988
  • Loading branch information
jhheider committed Nov 22, 2024
1 parent a82b9a1 commit 3916f7e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions projects/github.com/fiatjaf/nak/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
distributable:
url: https://github.com/fiatjaf/nak/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1

versions:
github: fiatjaf/nak

provides:
- bin/nak

build:
dependencies:
go.dev: ~1.23.1
script:
- go mod download
- go build -v -trimpath -ldflags="$GO_LDFLAGS" -o {{prefix}}/bin/nak .
env:
GO_LDFLAGS:
- -s
- -w
- -X main.version=v{{version}}
linux:
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
GO_LDFLAGS:
- -buildmode=pie

test:
- test "$(nak --version)" = "nak version v{{version}}"
- nak event > out
- nak verify <out

0 comments on commit 3916f7e

Please sign in to comment.