nixpkgs/pkgs/development/libraries/wxwidgets/wxmac30.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

100 lines
2.3 KiB
Nix
Raw Normal View History

2022-01-30 13:46:28 +00:00
{ lib
, stdenv
, fetchFromGitHub
, expat
, libiconv
, libjpeg
, libpng
, libtiff
, zlib
, darwin
}:
2022-01-30 13:46:28 +00:00
let
inherit (darwin.apple_sdk.frameworks) AGL Cocoa Kernel WebKit;
inherit (darwin.stubs) derez rez setfile;
in
stdenv.mkDerivation rec {
pname = "wxmac";
2022-01-30 13:46:28 +00:00
version = "3.0.5.1";
2021-12-24 14:47:50 +00:00
src = fetchFromGitHub {
owner = "wxWidgets";
repo = "wxWidgets";
rev = "v${version}";
2022-01-30 13:46:28 +00:00
hash = "sha256-I91douzXDAfDgm4Pplf17iepv4vIRhXZDRFl9keJJq0=";
};
2015-10-29 00:15:05 +00:00
buildInputs = [
2022-01-30 13:46:28 +00:00
expat
libiconv
libjpeg
libpng
libtiff
zlib
AGL
Cocoa
Kernel
WebKit
derez
rez
setfile
2015-10-29 00:15:05 +00:00
];
postPatch = ''
2022-01-30 13:46:28 +00:00
substituteInPlace configure --replace "-framework System" "-lSystem"
2015-10-29 00:15:05 +00:00
'';
configureFlags = [
2022-01-30 13:46:28 +00:00
"--disable-mediactrl"
"--disable-precomp-headers"
"--enable-clipboard"
"--enable-controls"
"--enable-dataviewctrl"
2022-01-30 13:46:28 +00:00
"--enable-display"
"--enable-dnd"
"--enable-graphics_ctx"
"--enable-std_string"
"--enable-svg"
"--enable-unicode"
"--enable-webkit"
"--with-expat"
2022-01-30 13:46:28 +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"
];
2022-01-30 13:46:28 +00:00
doCheck = true;
checkPhase = ''
./wx-config --libs
'';
2015-10-29 00:15:05 +00:00
NIX_CFLAGS_COMPILE = "-Wno-undef";
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.wxwidgets.org/";
2022-01-30 13:46:28 +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;
};
}