librsvg: fix build on darwin

librsvg needs -lobjc ldflag on darwin https://gitlab.gnome.org/GNOME/librsvg/-/issues/545
This commit is contained in:
Mario Rodas 2020-04-06 04:20:00 -05:00 committed by Jan Tojnar
parent 9ea40782c0
commit 2a7a7a8155

View File

@ -16,7 +16,10 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "installedTests" ];
buildInputs = [ libxml2 bzip2 pango libintl ];
buildInputs = [ libxml2 bzip2 pango libintl ]
++ lib.optionals stdenv.isDarwin [ darwin.libobjc ];
NIX_LDFLAGS = if stdenv.isDarwin then "-lobjc" else null;
propagatedBuildInputs = [ glib gdk-pixbuf cairo ];