From 962d4a81a4cdb6bc3ae409d11a1fd6183d55d605 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 3 Jan 2025 20:14:27 +0100 Subject: [PATCH] vscode-extensions.visualjj.visualjj: add sources for the different architectures --- .../extensions/visualjj.visualjj/default.nix | 34 +++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix b/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix index 2950e7ab0006e..ceece0447b0fb 100644 --- a/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix +++ b/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix @@ -1,15 +1,37 @@ { + stdenvNoCC, lib, vscode-utils, }: vscode-utils.buildVscodeMarketplaceExtension { - mktplcRef = { - name = "visualjj"; - publisher = "visualjj"; - version = "0.13.4"; - hash = "sha256-/uuLRkEY430R5RS7B6972iginpA3pWpApjI6RUTxcHM="; - }; + mktplcRef = + let + sources = { + "x86_64-linux" = { + arch = "linux-x64"; + hash = "sha256-q9ubYkhrV28sB9CV1dyBEIFEkTrkGHRXdz5+4xjeVzI="; + }; + "x86_64-darwin" = { + arch = "darwin-x64"; + hash = "sha256-vV5u1QBICz3GIYRgH9UWM38a8YXtvW0u8r7c1SaKwxM="; + }; + "aarch64-linux" = { + arch = "linux-arm64"; + hash = "sha256-fgT4brIhHI6gNCcsbHpz+v4/diyox2VoFlvCnhPIbPM="; + }; + "aarch64-darwin" = { + arch = "darwin-arm64"; + hash = "sha256-/uuLRkEY430R5RS7B6972iginpA3pWpApjI6RUTxcHM="; + }; + }; + in + { + name = "visualjj"; + publisher = "visualjj"; + version = "0.13.4"; + } + // sources.${stdenvNoCC.system} or (throw "Unsupported system ${stdenvNoCC.system}"); meta = { description = "Jujutsu version control integration, for simpler Git workflow";