-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rebase pr 53 / simplify nix wrapping #148
Conversation
Remove a bunch of stuff from the "dev" shell and rely on normal nix builds/shell instead. This does drop some features like automatically updating the vendorSha256, but hopefully the simpler setup means running `go get -u`, `nix-build` and manually ensuring hash consistency feels intuitive
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.
LGTM. We talked out-of-band about the potential for future improvements here, but it's definitely nice to get rid of custom shell magic and build directly with Nix. Thanks for this! Merge at will, when you're ready?
main.version=${version} | ||
''; | ||
|
||
vendorSha256 = "08zzp0h4c4i5hk4whz06a3da7qjms6lr36596vxz0d8q0n7rspr9"; |
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.
If you store the dependencies in your Git repository then this can become set to null. See https://nixos.org/manual/nixpkgs/stable/#ssec-go-modules
Everything but the last commit is rebasing/fixups of #53 .
The rest is simplification of the nix-shell and build, which is opinionated and drops features from the shell. We can re-add things as needed, but for now I didn't manage to get most of it working correctly with go modules, and prefer to rely on "normal Nix idioms".
Feel free to have strong opinions. :)