Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 990 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 jdk, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "antlr"; 10 version = "2.7.7"; 11 src = fetchurl { 12 url = "https://www.antlr2.org/download/antlr-${version}.tar.gz"; 13 sha256 = "1ffvcwdw73id0dk6pj2mlxjvbg0662qacx4ylayqcxgg381fnfl5"; 14 }; 15 patches = [ ./2.7.7-fixes.patch ]; 16 buildInputs = [ jdk ]; 17 18 CXXFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION"; 19 20 meta = with lib; { 21 description = "Powerful parser generator"; 22 longDescription = '' 23 ANTLR (ANother Tool for Language Recognition) is a powerful parser 24 generator for reading, processing, executing, or translating structured 25 text or binary files. It's widely used to build languages, tools, and 26 frameworks. From a grammar, ANTLR generates a parser that can build and 27 walk parse trees. 28 ''; 29 homepage = "https://www.antlr.org/"; 30 license = licenses.bsd3; 31 platforms = platforms.unix; 32 }; 33}