diff --git a/projects/github.com/fiatjaf/nak/package.yml b/projects/github.com/fiatjaf/nak/package.yml new file mode 100644 index 0000000000..fd80a4f284 --- /dev/null +++ b/projects/github.com/fiatjaf/nak/package.yml @@ -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