about summary refs log tree commit diff
path: root/pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2024-02-23 22:09:08 +0100
committerFelix Buehler <account@buehler.rocks>2024-02-25 21:36:41 +0100
commita00e878cb349df2837f4c746f61aeb5ddf4905ca (patch)
treefdc1de48907e9e45b22b6be0a3ecc589a062e8d6 /pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme
parent682f958f762d767670b1cdbc5a5f3f6a1d1de57a (diff)
vscode-extensions.equinusocio.vsc-material-theme: fix user-settings
Diffstat (limited to 'pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme')
-rw-r--r--pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme/default.nix b/pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme/default.nix
index 016203a9452fb..8f2784c3704d2 100644
--- a/pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme/default.nix
+++ b/pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme/default.nix
@@ -10,6 +10,12 @@ vscode-utils.buildVscodeMarketplaceExtension {
     sha256 = "sha256-3yxFTMtjJR1b4EzBDfm55HF9chrya5OUF5wN+KHEduE=";
   };
 
+  # extensions wants to write at the /nix/store path, so we patch it to use the globalStorageUri instead.
+  prePatch = ''
+    substituteInPlace ./build/core/extension-manager.js \
+      --replace-fail "path_1.posix.join(extensionFolderUri.path, env_1.USER_CONFIG_FILE_NAME)" "path_1.posix.join(ExtensionContext.globalStorageUri.fsPath, env_1.USER_CONFIG_FILE_NAME)"
+  '';
+
   meta = with lib; {
     changelog = "https://marketplace.visualstudio.com/items/Equinusocio.vsc-material-theme/changelog";
     description = "The most epic theme now for Visual Studio Code";