about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2024-04-12 13:17:22 -0300
committerGitHub <noreply@github.com>2024-04-12 13:17:22 -0300
commitc5c13bbca159b49a742ec67bcafba0c34603e1f8 (patch)
tree8d79db330415e0b09b5bff93957e31a93e947e78 /pkgs
parent1736b784715609f4ff791a1c2c5b3abada2e2142 (diff)
parenta4955cdc4ccc17cbdf4914e2ae42241ea301715c (diff)
Merge pull request #303445 from NixOS/backport-289721-to-release-23.11
[Backport release-23.11] vscode-utils: Set the sourceRoot attribute on vscode extensions
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/vscode/extensions/vscode-utils.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/vscode-utils.nix b/pkgs/applications/editors/vscode/extensions/vscode-utils.nix
index 0eba230ad8e03..053d11b71effc 100644
--- a/pkgs/applications/editors/vscode/extensions/vscode-utils.nix
+++ b/pkgs/applications/editors/vscode/extensions/vscode-utils.nix
@@ -32,6 +32,10 @@ let
 
     inherit configurePhase buildPhase dontPatchELF dontStrip;
 
+    # Some .vsix files contain other directories (e.g., `package`) that we don't use.
+    # If other directories are present but `sourceRoot` is unset, the unpacker phase fails.
+    sourceRoot = "extension";
+
     installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}";
 
     nativeBuildInputs = [ unzip ] ++ nativeBuildInputs;