lol

vsode-utils: extracting attributes to limit input range

+4 -4
+4 -4
pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix
··· 1 - ext: 1 + { publisher, name, version, sha256 ? "" }: 2 2 { 3 - url = "https://${ext.publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${ext.publisher}/extension/${ext.name}/${ext.version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"; 4 - sha256 = ext.sha256; 3 + url = "https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"; 4 + sha256 = sha256; 5 5 # The `*.vsix` file is in the end a simple zip file. Change the extension 6 6 # so that existing `unzip` hooks takes care of the unpacking. 7 - name = "${ext.publisher}-${ext.name}.zip"; 7 + name = "${publisher}-${name}.zip"; 8 8 }