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 ?!? |
jolheiser
left a comment
There was a problem hiding this comment.
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 |
silverwind
left a comment
There was a problem hiding this comment.
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-daemonrunning and your user has to be member of the nix-users group. Or use NixOS.then by just:
nix develop -c $SHELLa dedicated development environment with all needed packages will be created.