Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 42 lines 1.6 kB view raw
1{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig 2, freetype, SDL, libX11 }: 3 4stdenv.mkDerivation rec { 5 name = "agg-2.5"; 6 src = fetchurl { 7 url = "http://www.antigrain.com/${name}.tar.gz"; 8 sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb"; 9 }; 10 nativeBuildInputs = [ pkgconfig ]; 11 buildInputs = [ autoconf automake libtool freetype SDL libX11 ]; 12 13 # fix build with new automake, from Gentoo ebuild 14 preConfigure = '' 15 sed -i '/^AM_C_PROTOTYPES/d' configure.in 16 sh autogen.sh 17 ''; 18 19 configureFlags = [ "--x-includes=${libX11.dev}/include" "--x-libraries=${libX11.out}/lib" "--enable-examples=no" ]; 20 21 # libtool --tag=CXX --mode=link g++ -g -O2 libexamples.la ../src/platform/X11/libaggplatformX11.la ../src/libagg.la -o alpha_mask2 alpha_mask2.o 22 # libtool: error: cannot find the library 'libexamples.la' 23 enableParallelBuilding = false; 24 25 meta = { 26 description = "High quality rendering engine for C++"; 27 28 longDescription = '' 29 Anti-Grain Geometry (AGG) is an Open Source, free of charge 30 graphic library, written in industrially standard C++. The 31 terms and conditions of use AGG are described on The License 32 page. AGG doesn't depend on any graphic API or technology. 33 Basically, you can think of AGG as of a rendering engine that 34 produces pixel images in memory from some vectorial data. But 35 of course, AGG can do much more than that. 36 ''; 37 38 license = stdenv.lib.licenses.gpl2Plus; 39 homepage = http://www.antigrain.com/; 40 platforms = stdenv.lib.platforms.linux; 41 }; 42}