2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, expat
|
|
|
|
, libiconv
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, zlib
|
2022-04-15 01:41:22 +00:00
|
|
|
, AGL
|
|
|
|
, Cocoa
|
|
|
|
, Kernel
|
|
|
|
, WebKit
|
|
|
|
, derez
|
|
|
|
, rez
|
|
|
|
, setfile
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxmac";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.0.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wxWidgets";
|
|
|
|
repo = "wxWidgets";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-I91douzXDAfDgm4Pplf17iepv4vIRhXZDRFl9keJJq0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
expat
|
|
|
|
libiconv
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
zlib
|
|
|
|
AGL
|
|
|
|
Cocoa
|
|
|
|
Kernel
|
|
|
|
WebKit
|
|
|
|
derez
|
|
|
|
rez
|
|
|
|
setfile
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-02-10 20:34:41 +00:00
|
|
|
substituteInPlace configure --replace "-framework System" "-lSystem"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2022-02-10 20:34:41 +00:00
|
|
|
"--disable-mediactrl"
|
|
|
|
"--disable-precomp-headers"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--enable-clipboard"
|
|
|
|
"--enable-controls"
|
|
|
|
"--enable-dataviewctrl"
|
2022-02-10 20:34:41 +00:00
|
|
|
"--enable-display"
|
|
|
|
"--enable-dnd"
|
|
|
|
"--enable-graphics_ctx"
|
|
|
|
"--enable-std_string"
|
|
|
|
"--enable-svg"
|
|
|
|
"--enable-unicode"
|
|
|
|
"--enable-webkit"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--with-expat"
|
2022-02-10 20:34:41 +00:00
|
|
|
"--with-libjpeg"
|
|
|
|
"--with-libpng"
|
|
|
|
"--with-libtiff"
|
|
|
|
"--with-macosx-version-min=10.7"
|
|
|
|
"--with-opengl"
|
|
|
|
"--with-osx_cocoa"
|
|
|
|
"--with-zlib"
|
|
|
|
"--without-liblzma"
|
|
|
|
"wx_cv_std_libfullpath=/var/empty"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
./wx-config --libs
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-undef";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.wxwidgets.org/";
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "A Cross-Platform C++ GUI Library - MacOS-only build";
|
|
|
|
longDescription = ''
|
|
|
|
wxWidgets gives you a single, easy-to-use API for writing GUI applications
|
|
|
|
on multiple platforms that still utilize the native platform's controls
|
|
|
|
and utilities. Link with the appropriate library for your platform and
|
|
|
|
compiler, and your application will adopt the look and feel appropriate to
|
|
|
|
that platform. On top of great GUI functionality, wxWidgets gives you:
|
|
|
|
online help, network programming, streams, clipboard and drag and drop,
|
|
|
|
multithreading, image loading and saving in a variety of popular formats,
|
|
|
|
database support, HTML viewing and printing, and much more.
|
|
|
|
'';
|
|
|
|
license = licenses.wxWindows;
|
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
|
|
platforms = platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|