mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
metals: provide client-agnostic flavor
This commit is contained in:
parent
d34fa6ed44
commit
0e2456da82
@ -31,6 +31,13 @@ stdenv.mkDerivation rec {
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
# This variant is not targeted at any particular client, clients are
|
||||
# expected to declare their supported features in initialization options.
|
||||
makeWrapper ${jre}/bin/java $out/bin/metals \
|
||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
||||
--add-flags "${extraJavaOpts} -cp $CLASSPATH scala.meta.metals.Main"
|
||||
|
||||
# Further variants targeted at clients with featuresets pre-set.
|
||||
makeWrapper ${jre}/bin/java $out/bin/metals-emacs \
|
||||
--prefix PATH : ${lib.makeBinPath [ jdk ]} \
|
||||
--add-flags "${extraJavaOpts} -Dmetals.client=emacs -cp $CLASSPATH scala.meta.metals.Main"
|
||||
|
Loading…
Reference in New Issue
Block a user