2021-04-27 14:58:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cairo
|
|
|
|
, ffmpeg
|
|
|
|
, libexif
|
|
|
|
, pango
|
|
|
|
, pkg-config
|
|
|
|
, wxGTK
|
2022-06-16 02:14:17 +00:00
|
|
|
# darwin deps
|
|
|
|
, Cocoa
|
2021-04-27 14:58:55 +00:00
|
|
|
}:
|
2017-03-05 15:38:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "wxSVG";
|
2021-11-18 20:43:32 +00:00
|
|
|
version = "1.5.23";
|
2017-03-05 15:38:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-27 14:58:55 +00:00
|
|
|
url = "mirror://sourceforge/project/wxsvg/wxsvg/${version}/wxsvg-${version}.tar.bz2";
|
2021-11-18 20:43:32 +00:00
|
|
|
hash = "sha256-Pwc2H6zH0YzBmpQN1zx4FC7V7sOMFNmTqFvwwGHcq7k=";
|
2017-03-05 15:38:18 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 14:58:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-11-18 20:43:32 +00:00
|
|
|
|
2021-04-27 14:58:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
libexif
|
|
|
|
pango
|
|
|
|
wxGTK
|
2022-06-16 02:14:17 +00:00
|
|
|
] ++ lib.optional stdenv.isDarwin Cocoa;
|
2017-03-05 15:38:18 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-04-27 14:58:55 +00:00
|
|
|
homepage = "http://wxsvg.sourceforge.net/";
|
2017-03-05 15:38:18 +00:00
|
|
|
description = "A SVG manipulation library built with wxWidgets";
|
|
|
|
longDescription = ''
|
2021-04-27 14:58:55 +00:00
|
|
|
wxSVG is C++ library to create, manipulate and render Scalable Vector
|
|
|
|
Graphics (SVG) files with the wxWidgets toolkit.
|
2017-03-05 15:38:18 +00:00
|
|
|
'';
|
2022-06-16 02:14:17 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
inherit (wxGTK.meta) platforms;
|
2017-03-05 15:38:18 +00:00
|
|
|
};
|
|
|
|
}
|