Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 23 lines 760 B view raw
1{lib, stdenv, fetchurl}: 2 3stdenv.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 }; 10 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"; 15 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 }; 23}