about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-05-28 17:43:00 +0200
committerTimo Kaufmann <timokau@zoho.com>2020-05-28 17:43:00 +0200
commit0e2456da8252d8d967c240f1d3ababece0b5f77d (patch)
tree0c4138d483be29cb1b10e051d80f503a6c48f60d /pkgs
parentd34fa6ed4434c5b18f4e4ec4b9a11f5e6f6d2400 (diff)
downloadnixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.tar
nixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.tar.gz
nixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.tar.bz2
nixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.tar.lz
nixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.tar.xz
nixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.tar.zst
nixlib-0e2456da8252d8d967c240f1d3ababece0b5f77d.zip
metals: provide client-agnostic flavor
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/metals/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/tools/metals/default.nix b/pkgs/development/tools/metals/default.nix
index cf9ce2bd265e..5f4af6268770 100644
--- a/pkgs/development/tools/metals/default.nix
+++ b/pkgs/development/tools/metals/default.nix
@@ -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"