diff options
author | Oren Rozen <countoren@gmail.com> | 2019-12-28 16:40:13 -0500 |
---|---|---|
committer | Oren Rozen <countoren@gmail.com> | 2019-12-28 16:40:13 -0500 |
commit | 2d594255550afad5a41f50598e1d410db20013be (patch) | |
tree | 3d1b5d5be1f5e165f8b42d113be7cb6878606455 /pkgs/misc | |
parent | 4b25c6ac5142a38616d622254355db12e1ab0e83 (diff) | |
download | nixpkgs-2d594255550afad5a41f50598e1d410db20013be.tar nixpkgs-2d594255550afad5a41f50598e1d410db20013be.tar.gz nixpkgs-2d594255550afad5a41f50598e1d410db20013be.tar.bz2 nixpkgs-2d594255550afad5a41f50598e1d410db20013be.tar.lz nixpkgs-2d594255550afad5a41f50598e1d410db20013be.tar.xz nixpkgs-2d594255550afad5a41f50598e1d410db20013be.tar.zst nixpkgs-2d594255550afad5a41f50598e1d410db20013be.zip |
vsode-utils: extracting attributes to limit input range
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix b/pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix index 21bdd0f6d7b..a781250fc18 100644 --- a/pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix +++ b/pkgs/misc/vscode-extensions/mktplcExtRefToFetchArgs.nix @@ -1,8 +1,8 @@ -ext: +{ publisher, name, version, sha256 ? "" }: { - 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; + 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 = "${ext.publisher}-${ext.name}.zip"; + name = "${publisher}-${name}.zip"; } |