mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 22:19:17 +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";
|
name = "${crateName}-${version}.tar.gz";
|
||||||
url = "${registryDl}/${crateName}/${version}/download";
|
url = "${registryDl}/${crateName}/${version}/download";
|
||||||
|
|
||||||
|
passthru = { inherit pname version; };
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs unpack {
|
// lib.optionalAttrs unpack {
|
||||||
extension = "tar.gz";
|
extension = "tar.gz";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue