From 4f9ee38eabcb3fce3bfb39c61926da08dc3c9850 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 21 Sep 2025 06:30:02 +0200 Subject: [PATCH] chore: add nix supoort for this repo --- .github/workflows/publish.yml | 2 ++ .goreleaser.yml | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2de81f..a87f2a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,8 @@ jobs: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v4 + - name: Install Nix + uses: cachix/install-nix-action@v31.6.1 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index db4f435..9332983 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,3 +20,15 @@ universal_binaries: checksum: name_template: 'checksums.txt' + +nix: + - name: protoc-gen-connect-openapi + repository: + owner: sudorandom + name: nur + homepage: "https://github.com/sudorandom/protoc-gen-connect-openapi" + description: "A protoc plugin to generate ConnectRPC OpenAPI v3 specifications" + license: "mit" + install: |- + mkdir -p $out/bin + cp -vr ./protoc-gen-connect-openapi $out/bin/protoc-gen-connect-openapi