2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2014-10-11 23:23:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libantlr3c-3.4";
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://www.antlr3.org/download/C/libantlr3c-3.4.tar.gz";
|
2014-10-11 23:23:06 +00:00
|
|
|
sha256 ="0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa";
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = lib.optional stdenv.is64bit "--enable-64bit";
|
2014-10-11 23:23:06 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-10-11 23:23:06 +00:00
|
|
|
description = "C runtime libraries of ANTLR v3";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.antlr3.org/";
|
2014-10-11 23:23:06 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2021-03-19 06:01:47 +00:00
|
|
|
# The package failed to build with error:
|
|
|
|
# gcc: error: unrecognized command line option '-m64'
|
|
|
|
#
|
|
|
|
# See:
|
|
|
|
# https://gist.github.com/r-rmcgibbo/15bf2ca9b297e8357887e146076fff7d
|
|
|
|
# https://gist.github.com/r-rmcgibbo/a362535e4b174d4bfb68112503a49fcd
|
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
2014-10-11 23:23:06 +00:00
|
|
|
};
|
|
|
|
}
|