vscode-utils/vscodeEnv: add vscodeWithConfiguration, vscodeExts2nix and vscodeEnv

move mktplcExtRefToFetchArgs to file in order to be shared with the new derivations(privately)
This commit is contained in:
Oren Rozen
2019-12-24 13:15:15 -05:00
parent 9d6abcd826
commit 4b25c6ac51
5 changed files with 150 additions and 12 deletions
@@ -0,0 +1,8 @@
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";
}