wxwidgets_3: remove ? null from inputs, format

This commit is contained in:
Sandro Jäckel 2021-03-10 10:03:58 +01:00
parent eaff9e7a3e
commit 3d17f64b4e
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -4,23 +4,20 @@
, xorgproto, gst_all_1, setfile
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
, withMesa ? libGLSupported
, libGLU ? null, libGL ? null
, libGLU, libGL
, compat24 ? false, compat26 ? true, unicode ? true
, withGtk2 ? true
, withWebKit ? false, webkitgtk ? null
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null
, withWebKit ? false, webkitgtk
, AGL, Carbon, Cocoa, Kernel, QTKit
}:
with lib;
assert withMesa -> libGLU != null && libGL != null;
assert withWebKit -> webkitgtk != null;
assert assertMsg (withGtk2 -> withWebKit == false) "wxGTK30: You cannot enable withWebKit when using withGtk2.";
stdenv.mkDerivation rec {
version = "3.0.5";
pname = "wxwidgets";
version = "3.0.5";
src = fetchFromGitHub {
owner = "wxWidgets";
@ -29,16 +26,16 @@ stdenv.mkDerivation rec {
sha256 = "1l33629ifx2dl2j71idqbd2qb6zb1d566ijpkvz6irrr50s6gbx7";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libXinerama libSM libXxf86vm xorgproto gst_all_1.gstreamer gst_all_1.gst-plugins-base
] ++ optionals withGtk2 [ gtk2 ]
] ++ optional withGtk2 gtk2
++ optional (!withGtk2) gtk3
++ optional withMesa libGLU
++ optional withWebKit webkitgtk
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = optional stdenv.isDarwin AGL;
patches = [