From the source
Replit describes how it solved the problem of specifying a version in Nix derivation code by using the commit short SHA as the version.
The post explains the challenges encountered, such as the Nix store not having access to the .git directory, and the solution using copyPathToStore to copy the source files including .git into the store.




