Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake: init #2367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

flake: init #2367

wants to merge 1 commit into from

Conversation

nbsp
Copy link
Contributor

@nbsp nbsp commented Jan 8, 2024

Adds a Nix flake for development and building, which replicates the functionality of the magefile. The devShell provides the necessary tools to immediately hack on the project, namely Go and an LSP for editor integration.

See livekit/livekit-cli#276 for rationale, usage, and caveats.

Adds a Nix flake for development and building, which replicates the
functionality of the magefile. The devShell provides the necessary tools
to immediately hack on the project, namely Go and an LSP for editor
integration.

Caveats:
- Uses its own independent version instead of reading version.go.
  This could be fixed by inferring the version from the git tag and
  using '-X ...=`git describe --tags --long --always`'
  (see https://codeberg.org/pronounscc/pronouns.cc/src/branch/main/Makefile)
- gomod2nix.toml needs to be updated every time go.mod is touched:
  e.g. on module add or update.

References: livekit/livekit-cli#276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant