wxsqlite3: fix macOS build

This commit is contained in:
Matthew Bauer 2017-04-07 22:35:21 -05:00
parent 6a6b371a77
commit 719cb89342
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3

View file

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, wxGTK, sqlite }:
{ stdenv, fetchFromGitHub, wxGTK, sqlite
, darwin }:
stdenv.mkDerivation rec {
name = "wxsqlite3-${version}";
@ -11,7 +12,12 @@ stdenv.mkDerivation rec {
sha1 = "bb8p58g88nkdcsj3h4acx7h925n2cy9g";
};
buildInputs = [ wxGTK sqlite ];
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
cp build28/Info.plist.in build28/wxmac.icns build/
'';
buildInputs = [ wxGTK sqlite ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa darwin.stubs.setfile darwin.stubs.rez darwin.stubs.derez ];
meta = with stdenv.lib; {
homepage = http://utelle.github.io/wxsqlite3/ ;