Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
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 ourterms of service andprivacy 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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
6543 commentedJul 24, 2025
@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: ![]() |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
6543 commentedJul 24, 2025
6543 commentedJul 24, 2025
@techknowlogick pam needs cgo too - added :) and it does not support static linking ... |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
6543 commentedAug 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@techknowlogick static also works on windows :) |
techknowlogick left a comment
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 :)
28a7cc4 intogo-gitea:mainUh oh!
There was an error while loading.Please reload this page.
with `nix develop -c $SHELL` you can enter the dev environment.now with `make clean-all generate build -j1` you will get a staticlinked binary that has sqlite support
6543 commentedAug 6, 2025
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
Backport#35149with `nix develop -c $SHELL` you can enter the dev environment. now with`make clean-all generate build -j1` you will get a static linked binarythat has sqlite supportoutside of an nix dev shell if you set `STATIC=true` you also will get astatic binary
* upstream/main: [skip ci] Updated translations via Crowdin [skip ci] Updated translations via Crowdin Update stylelint, enable `report*` options (go-gitea#35236) Add `has_code` to repository REST API (go-gitea#35214) Upgrade go to 1.24.6 (go-gitea#35235) [skip ci] Updated translations via Crowdin Nix flake build static with sqlite support (go-gitea#35149)





with
nix develop -c $SHELLyou can enter the dev environment.now with
make clean-all generate build -j1you will get a static linked binary that has sqlite supportexample:
