javacc: 7.0.10 -> 7.0.12 (#187867)

Co-authored-by: R. Ryantm <ryantm-bot@ryantm.com>
Co-authored-by: Souvik Sen <nixpkgs-commits@deshaw.com>
This commit is contained in:
Souvik Sen 2022-09-04 01:16:34 +01:00 committed by GitHub
parent 60a3cd8141
commit 6952cab029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View file

@ -1,17 +1,17 @@
{ stdenv, lib, fetchFromGitHub, ant, jdk }:
{ stdenv, lib, fetchFromGitHub, ant, jdk, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "javacc";
version = "7.0.10";
version = "7.0.12";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "${pname}-${version}";
sha256 = "120jva4sw1kylkwgqf869zxddss01mcn1nmimx9vmd4xaadz7cf2";
sha256 = "sha256-tDtstF3ivKjG01vOZ8Ga1zTjIZFSTWt5QPY1VQvyFMU=";
};
nativeBuildInputs = [ ant jdk ];
nativeBuildInputs = [ ant jdk makeWrapper ];
buildPhase = ''
ant jar
@ -21,8 +21,15 @@ stdenv.mkDerivation rec {
mkdir -p $out/target
mv scripts $out/bin
mv target/javacc.jar $out/target/
find -L "$out/bin" -type f -executable -print0 \
| while IFS= read -r -d ''' file; do
wrapProgram "$file" --suffix PATH : ${jre}/bin
done
'';
doCheck = true;
checkPhase = "ant test";
meta = with lib; {
homepage = "https://javacc.github.io/javacc";
description = "A parser generator for building parsers from grammars";

View file

@ -16472,7 +16472,10 @@ with pkgs;
ftjam = callPackage ../development/tools/build-managers/jam/ftjam.nix { };
javacc = callPackage ../development/tools/parsing/javacc {
# Upstream doesn't support anything newer than Java 8.
# https://github.com/javacc/javacc/blob/c708628423b71ce8bc3b70143fa5b6a2b7362b3a/README.md#building-javacc-from-source
jdk = jdk8;
jre = jre8;
};
jbake = callPackage ../development/tools/jbake { };