From 719cb89342258705d4a2607f5bac7b21f5e46a73 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 7 Apr 2017 22:35:21 -0500 Subject: [PATCH] wxsqlite3: fix macOS build --- pkgs/development/libraries/wxsqlite3/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/wxsqlite3/default.nix b/pkgs/development/libraries/wxsqlite3/default.nix index 88cf92b34ef0..a06003997845 100644 --- a/pkgs/development/libraries/wxsqlite3/default.nix +++ b/pkgs/development/libraries/wxsqlite3/default.nix @@ -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/ ;