I’m trying to create a package for a Crystal tool. The source code uses git to read repository metadata and compute a version tag.
Nix/Nix flakes Build environments seem to omit the .gitdirectory from the sources. I understand why(after reading Nix For Lang Packaging - NixOS Wiki), but I assume there is a way to bypass this behavior and include the .gitdirectory in the build environment?
Yes, you are right, that is what I thought was best, and I’ll probably end up doing that. However, for the quick and easy route for personal use, and for the general case where changing an arbitrary amount of code might not be viable, I wanted to know that this was possible and how. Thanks!