1 {lib, stdenv, fetchurl, jre} :
3 stdenv.mkDerivation rec {
8 url = "http://jflex.de/release/jflex-${version}.tar.gz";
9 sha256 = "sha256-4MHp7vkf9t8E1z+l6v8T86ArZ5/uFHTlzK4AciTfbfY=";
12 sourceRoot = "${pname}-${version}";
18 rm -f $out/bin/jflex.bat
21 sed -i -e '/^JAVA=java/ s#java#${jre}/bin/java#' $out/bin/jflex
25 doInstallCheck = true;
26 installCheckPhase = ''
27 runHook preInstallCheck
28 $out/bin/jflex --version
29 runHook postInstallCheck
33 homepage = "https://www.jflex.de/";
34 description = "Lexical analyzer generator for Java, written in Java";
35 mainProgram = "jflex";
36 license = lib.licenses.bsd3;
37 platforms = lib.platforms.unix;