···1-{ publisher, name, version, sha256 ? "" }:
0002{
3- url = "https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage";
4 sha256 = sha256;
5 # The `*.vsix` file is in the end a simple zip file. Change the extension
6 # so that existing `unzip` hooks takes care of the unpacking.
···1+{ publisher, name, version, arch ? "", sha256 ? "" }:
2+let
3+ archurl = (if arch == "" then "" else "?targetPlatform=${arch}");
4+in
5{
6+ url = "https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage${archurl}";
7 sha256 = sha256;
8 # The `*.vsix` file is in the end a simple zip file. Change the extension
9 # so that existing `unzip` hooks takes care of the unpacking.