2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libantlr3c";
|
|
|
|
version = "3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://www.antlr3.org/download/C/libantlr3c-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 ="0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = lib.optional stdenv.is64bit "--enable-64bit";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C runtime libraries of ANTLR v3";
|
|
|
|
homepage = "https://www.antlr3.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2021-03-23 19:22:30 +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;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|