nixpkgs-suyu/pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix
Oren Rozen 4b25c6ac51 vscode-utils/vscodeEnv: add vscodeWithConfiguration, vscodeExts2nix and vscodeEnv
move mktplcExtRefToFetchArgs to file in order to be shared with the new derivations(privately)
2019-12-24 13:15:15 -05:00

8 lines
415 B
Nix

ext:
{
url = "https://${ext.publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${ext.publisher}/extension/${ext.name}/${ext.version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage";
sha256 = ext.sha256;
# The `*.vsix` file is in the end a simple zip file. Change the extension
# so that existing `unzip` hooks takes care of the unpacking.
name = "${ext.publisher}-${ext.name}.zip";
}