mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
vscode-extensions.matklad.rust-analyzer: fix build
This commit is contained in:
parent
41d34fa80b
commit
51ba1c04f2
@ -32,12 +32,11 @@ in vscode-utils.buildVscodeExtension {
|
|||||||
|
|
||||||
nativeBuildInputs = lib.optional setDefaultServerPath jq;
|
nativeBuildInputs = lib.optional setDefaultServerPath jq;
|
||||||
|
|
||||||
postFixup = lib.optionalString setDefaultServerPath ''
|
preInstall = lib.optionalString setDefaultServerPath ''
|
||||||
package_json="$out/${publisher}.${pname}/package.json"
|
|
||||||
jq '.contributes.configuration.properties."rust-analyzer.serverPath".default = $s' \
|
jq '.contributes.configuration.properties."rust-analyzer.serverPath".default = $s' \
|
||||||
--arg s "${rust-analyzer}/bin/rust-analyzer" \
|
--arg s "${rust-analyzer}/bin/rust-analyzer" \
|
||||||
$package_json >$package_json.new
|
package.json >package.json.new
|
||||||
mv $package_json.new $package_json
|
mv package.json.new package.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user