autotrace: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-08 21:08:15 +02:00
parent c10a1c6e1c
commit a8382432d9
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, callPackage, libpng12, imagemagick,
autoreconfHook, glib, pstoedit, pkgconfig, gettext, darwin }:
autoreconfHook, glib, pstoedit, pkgconfig, gettext, gd, darwin }:
# TODO: Figure out why the resultant binary is somehow linked against
# libpng16.so.16 rather than libpng12.
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook glib autofig pkgconfig gettext ];
buildInputs = [ libpng12 imagemagick pstoedit ]
++ stdenv.lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ApplicationServices]);
(with darwin.apple_sdk.frameworks; [ gd ApplicationServices ]);
postUnpack = ''
pushd $sourceRoot