about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authoréclairevoyant <848000+eclairevoyant@users.noreply.github.com>2024-01-24 11:46:22 -0500
committeréclairevoyant <848000+eclairevoyant@users.noreply.github.com>2024-01-24 11:50:16 -0500
commitaf0589b0e61fd316443b92860df1e87dee2ffc1f (patch)
tree9798e5911b3feb8aea02076ebaad87ab05bd0757 /pkgs/development/tools
parent5cd2baa57a9ff2d84f2615700434fa04f3067fdb (diff)
downloadnixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.tar
nixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.tar.gz
nixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.tar.bz2
nixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.tar.lz
nixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.tar.xz
nixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.tar.zst
nixlib-af0589b0e61fd316443b92860df1e87dee2ffc1f.zip
jdt-language-server: move to `pkgs/by-name`
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/language-servers/jdt-language-server/default.nix60
1 files changed, 0 insertions, 60 deletions
diff --git a/pkgs/development/tools/language-servers/jdt-language-server/default.nix b/pkgs/development/tools/language-servers/jdt-language-server/default.nix
deleted file mode 100644
index 626db26e89b1..000000000000
--- a/pkgs/development/tools/language-servers/jdt-language-server/default.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{ lib
-, stdenv
-, fetchurl
-, python3
-, jdk
-}:
-
-let
-  timestamp = "202401111522";
-in
-stdenv.mkDerivation (finalAttrs: {
-  pname = "jdt-language-server";
-  version = "1.31.0";
-
-  src = fetchurl {
-    url = "https://download.eclipse.org/jdtls/milestones/${finalAttrs.version}/jdt-language-server-${finalAttrs.version}-${timestamp}.tar.gz";
-    hash = "sha256-bCX2LQt00d2SqxmvuvvlBB6wbCuFPqtX9/Qv5v6wH3w=";
-  };
-
-  sourceRoot = ".";
-
-  buildInputs = [
-    # Used for the included wrapper
-    python3
-  ];
-
-  postPatch = ''
-    # We store the plugins, config, and features folder in different locations
-    # than in the original package. In addition, hard-code the path to the jdk
-    # in the wrapper, instead of searching for it in PATH at runtime.
-    substituteInPlace bin/jdtls.py \
-      --replace "jdtls_base_path = Path(__file__).parent.parent" "jdtls_base_path = Path(\"$out/share/java/jdtls/\")" \
-      --replace "java_executable = get_java_executable(known_args.validate_java_version)" "java_executable = '${lib.getExe jdk}'"
-  '';
-
-  installPhase =
-    let
-      # The application ships with different config directories for each platform.
-      # Note the application come with ARM variants as well, although the
-      # current included wrapper doesn't use them.
-      configDir = if stdenv.isDarwin then "config_mac" else "config_linux";
-    in
-    ''
-      install -Dm444 -t $out/share/java/jdtls/plugins/ plugins/*
-      install -Dm444 -t $out/share/java/jdtls/features/ features/*
-      install -Dm444 -t $out/share/java/jdtls/${configDir} ${configDir}/*
-      install -Dm555 -t $out/bin bin/jdtls
-      install -Dm444 -t $out/bin bin/jdtls.py
-    '';
-
-  meta = {
-    homepage = "https://github.com/eclipse/eclipse.jdt.ls";
-    description = "Java language server";
-    sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
-    license = lib.licenses.epl20;
-    maintainers = with lib.maintainers; [ matt-snider ];
-    platforms = lib.platforms.all;
-    mainProgram = "jdtls";
-  };
-})