jdt-language-server: 1.31.0 -> 1.36.0

This commit is contained in:
Marc Jakobi 2024-06-03 11:55:10 +02:00
parent d96b321bcc
commit ebbd613587
2 changed files with 4 additions and 4 deletions

View File

@ -6,15 +6,15 @@
}:
let
timestamp = "202401111522";
timestamp = "202405301306";
in
stdenv.mkDerivation (finalAttrs: {
pname = "jdt-language-server";
version = "1.31.0";
version = "1.36.0";
src = fetchurl {
url = "https://download.eclipse.org/jdtls/milestones/${finalAttrs.version}/jdt-language-server-${finalAttrs.version}-${timestamp}.tar.gz";
hash = "sha256-bCX2LQt00d2SqxmvuvvlBB6wbCuFPqtX9/Qv5v6wH3w=";
hash = "sha256-Ao4nTQb0phytT/1W+J70FKj2VhPG0F2UZ2Ubf7A9rns=";
};
sourceRoot = ".";

2
pkgs/by-name/jd/jdt-language-server/update.sh Normal file → Executable file
View File

@ -15,7 +15,7 @@ filename=$(curl -s "$prefix/latest.txt")
newtimestamp=$(echo $filename | sed "s|^.*-$newver-||;s|\.tar\.gz$||")
newhash="$(nix-hash --to-sri --type sha256 $(nix-prefetch-url "$prefix/$filename"))";
sed -i default.nix \
sed -i package.nix \
-e "/^ version =/ s|\".*\"|\"$newver\"|" \
-e "/^ timestamp =/ s|\".*\"|\"$newtimestamp\"|" \
-e "/^ hash =/ s|\".*\"|\"$newhash\"|" \