mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #182087 from Tomahna/metals
metals: 0.11.6 -> 0.11.7
This commit is contained in:
commit
2e191eb7bd
1 changed files with 2 additions and 17 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "metals";
|
pname = "metals";
|
||||||
version = "0.11.6";
|
version = "0.11.7";
|
||||||
|
|
||||||
deps = stdenv.mkDerivation {
|
deps = stdenv.mkDerivation {
|
||||||
name = "${pname}-deps-${version}";
|
name = "${pname}-deps-${version}";
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHash = "sha256-/tFc7xAuUtx2JgEMLhGaq2FXpt7KQNMi82ODr/gTfhM=";
|
outputHash = "sha256-Zc/0kod3JM58WpyxwXiyQdixBHOJV7UDGg1YZtHJ3hw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper setJavaClassPath ];
|
nativeBuildInputs = [ makeWrapper setJavaClassPath ];
|
||||||
|
@ -29,23 +29,8 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
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 \
|
makeWrapper ${jre}/bin/java $out/bin/metals \
|
||||||
--add-flags "${extraJavaOpts} -cp $CLASSPATH scala.meta.metals.Main"
|
--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 \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=emacs -cp $CLASSPATH scala.meta.metals.Main"
|
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-vim \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=coc.nvim -cp $CLASSPATH scala.meta.metals.Main"
|
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-vim-lsc \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=vim-lsc -cp $CLASSPATH scala.meta.metals.Main"
|
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/metals-sublime \
|
|
||||||
--add-flags "${extraJavaOpts} -Dmetals.client=sublime -cp $CLASSPATH scala.meta.metals.Main"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue