You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you soo much for improving the nix + Python ecosystem ❤️
I have a rather specific request and fully understand if it is currently outside the scope of the project.
In short, I would like to use a package that uses versioningit.
This build plugin uses the Git history to derive the package's version number during build time.
The current uv2nix tooling does not include the full git history, and I don't know where to extend the nix code to do so.
You can try and view the minimal reproducible example here:
In short, building it with uv build works as expected but running nix build .# does not, as it cannot read the entire .git directory to find the associated Git tag.
Thanks!
The text was updated successfully, but these errors were encountered:
Most build systems that attempt to extract version metadata from git has a mode where you can fake version metadata using an environment variable.
Versioningit has an open issue for that: jwodder/versioningit#45.
In the mean time one workaround could be to create a git repo in the build and tag a version:
I see. I thought that it should be possible to include the entire git history such that the version can be extracted during runtime in a "wrapping" derivation. But I see that there are quite a few issues with this approach.
Thank you for also providing a work around!
Hey 👋
Thank you soo much for improving the nix + Python ecosystem ❤️
I have a rather specific request and fully understand if it is currently outside the scope of the project.
In short, I would like to use a package that uses versioningit.
This build plugin uses the Git history to derive the package's version number during build time.
The current
uv2nix
tooling does not include the full git history, and I don't know where to extend the nix code to do so.You can try and view the minimal reproducible example here:
In short, building it with
uv build
works as expected but runningnix build .#
does not, as it cannot read the entire.git
directory to find the associated Git tag.Thanks!
The text was updated successfully, but these errors were encountered: