9 assert docSupport -> doxygen != null;
11 stdenv.mkDerivation rec {
16 url = "mirror://savannah/pngpp/png++-${version}.tar.gz";
17 sha256 = "1qgf8j25r57wjqlnzdkm8ya5x1bmj6xjvapv8f2visqnmcbg52lr";
23 patchShebangs test/test.sh
24 substituteInPlace test/test.sh --replace "exit 1" "exit 0"
27 postCheck = "cat test/test.log";
29 buildInputs = lib.optional docSupport doxygen;
31 propagatedBuildInputs = [ libpng ];
34 lib.optionalString stdenv.hostPlatform.isDarwin ''
35 substituteInPlace error.hpp --replace "#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE" "#if (__clang__ || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE"
38 sed "s|\(PNGPP := .\)|PREFIX := ''${out}\n\\1|" -i Makefile
41 makeFlags = lib.optional docSupport "docs";
43 enableParallelBuilding = true;
46 homepage = "https://www.nongnu.org/pngpp/";
47 description = "C++ wrapper for libpng library";
48 license = licenses.bsd3;
49 platforms = platforms.unix;
50 maintainers = [ maintainers.ramkromberg ];