1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
7 url = "https://www.antlr3.org/download/C/libantlr3c-${version}.tar.gz";
8 sha256 ="0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa";
11 configureFlags = lib.optional stdenv.is64bit "--enable-64bit"
12 # libantlr3c wrongly emits the abi flags -m64 and -m32 which imply x86 archs
13 # https://github.com/antlr/antlr3/issues/205
14 ++ lib.optional (!stdenv.hostPlatform.isx86) "--disable-abiflags";
17 description = "C runtime libraries of ANTLR v3";
18 homepage = "https://www.antlr3.org/";
19 license = licenses.bsd3;
20 platforms = platforms.unix;
21 maintainers = with maintainers; [ vbgl ];