1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: improve nur help

closes #4050
This commit is contained in:
Carlos Alexandro Becker 2023-05-29 18:14:15 +00:00
parent 88fb3e4c6a
commit a80a4011ad
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -5,8 +5,6 @@
After releasing to GitHub, GitLab, or Gitea, GoReleaser can generate and publish
a _nixpkg_ to a [Nix User Repository][nur].
[nur]: https://github.com/nix-community/NUR
The `nix` section specifies how the pkgs should be created:
```yaml
@ -189,4 +187,20 @@ You can check the
[resource not accessible by integration](/errors/resource-not-accessible-by-integration/)
for more information.
## Setting up a NUR
To set up a Nix User Repository, follow the instructions in their
[repository][nur].
Then, you'll need to:
- publish a release with GoReleaser: it should create the package at
`./pkgs/{name}/default.nix` or whatever path you set it up to
- make sure `./flake.nix` is correct with what you want, especially the
`systems` bit
- add your package to `./default.nix`
- edit your `README.md` removing the template stuff
That's it!
[nur]: https://github.com/nix-community/NUR