From 258fe5828d88383992824058ebeb011f6ecb26c6 Mon Sep 17 00:00:00 2001 From: Bob Rubbens Date: Mon, 24 Aug 2020 23:00:00 +0200 Subject: [PATCH] aspectj: 1.5.2 -> 1.9.6 As discussed on the mailing list, the url is now pointed at the github project release because the previous eclipse archive link was not kept up-to-date anymore. Relevant links: - https://www.eclipse.org/lists/aspectj-dev/msg03311.html --- pkgs/development/compilers/aspectj/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/aspectj/default.nix b/pkgs/development/compilers/aspectj/default.nix index 94dc813d78a2..8fd47e937c80 100644 --- a/pkgs/development/compilers/aspectj/default.nix +++ b/pkgs/development/compilers/aspectj/default.nix @@ -1,12 +1,15 @@ {stdenv, fetchurl, jre}: stdenv.mkDerivation rec { - name = "aspectj-1.5.2"; + pname = "aspectj"; + version = "1.9.6"; builder = ./builder.sh; - src = fetchurl { - url = "http://archive.eclipse.org/tools/aspectj/${name}.jar"; - sha256 = "1b3mx248dc1xka1vgsl0jj4sm0nfjsqdcj9r9036mvixj1zj3nmh"; + src = let + versionSnakeCase = builtins.replaceStrings ["."] ["_"] version; + in fetchurl { + url = "https://github.com/eclipse/org.aspectj/releases/download/V${versionSnakeCase}/aspectj-${version}.jar"; + sha256 = "02jh66l3vw57k9a4dxlga3qh3487r36gyi6k2z2mmqxbpqajslja"; }; inherit jre;