-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add nix flake for dev shell #30967
Add nix flake for dev shell #30967
Conversation
To try it you need **nix** installed `nix-daemon ` running and your user has to be member of the **nix-users** group. Or use NixOS. then by just: ```sh nix develop -c $SHELL ``` a dedicated development environment with all needed packages will be created.
This may as well just use eachDefaultSystem |
we might also consider devbox, as we are already using it for tea https://gitea.com/gitea/tea/pulls/572 |
it looks like devbox use nix anyway ?!? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like devbox use nix anyway ?!?
Yeah, it uses nix
under the hood. As mentioned in that PR, it may (or may not) be beneficial for non-nix users as it abstracts over nix.
(I have no real preference, also as noted in that PR I'm more comfortable with nix than devbox so it's 🤷 to me)
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
I'm happy to have them there as long as they are versioned. Unversioned is a problem. Ideally all dependencies should be versioned. |
Some more ideas based on stuff in makefile:
|
I'm happy that nix support for local dev is going in, so I won't block if it remains different than tea. |
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Do we need to regenerate |
No |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand much on how this works but I hope you do 😆
* giteaofficial/main: Add nix flake for dev shell (go-gitea#30967) [skip ci] Updated translations via Crowdin Fix wrong display of recently pushed notification (go-gitea#25812) use existing oauth grant for public client (go-gitea#31015) Fix automerge will not work because of some events haven't been triggered (go-gitea#30780)
To try it you need **nix** installed `nix-daemon ` running and your user has to be member of the **nix-users** group. Or use NixOS. then by just: ```sh nix develop -c $SHELL ``` a dedicated development environment with all needed packages will be created.
_> #31310 |
To try it you need nix installed
nix-daemon
running and your user has to be member of the nix-users group. Or use NixOS.then by just:
nix develop -c $SHELL
a dedicated development environment with all needed packages will be created.