wxwidgets_3: remove ? null from inputs, format
This commit is contained in:
parent
eaff9e7a3e
commit
3d17f64b4e
@ -4,23 +4,20 @@
|
|||||||
, xorgproto, gst_all_1, setfile
|
, xorgproto, gst_all_1, setfile
|
||||||
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
|
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
|
||||||
, withMesa ? libGLSupported
|
, withMesa ? libGLSupported
|
||||||
, libGLU ? null, libGL ? null
|
, libGLU, libGL
|
||||||
, compat24 ? false, compat26 ? true, unicode ? true
|
, compat24 ? false, compat26 ? true, unicode ? true
|
||||||
, withGtk2 ? true
|
, withGtk2 ? true
|
||||||
, withWebKit ? false, webkitgtk ? null
|
, withWebKit ? false, webkitgtk
|
||||||
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null
|
, AGL, Carbon, Cocoa, Kernel, QTKit
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
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.";
|
assert assertMsg (withGtk2 -> withWebKit == false) "wxGTK30: You cannot enable withWebKit when using withGtk2.";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "3.0.5";
|
|
||||||
pname = "wxwidgets";
|
pname = "wxwidgets";
|
||||||
|
version = "3.0.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wxWidgets";
|
owner = "wxWidgets";
|
||||||
@ -29,16 +26,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1l33629ifx2dl2j71idqbd2qb6zb1d566ijpkvz6irrr50s6gbx7";
|
sha256 = "1l33629ifx2dl2j71idqbd2qb6zb1d566ijpkvz6irrr50s6gbx7";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libXinerama libSM libXxf86vm xorgproto gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
libXinerama libSM libXxf86vm xorgproto gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
||||||
] ++ optionals withGtk2 [ gtk2 ]
|
] ++ optional withGtk2 gtk2
|
||||||
++ optional (!withGtk2) gtk3
|
++ optional (!withGtk2) gtk3
|
||||||
++ optional withMesa libGLU
|
++ optional withMesa libGLU
|
||||||
++ optional withWebKit webkitgtk
|
++ optional withWebKit webkitgtk
|
||||||
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
|
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = optional stdenv.isDarwin AGL;
|
propagatedBuildInputs = optional stdenv.isDarwin AGL;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
Loading…
Reference in New Issue
Block a user