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
mattermost: add build number #35422
mattermost: add build number #35422
Conversation
@GrahamcOfBorg build mattermost |
pkgs/servers/mattermost/default.nix
Outdated
runHook postBuild | ||
''; | ||
|
||
buildFlags = "-ldflags \"-X '${goPackagePath}/model.BuildNumber=nixpkgs-${version}'\""; |
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.
Could you please move buildFlags
up into a let
expression? This is not needed in the build environment. :)
ab44c9a
to
ac782ae
Compare
@fpletz Thanks for reviewing! I made the changes you asked for. Can you please review it again? |
Thanks! The build bot has a whiltelist of users who can trigger it. @GrahamcOfBorg build mattermost |
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
I'm generally not excited about the way Mattermost needs an external specification of the
BUILD_NUMBER
to get the version in there, but, if we are going to build the package from source, we need to get the version number in there. Since we have our own way of building this package (we don't use the provided Makefile) and to disambiguate our version from the official source release, I prefixed the build number with "nixpkgs-".