···11-{ lib
22-, stdenv
33-, fetchurl
44-, cairo
55-, gtk2
66-, libGL
77-, libGLU
88-, libSM
99-, libX11
1010-, libXinerama
1111-, libXxf86vm
1212-, pkg-config
1313-, xorgproto
1414-, compat24 ? false
1515-, compat26 ? true
1616-, unicode ? true
1717-, withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
1818-}:
1919-2020-stdenv.mkDerivation rec {
2121- pname = "wxGTK";
2222- version = "2.8.12.1";
2323-2424- src = fetchurl {
2525- url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2";
2626- hash = "sha256-Hz8VPZ8VBMbOLSxLI+lAuPWLgfTLo1zaGluzEUIkPNA=";
2727- };
2828-2929- nativeBuildInputs = [
3030- pkg-config
3131- ];
3232-3333- buildInputs = [
3434- cairo
3535- gtk2
3636- libSM
3737- libX11
3838- libXinerama
3939- libXxf86vm
4040- xorgproto
4141- ]
4242- ++ lib.optional withMesa libGLU;
4343-4444- configureFlags = [
4545- "--enable-gtk2"
4646- "--disable-precomp-headers"
4747- "--enable-mediactrl"
4848- "--enable-graphics_ctx"
4949- (if compat24 then "--enable-compat24" else "--disable-compat24")
5050- (if compat26 then "--enable-compat26" else "--disable-compat26")
5151- ]
5252- ++ lib.optional unicode "--enable-unicode"
5353- ++ lib.optional withMesa "--with-opengl";
5454-5555- hardeningDisable = [ "format" ];
5656-5757- # These variables are used by configure to find some dependencies.
5858- SEARCH_INCLUDE =
5959- "${libXinerama.dev}/include ${libSM.dev}/include ${libXxf86vm.dev}/include";
6060- SEARCH_LIB =
6161- "${libXinerama.out}/lib ${libSM.out}/lib ${libXxf86vm.out}/lib "
6262- + lib.optionalString withMesa "${libGLU.out}/lib ${libGL.out}/lib ";
6363-6464- # Work around a bug in configure.
6565- NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1 -lX11 -lcairo -Wno-narrowing";
6666-6767- preConfigure = ''
6868- substituteInPlace configure --replace \
6969- 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
7070- substituteInPlace configure --replace \
7171- 'SEARCH_LIB=' 'DUMMY_SEARCH_LIB='
7272- substituteInPlace configure --replace \
7373- /usr /no-such-path
7474- '';
7575-7676- postBuild = ''
7777- pushd contrib/src
7878- make
7979- popd
8080- '';
8181-8282- postInstall = ''
8383- pushd contrib/src
8484- make install
8585- popd
8686- pushd $out/include
8787- ln -s wx-*/* .
8888- popd
8989- '';
9090-9191- enableParallelBuilding = true;
9292-9393- meta = with lib; {
9494- homepage = "https://www.wxwidgets.org/";
9595- description = "A Cross-Platform C++ GUI Library";
9696- longDescription = ''
9797- wxWidgets gives you a single, easy-to-use API for writing GUI applications
9898- on multiple platforms that still utilize the native platform's controls
9999- and utilities. Link with the appropriate library for your platform and
100100- compiler, and your application will adopt the look and feel appropriate to
101101- that platform. On top of great GUI functionality, wxWidgets gives you:
102102- online help, network programming, streams, clipboard and drag and drop,
103103- multithreading, image loading and saving in a variety of popular formats,
104104- database support, HTML viewing and printing, and much more.
105105- '';
106106- license = licenses.wxWindows;
107107- maintainers = with maintainers; [ ];
108108- platforms = platforms.linux;
109109- };
110110-111111- passthru = {
112112- inherit compat24 compat26 unicode;
113113- gtk = gtk2;
114114- };
115115-}
-127
pkgs/development/libraries/wxwidgets/wxGTK29.nix
···11-{ lib
22-, stdenv
33-, fetchFromGitHub
44-, autoconf
55-, gtk2
66-, libGL
77-, libGLU
88-, libSM
99-, libXinerama
1010-, libXxf86vm
1111-, pkg-config
1212-, xorgproto
1313-, compat24 ? false
1414-, compat26 ? true
1515-, unicode ? true
1616-, withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
1717-, AGL
1818-, Carbon
1919-, Cocoa
2020-, Kernel
2121-, QuickTime
2222-, setfile
2323-}:
2424-2525-stdenv.mkDerivation rec {
2626- pname = "wxGTK";
2727- version = "2.9.5";
2828-2929- src = fetchFromGitHub {
3030- owner = "wxWidgets";
3131- repo = "wxWidgets";
3232- rev = "v${version}";
3333- hash = "sha256-izefAPU4lORZxQja7/InHyElJ1++2lDloR+xPudsRNE=";
3434- };
3535-3636- patches = [
3737- # https://github.com/wxWidgets/wxWidgets/issues/17942
3838- ./patches/0001-fix-assertion-using-hide-in-destroy.patch
3939- ];
4040-4141- nativeBuildInputs = [
4242- autoconf
4343- pkg-config
4444- ];
4545-4646- buildInputs = [
4747- gtk2
4848- libSM
4949- libXinerama
5050- libXxf86vm
5151- xorgproto
5252- ]
5353- ++ lib.optional withMesa libGLU
5454- ++ lib.optionals stdenv.isDarwin [
5555- Carbon
5656- Cocoa
5757- Kernel
5858- QuickTime
5959- setfile
6060- ];
6161-6262- propagatedBuildInputs = lib.optional stdenv.isDarwin AGL;
6363-6464- configureFlags = [
6565- "--disable-precomp-headers"
6666- "--enable-gtk2"
6767- (if compat24 then "--enable-compat24" else "--disable-compat24")
6868- (if compat26 then "--enable-compat26" else "--disable-compat26")
6969- ]
7070- ++ lib.optional unicode "--enable-unicode"
7171- ++ lib.optional withMesa "--with-opengl"
7272- ++ lib.optionals stdenv.isDarwin [ # allow building on 64-bit
7373- "--enable-universal-binaries"
7474- "--with-cocoa"
7575- "--with-macosx-version-min=10.7"
7676- ];
7777-7878- SEARCH_LIB = "${libGLU.out}/lib ${libGL.out}/lib ";
7979-8080- preConfigure = ''
8181- ./autogen.sh
8282- substituteInPlace configure --replace \
8383- 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
8484- substituteInPlace configure --replace \
8585- 'SEARCH_LIB=' 'DUMMY_SEARCH_LIB='
8686- substituteInPlace configure --replace \
8787- /usr /no-such-path
8888- '' + lib.optionalString stdenv.isDarwin ''
8989- substituteInPlace configure --replace \
9090- 'ac_cv_prog_SETFILE="/Developer/Tools/SetFile"' \
9191- 'ac_cv_prog_SETFILE="${setfile}/bin/SetFile"'
9292- substituteInPlace configure --replace \
9393- "-framework System" "-lSystem"
9494- '';
9595-9696- postInstall = ''
9797- pushd $out/include
9898- ln -s wx-*/* .
9999- popd
100100- '';
101101-102102- enableParallelBuilding = true;
103103-104104- meta = with lib; {
105105- homepage = "https://www.wxwidgets.org/";
106106- description = "A Cross-Platform C++ GUI Library";
107107- longDescription = ''
108108- wxWidgets gives you a single, easy-to-use API for writing GUI applications
109109- on multiple platforms that still utilize the native platform's controls
110110- and utilities. Link with the appropriate library for your platform and
111111- compiler, and your application will adopt the look and feel appropriate to
112112- that platform. On top of great GUI functionality, wxWidgets gives you:
113113- online help, network programming, streams, clipboard and drag and drop,
114114- multithreading, image loading and saving in a variety of popular formats,
115115- database support, HTML viewing and printing, and much more.
116116- '';
117117- license = licenses.wxWindows;
118118- maintainers = with maintainers; [ ];
119119- platforms = platforms.darwin ++ platforms.linux;
120120- badPlatforms = [ "x86_64-darwin" ];
121121- };
122122-123123- passthru = {
124124- inherit compat24 compat26 unicode;
125125- gtk = gtk2;
126126- };
127127-}
+3
pkgs/top-level/aliases.nix
···15631563 wormhole-rs = magic-wormhole-rs; # Added 2022-05-30. preserve, reason: Arch package name, main binary name
15641564 wmii_hg = wmii;
15651565 ws = throw "ws has been dropped due to the lack of maintenance from upstream since 2018"; # Added 2022-06-03
15661566+ wxGTK = throw "wxGTK28 has been removed from nixpkgs as it has reached end of life"; # Added 2022-11-04
15671567+ wxGTK28 = throw "wxGTK28 has been removed from nixpkgs as it has reached end of life"; # Added 2022-11-04
15681568+ wxGTK29 = throw "wxGTK29 has been removed from nixpkgs as it has reached end of life"; # Added 2022-11-04
15661569 wxGTK31-gtk2 = throw "'wxGTK31-gtk2' has been removed from nixpkgs as it depends on deprecated GTK2"; # Added 2022-10-27
15671570 wxGTK31-gtk3 = throw "'wxGTK31-gtk3' has been renamed to/replaced by 'wxGTK31'"; # Added 2022-10-27
15681571 wxmupen64plus = throw "wxmupen64plus was removed because the upstream disappeared"; # Added 2022-01-31