fetchCrate: expose pname and version in passthru

This commit is contained in:
Alyssa Ross
2025-01-30 10:26:44 +01:00
parent 06de2be987
commit b55dd979b8
+2
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";