-
-
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
base: main
Are you sure you want to change the base?
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 ... |
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:
