-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Nix flake build static with sqlite support #35149
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
Nix flake build static with sqlite support #35149
Conversation
@wxiaoguang now it should not break anything :)
done ...
well the makefile could be reworked to use less specific env vars and build things up to be collected in one var ... but I think this is some refactor to be done in another pull dedicated to it ... if one wants to
because if you dont build static in nixos the gitea binary just panics: ![]() |
@techknowlogick pam needs cgo too - added :) and it does not support static linking ... |
@techknowlogick static also works on windows :) |
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.
Thanks :)
with `nix develop -c $SHELL` you can enter the dev environment. now with `make clean-all generate build -j1` you will get a static linked binary that has sqlite support
backpott -> #35225 |
* giteaofficial/main: Nix flake build static with sqlite support (go-gitea#35149) Vertically center "Show Resolved" (go-gitea#35211) [skip ci] Updated translations via Crowdin
with
nix develop -c $SHELL
you can enter the dev environment.now with
make clean-all generate build -j1
you will get a static linked binary that has sqlite supportexample:
