mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
fetchCrate: expose pname and version in passthru
This commit is contained in:
parent
06de2be987
commit
b55dd979b8
1 changed files with 2 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue