2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cairo
|
2023-11-16 04:20:00 +00:00
|
|
|
, expat
|
2021-05-03 20:48:10 +00:00
|
|
|
, ffmpeg
|
|
|
|
, libexif
|
|
|
|
, pango
|
|
|
|
, pkg-config
|
|
|
|
, wxGTK
|
2022-12-17 10:02:37 +00:00
|
|
|
, darwin
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxSVG";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.5.25";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-03 20:48:10 +00:00
|
|
|
url = "mirror://sourceforge/project/wxsvg/wxsvg/${version}/wxsvg-${version}.tar.bz2";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-W/asaDG1S9Ga70jN6PoFctu2PzCu6dUyP2vms/MmU0s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Apply upstream patch for gcc-13 support:
|
|
|
|
# https://sourceforge.net/p/wxsvg/git/ci/7b17fe365fb522618fb3520d7c5c1109b138358f/
|
|
|
|
sed -i src/cairo/SVGCanvasCairo.cpp -e '1i #include <cstdint>'
|
|
|
|
'';
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
2023-11-16 04:20:00 +00:00
|
|
|
expat
|
2021-05-03 20:48:10 +00:00
|
|
|
ffmpeg
|
|
|
|
libexif
|
|
|
|
pango
|
|
|
|
wxGTK
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://wxsvg.sourceforge.net/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "SVG manipulation library built with wxWidgets";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "svgview";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2021-05-03 20:48:10 +00:00
|
|
|
wxSVG is C++ library to create, manipulate and render Scalable Vector
|
|
|
|
Graphics (SVG) files with the wxWidgets toolkit.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
inherit (wxGTK.meta) platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|