fetchCrate: expose pname and version in passthru

This commit is contained in:
Alyssa Ross 2025-01-28 11:23:53 +01:00
parent 06de2be987
commit b55dd979b8

View file

@ -21,6 +21,8 @@ assert pname == null || pname == crateName;
{
name = "${crateName}-${version}.tar.gz";
url = "${registryDl}/${crateName}/${version}/download";
passthru = { inherit pname version; };
}
// lib.optionalAttrs unpack {
extension = "tar.gz";