mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
9 lines
424 B
Nix
9 lines
424 B
Nix
{ publisher, name, version, sha256 ? "" }:
|
|
{
|
|
url = "https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage";
|
|
sha256 = 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 = "${publisher}-${name}.zip";
|
|
}
|