···7 name = "vsc-material-theme";
8 publisher = "Equinusocio";
9 version = "34.3.1";
10- sha256 = "sha256-3yxFTMtjJR1b4EzBDfm55HF9chrya5OUF5wN+KHEduE=";
11 };
1213 # extensions wants to write at the /nix/store path, so we patch it to use the globalStorageUri instead.
···7 name = "vsc-material-theme";
8 publisher = "Equinusocio";
9 version = "34.3.1";
10+ hash = "sha256-3yxFTMtjJR1b4EzBDfm55HF9chrya5OUF5wN+KHEduE=";
11 };
1213 # extensions wants to write at the /nix/store path, so we patch it to use the globalStorageUri instead.
···1-{ publisher, name, version, arch ? "", sha256 ? "" }:
2let
3 archurl = (if arch == "" then "" else "?targetPlatform=${arch}");
4in
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.
10 name = "${publisher}-${name}.zip";
···1+{ publisher, name, version, arch ? "", sha256 ? "", hash ? "" }:
2let
3 archurl = (if arch == "" then "" else "?targetPlatform=${arch}");
4in
5{
6 url = "https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage${archurl}";
7+ inherit sha256 hash;
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.
10 name = "${publisher}-${name}.zip";