diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2024-04-11 15:34:22 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 15:34:22 -0300 |
commit | 004258bf153a112e4c495c65c66dee22e0898fd1 (patch) | |
tree | b1ebd36bb027ccd604801ce31fbd92da8d8b359c /pkgs/applications/editors | |
parent | 3d250b83e2251c64498be2c6d2a9865dda36bcbc (diff) | |
parent | 8f384467cce40d5298337bce5d8be24da1a4eb0d (diff) |
Merge pull request #289721 from FraGag/vscode-extension-sourceroot
vscode-utils: Set the sourceRoot attribute on vscode extensions
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/vscode/extensions/vscode-utils.nix | 4 |
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 5712fe6714238..4c7fae48fbe04 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; |