-
Notifications
You must be signed in to change notification settings - Fork 590
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
build: allow to pass in VERSION / GIT_VERSION #160
Comments
This is the relevant part of
The variable
I'm not fully convinced. Edit: This would later be overwriten by the |
Yes, that should get fixed probably anyway. |
I am looking into adding a awesome-git package to Nix / nixpkgs, and it uses
--depth 1
when fetching the git source, which does not allow for "git describe" to work properly.I've seen another build definition, which passes in
makeFlags = "VERSION=v${version} GIT_VERSION=v${version}";
(https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/emacs-modes/haskell/git.nix), which might be helpful in this regard.My current workaround is not using Git to fetch it (which is good anyway), and then write the version to
.version-stamp
manually.While the current approach is good enough for me in this case, it might be nice to support passing in VERSION maybe for this?
The text was updated successfully, but these errors were encountered: