diff options
author | Souvik Sen <souviksen44@gmail.com> | 2021-01-26 01:47:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 21:17:52 +0100 |
commit | 8da624e2312e3579eac210f6185949c61b6968a3 (patch) | |
tree | 25a4dee20f70d7c03de4204b72a4c41fc514e001 /pkgs/development/tools | |
parent | 5452d8d4d9d86a610c7b84f3a4bff4e0f4aecaf8 (diff) |
javacc: init at 7.0.10 (#110783)
Co-authored-by: Souvik Sen <nixpkgs-commits@deshaw.com>
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/parsing/javacc/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/parsing/javacc/default.nix b/pkgs/development/tools/parsing/javacc/default.nix new file mode 100644 index 000000000000..d074e3dda93e --- /dev/null +++ b/pkgs/development/tools/parsing/javacc/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchFromGitHub, ant, jdk }: + +stdenv.mkDerivation rec { + pname = "javacc"; + version = "7.0.10"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "${pname}-${version}"; + sha256 = "120jva4sw1kylkwgqf869zxddss01mcn1nmimx9vmd4xaadz7cf2"; + }; + + nativeBuildInputs = [ ant jdk ]; + + buildPhase = '' + ant jar + ''; + + installPhase = '' + mkdir -p $out/target + mv scripts $out/bin + mv target/javacc.jar $out/target/ + ''; + + meta = with lib; { + homepage = "https://javacc.github.io/javacc"; + description = "A parser generator for building parsers from grammars"; + license = licenses.bsd2; + maintainers = [ teams.deshaw.members ]; + }; +} |