blob: d14a77a67004e741fa65d622fe2eb4104d7ff76f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, stdenv
, fetchurl
, cairo
, expat
, ffmpeg
, libexif
, pango
, pkg-config
, wxGTK
, darwin
}:
let
inherit (darwin.apple_sdk.frameworks) Cocoa;
in
stdenv.mkDerivation rec {
pname = "wxSVG";
version = "1.5.25";
src = fetchurl {
url = "mirror://sourceforge/project/wxsvg/wxsvg/${version}/wxsvg-${version}.tar.bz2";
hash = "sha256-W/asaDG1S9Ga70jN6PoFctu2PzCu6dUyP2vms/MmU0s=";
};
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>'
'';
nativeBuildInputs = [
pkg-config
];
buildInputs = [
cairo
expat
ffmpeg
libexif
pango
wxGTK
] ++ lib.optional stdenv.isDarwin Cocoa;
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://wxsvg.sourceforge.net/";
description = "SVG manipulation library built with wxWidgets";
mainProgram = "svgview";
longDescription = ''
wxSVG is C++ library to create, manipulate and render Scalable Vector
Graphics (SVG) files with the wxWidgets toolkit.
'';
license = licenses.gpl2Plus;
maintainers = [ maintainers.AndersonTorres ];
inherit (wxGTK.meta) platforms;
};
}
|