Skip to content

Commit

Permalink
use jq directly from pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmistman committed Aug 25, 2023
1 parent a111525 commit 97c9030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/jdt-language-server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
makeWrapper ${jdk}/bin/java $out/bin/jdt-language-server \
--run "mkdir -p ${runtimePath}" \
--run "install -Dm 1777 -t ${runtimePath}/config $out/share/config/*" \
--run 'MEMORY_LIMIT_BYTES=$(jq ".memorySoftLimitBytes" /repl/stats/resources.json)' \
--run 'MEMORY_LIMIT_BYTES=$(${pkgs.jq}/bin/jq ".memorySoftLimitBytes" /repl/stats/resources.json)' \
--run 'MEMORY_LIMIT_MB=$(expr $MEMORY_LIMIT_BYTES / 1048576)' \
--run 'LSP_MAX_HEAP=$(expr $MEMORY_LIMIT_MB / 4)' \
--run 'LSP_MAX_HEAP=$(( $LSP_MAX_HEAP > 512 ? $LSP_MAX_HEAP : 512 ))' \
Expand Down

0 comments on commit 97c9030

Please sign in to comment.