2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2014-10-12 00:23:06 +01:00
|
|
|
|
2021-06-20 15:15:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libantlr3c";
|
|
|
|
version = "3.4";
|
2014-10-12 00:23:06 +01:00
|
|
|
src = fetchurl {
|
2021-06-20 15:15:21 +01:00
|
|
|
url = "https://www.antlr3.org/download/C/libantlr3c-${version}.tar.gz";
|
2014-10-12 00:23:06 +01:00
|
|
|
sha256 ="0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa";
|
|
|
|
};
|
|
|
|
|
2021-08-07 10:56:55 +01:00
|
|
|
configureFlags = lib.optional stdenv.is64bit "--enable-64bit"
|
|
|
|
# libantlr3c wrongly emits the abi flags -m64 and -m32 which imply x86 archs
|
|
|
|
# https://github.com/antlr/antlr3/issues/205
|
|
|
|
++ lib.optional (!stdenv.hostPlatform.isx86) "--disable-abiflags";
|
2014-10-12 00:23:06 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-10-12 00:23:06 +01:00
|
|
|
description = "C runtime libraries of ANTLR v3";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.antlr3.org/";
|
2014-10-12 00:23:06 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|