@@ -1,60 +1,26 @@
1−{ stdenv, fetchurl, fetchpatch, expat, libiconv, libjpeg, libpng, libtiff, zlib
1+{ stdenv, fetchzip, fetchpatch, expat, libiconv, libjpeg, libpng, libtiff, zlib
22# darwin only attributes
3−, derez, rez, setfile
3+, cf-private, derez, rez, setfile
44, AGL, Cocoa, Kernel
55}:
66
7−with stdenv.lib;
8−
97stdenv.mkDerivation rec {
10− version = "3.0.2";
8+ version = "3.0.4";
119 name = "wxmac-${version}";
1210
13− src = fetchurl {
14− url = "mirror://sourceforge/wxwindows/wxWidgets-${version}.tar.bz2";
15− sha256 = "346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d";
11+ src = fetchzip {
12+ url = "https://github.com/wxWidgets/wxWidgets/archive/v${version}.tar.gz";
13+ sha256 = "19mqglghjjqjgz4rbybn3qdgn2cz9xc511nq1pvvli9wx2k8syl1";
1614 };
1715
18− patches =
19− [ # Use std::abs() from <cmath> instead of abs() from <math.h> to avoid problems
20− # with abiguous overloads for clang-3.8 and gcc6.
21− (fetchpatch {
22− name = "patch-stc-abs.diff";
23− url = https://github.com/wxWidgets/wxWidgets/commit/73e9e18ea09ffffcaac50237def0d9728a213c02.patch;
24− sha256 = "0w5whmfzm8waw62jmippming0zffa9064m5b3aw5nixph21rlcvq";
25− })
26−
27− # Various fixes related to Yosemite. Revisit in next stable release.
28− # Please keep an eye on http://trac.wxwidgets.org/ticket/16329 as well
29− # Theoretically the above linked patch should still be needed, but it isn't.
30− # Try to find out why.
31− (fetchpatch {
32− name = "patch-yosemite.diff";
33− url = https://raw.githubusercontent.com/Homebrew/formula-patches/bbf4995/wxmac/patch-yosemite.diff;
34− sha256 = "0ss66z2a79v976mvlrskyj1zmkyaz8hbwm98p29bscfvcx5845jb";
35− })
36−
37− # Remove uncenessary <QuickTime/QuickTime.h> includes
38− # http://trac.wxwidgets.org/changeset/f6a2d1caef5c6d412c84aa900cb0d3990b350938/git-wxWidgets
39− (fetchpatch {
40− name = "patch-quicktime-removal.diff";
41− url = https://raw.githubusercontent.com/Homebrew/formula-patches/bbf4995/wxmac/patch-quicktime-removal.diff;
42− sha256 = "0mzvdk8r70p9s1wj7qzdsqmdrlxlf2dalh9gqs8xjkqq2666yp0y";
43− })
44−
45− # Patch for wxOSXPrintData, custom paper not applied
46− # http://trac.wxwidgets.org/ticket/16959
47− (fetchpatch {
48− name = "wxPaperCustomPatch.patch";
49− url = http://trac.wxwidgets.org/raw-attachment/ticket/16959/wxPaperCustomPatch.patch;
50− sha256 = "0xgscv86f8dhggn9n8bhlq9wlj3ydsicgy9v35sraxyma18cbjvl";
51− })
52− ];
53−
5416 buildInputs = [
5517 expat libiconv libjpeg libpng libtiff zlib
5618 derez rez setfile
5719 Cocoa Kernel
20+
21+ # Needed for CFURLGetFSRef, etc. which have deen deprecated
22+ # since 10.9 and are not part of swift-corelibs CoreFoundation.
23+ cf-private
5824 ];
5925
6026 propagatedBuildInputs = [ AGL ];
@@ -98,7 +64,7 @@ stdenv.mkDerivation rec {
9864
9965 enableParallelBuilding = true;
10066
101− meta = {
67+ meta = with stdenv.lib; {
10268 platforms = platforms.darwin;
10369 license = licenses.wxWindows;
10470 maintainers = [ maintainers.lnl7 ];