I’m trying to package this Rust app but I’m getting an error while building it. The line of code the error is referring to seems to be related to getting the git commit hash for building into the binary so I set deepClone = true to make sure it had a full git repo to query.
That didn’t seem to work so I’m wondering if anyone could give me some pointers? It’s my first attempt at packaging for nix. I’m tempted to patch it out with a manual setting of the variable used to put the commit hash in the binary but that seems like overkill, I think I’m just missing something simple.
EDIT: Adding git
in the function params and in nativeBuildInputs
got it past that point of the build. Now it’s failing for another reason - I suspect it’s something to do with the rustc and cargo version, is there a way to pin those in the package default.nix
?