vscode-extensions.vscode-utils: reapply some changes from bb24faf
bb24fafbfa
This commit is contained in:
parent
0717848d7b
commit
4f99c5725e
|
@ -1,12 +1,7 @@
|
||||||
{ stdenv, lib, buildEnv, writeShellScriptBin, fetchurl, vscode, unzip, jq }:
|
{ stdenv, lib, buildEnv, writeShellScriptBin, fetchurl, vscode, unzip, jq }:
|
||||||
let
|
let
|
||||||
extendedPkgVersion = lib.getVersion vscode;
|
|
||||||
extendedPkgName = lib.removeSuffix "-${extendedPkgVersion}" vscode.name;
|
|
||||||
|
|
||||||
|
|
||||||
buildVscodeExtension = a@{
|
buildVscodeExtension = a@{
|
||||||
name,
|
name,
|
||||||
namePrefix ? "${extendedPkgName}-extension-",
|
|
||||||
src,
|
src,
|
||||||
# Same as "Unique Identifier" on the extension's web page.
|
# Same as "Unique Identifier" on the extension's web page.
|
||||||
# For the moment, only serve as unique extension dir.
|
# For the moment, only serve as unique extension dir.
|
||||||
|
@ -20,12 +15,12 @@ let
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation ((removeAttrs a [ "vscodeExtUniqueId" ]) // {
|
stdenv.mkDerivation ((removeAttrs a [ "vscodeExtUniqueId" ]) // {
|
||||||
|
|
||||||
name = namePrefix + name;
|
name = "vscode-extension-${name}";
|
||||||
|
|
||||||
inherit vscodeExtUniqueId;
|
inherit vscodeExtUniqueId;
|
||||||
inherit configurePhase buildPhase dontPatchELF dontStrip;
|
inherit configurePhase buildPhase dontPatchELF dontStrip;
|
||||||
|
|
||||||
installPrefix = "share/${extendedPkgName}/extensions/${vscodeExtUniqueId}";
|
installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}";
|
||||||
|
|
||||||
buildInputs = [ unzip ] ++ buildInputs;
|
buildInputs = [ unzip ] ++ buildInputs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue