8 stdenv.mkDerivation rec {
13 url = "http://jflex.de/release/jflex-${version}.tar.gz";
14 sha256 = "sha256-4MHp7vkf9t8E1z+l6v8T86ArZ5/uFHTlzK4AciTfbfY=";
17 sourceRoot = "${pname}-${version}";
23 rm -f $out/bin/jflex.bat
26 sed -i -e '/^JAVA=java/ s#java#${jre}/bin/java#' $out/bin/jflex
30 doInstallCheck = true;
31 installCheckPhase = ''
32 runHook preInstallCheck
33 $out/bin/jflex --version
34 runHook postInstallCheck
38 homepage = "https://www.jflex.de/";
39 description = "Lexical analyzer generator for Java, written in Java";
40 mainProgram = "jflex";
41 license = lib.licenses.bsd3;
42 platforms = lib.platforms.unix;