15 inherit (darwin.apple_sdk.frameworks) Cocoa;
17 stdenv.mkDerivation rec {
22 url = "mirror://sourceforge/project/wxsvg/wxsvg/${version}/wxsvg-${version}.tar.bz2";
23 hash = "sha256-W/asaDG1S9Ga70jN6PoFctu2PzCu6dUyP2vms/MmU0s=";
27 # Apply upstream patch for gcc-13 support:
28 # https://sourceforge.net/p/wxsvg/git/ci/7b17fe365fb522618fb3520d7c5c1109b138358f/
29 sed -i src/cairo/SVGCanvasCairo.cpp -e '1i #include <cstdint>'
43 ] ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
45 enableParallelBuilding = true;
48 homepage = "https://wxsvg.sourceforge.net/";
49 description = "SVG manipulation library built with wxWidgets";
50 mainProgram = "svgview";
52 wxSVG is C++ library to create, manipulate and render Scalable Vector
53 Graphics (SVG) files with the wxWidgets toolkit.
55 license = licenses.gpl2Plus;
56 maintainers = [ maintainers.AndersonTorres ];
57 inherit (wxGTK.meta) platforms;