{ lib, stdenvNoCC, fetchurl, jre, }: let version = "1.9.22.1"; versionSnakeCase = builtins.replaceStrings [ "." ] [ "_" ] version; in stdenvNoCC.mkDerivation { pname = "aspectj"; inherit version; __structuredAttrs = true; src = fetchurl { url = "https://github.com/eclipse/org.aspectj/releases/download/V${versionSnakeCase}/aspectj-${version}.jar"; hash = "sha256-NIyYVhJIGXz+vNVoAQzYsDfmOYc4QrRzJGWeQjS4X0U="; }; dontUnpack = true; nativeBuildInputs = [ jre ]; installPhase = '' runHook preInstall cat >> props <> $out/bin/aj-runtime-env <