diff-pdf: Try to fix darwin build

This commit is contained in:
Will Dietz 2018-02-06 12:57:52 -06:00
parent b963f06f5a
commit 9e2993e75a

View file

@ -1,5 +1,12 @@
{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, cairo, poppler, wxGTK }:
{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, cairo, poppler, wxGTK ? null, wxmac ? null, darwin ? null }:
let
wxInputs =
if stdenv.isDarwin then
[ wxmac darwin.apple_sdk.frameworks.Cocoa ]
else
[ wxGTK ];
in
stdenv.mkDerivation rec {
name = "diff-pdf-${version}";
version = "2017-12-30";
@ -12,7 +19,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoconf automake pkgconfig ];
buildInputs = [ cairo poppler wxGTK ];
buildInputs = [ cairo poppler ] ++ wxInputs;
preConfigure = "./bootstrap";