1{stdenv, fetchurl, jre}:
2
3stdenv.mkDerivation rec {
4 pname = "aspectj";
5 version = "1.9.6";
6 builder = ./builder.sh;
7
8 src = let
9 versionSnakeCase = builtins.replaceStrings ["."] ["_"] version;
10 in fetchurl {
11 url = "https://github.com/eclipse/org.aspectj/releases/download/V${versionSnakeCase}/aspectj-${version}.jar";
12 sha256 = "02jh66l3vw57k9a4dxlga3qh3487r36gyi6k2z2mmqxbpqajslja";
13 };
14
15 inherit jre;
16 buildInputs = [jre];
17
18 meta = {
19 homepage = "http://www.eclipse.org/aspectj/";
20 description = "A seamless aspect-oriented extension to the Java programming language";
21 platforms = stdenv.lib.platforms.unix;
22 license = stdenv.lib.licenses.epl10;
23 };
24}