Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libantlr3c / default.nix
blobf61c0bfafc7bdf54b1145f27ef11db8af5530e31
1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
4   pname = "libantlr3c";
5   version = "3.4";
6   src = fetchurl {
7     url = "https://www.antlr3.org/download/C/libantlr3c-${version}.tar.gz";
8     sha256 ="0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa";
9   };
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";
16   meta = with lib; {
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 ];
22   };