wxSVG: unbreak on Darwin

This commit is contained in:
Malo Bourgon 2022-06-15 19:14:17 -07:00
parent d304496834
commit 0b06db69f5
2 changed files with 7 additions and 5 deletions

View file

@ -7,6 +7,8 @@
, pango , pango
, pkg-config , pkg-config
, wxGTK , wxGTK
# darwin deps
, Cocoa
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
libexif libexif
pango pango
wxGTK wxGTK
]; ] ++ lib.optional stdenv.isDarwin Cocoa;
meta = with lib; { meta = with lib; {
homepage = "http://wxsvg.sourceforge.net/"; homepage = "http://wxsvg.sourceforge.net/";
@ -37,9 +39,8 @@ stdenv.mkDerivation rec {
wxSVG is C++ library to create, manipulate and render Scalable Vector wxSVG is C++ library to create, manipulate and render Scalable Vector
Graphics (SVG) files with the wxWidgets toolkit. Graphics (SVG) files with the wxWidgets toolkit.
''; '';
license = with licenses; gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = [ maintainers.AndersonTorres ];
platforms = wxGTK.meta.platforms; inherit (wxGTK.meta) platforms;
broken = stdenv.isDarwin;
}; };
} }

View file

@ -21231,6 +21231,7 @@ with pkgs;
wxSVG = callPackage ../development/libraries/wxSVG { wxSVG = callPackage ../development/libraries/wxSVG {
wxGTK = wxGTK30-gtk3; wxGTK = wxGTK30-gtk3;
inherit (darwin.apple_sdk.frameworks) Cocoa;
}; };
wtk = callPackage ../development/libraries/wtk { }; wtk = callPackage ../development/libraries/wtk { };