mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-29 00:20:19 +02:00
vsode-utils: extracting attributes to limit input range
This commit is contained in:
parent
4b25c6ac51
commit
2d59425555
|
@ -1,8 +1,8 @@
|
||||||
ext:
|
{ publisher, name, version, sha256 ? "" }:
|
||||||
{
|
{
|
||||||
url = "https://${ext.publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${ext.publisher}/extension/${ext.name}/${ext.version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage";
|
url = "https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage";
|
||||||
sha256 = ext.sha256;
|
sha256 = sha256;
|
||||||
# The `*.vsix` file is in the end a simple zip file. Change the extension
|
# The `*.vsix` file is in the end a simple zip file. Change the extension
|
||||||
# so that existing `unzip` hooks takes care of the unpacking.
|
# so that existing `unzip` hooks takes care of the unpacking.
|
||||||
name = "${ext.publisher}-${ext.name}.zip";
|
name = "${publisher}-${name}.zip";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue