diff-pdf: Try to fix darwin build
This commit is contained in:
parent
b963f06f5a
commit
9e2993e75a
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user