git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #74023 from NixOS/staging-next

Staging next

commitf99271be7c525e7b05a84432ea5b4da5cf6b7e34 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateSat 30 Nov 2019, 21:12 (7 years ago) parentab38b44a69ad18
390 files changed+1845−9270
pkgs/applications/audio/helm/default.nix+4−4 pkgs/applications/audio/jack-oscrolloscope/default.nix+2−2 pkgs/applications/audio/meters_lv2/default.nix+2−2 pkgs/applications/audio/pianobooster/default.nix+4−3 pkgs/applications/audio/setbfree/default.nix+2−2 pkgs/applications/audio/sisco.lv2/default.nix+2−2 pkgs/applications/audio/soundscape-renderer/default.nix+2−2 pkgs/applications/audio/yoshimi/default.nix+2−2 pkgs/applications/editors/kodestudio/default.nix+2−2 pkgs/applications/graphics/antimony/default.nix+2−2 pkgs/applications/graphics/cinepaint/default.nix+2−2 pkgs/applications/graphics/draftsight/default.nix+2−2 pkgs/applications/graphics/exrdisplay/default.nix+2−2 pkgs/applications/graphics/freepv/default.nix+2−2 pkgs/applications/graphics/hugin/default.nix+2−2 pkgs/applications/graphics/k3d/default.nix+2−2 pkgs/applications/graphics/kodelife/default.nix+2−2 pkgs/applications/graphics/openscad/default.nix+2−2 pkgs/applications/graphics/paraview/default.nix+2−2 pkgs/applications/misc/blender/default.nix+2−2 pkgs/applications/misc/cpp-ethereum/default.nix+2−2 pkgs/applications/misc/googleearth/default.nix+2−2 pkgs/applications/misc/icesl/default.nix+2−2 pkgs/applications/misc/llpp/default.nix+2−2 pkgs/applications/misc/merkaartor/default.nix+5−5 pkgs/applications/misc/navit/default.nix+2−2 pkgs/applications/misc/openbrf/default.nix+2−2 pkgs/applications/networking/browsers/chromium/common.nix+2−2 pkgs/applications/networking/browsers/firefox-bin/default.nix+2−2 pkgs/applications/networking/browsers/firefox/common.nix+2−2 pkgs/applications/networking/browsers/palemoon/default.nix+2−2 pkgs/applications/networking/instant-messengers/viber/default.nix+2−2 pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix+2−2 pkgs/applications/networking/mailreaders/thunderbird/default.nix+2−2 pkgs/applications/networking/remote/anydesk/default.nix+2−2 pkgs/applications/office/libreoffice/default.nix+2−2 pkgs/applications/office/libreoffice/still.nix+2−2 pkgs/applications/office/zotero/default.nix+2−2 pkgs/applications/science/astronomy/celestia/default.nix+2−2 pkgs/applications/science/astronomy/gravit/default.nix+2−2 pkgs/applications/science/astronomy/stellarium/default.nix+2−2 pkgs/applications/science/chemistry/avogadro/default.nix+3−3 pkgs/applications/science/electronics/kicad/default.nix+2−2 pkgs/applications/science/electronics/kicad/unstable.nix+2−2 pkgs/applications/science/electronics/pcb/default.nix+2−2 pkgs/applications/science/logic/mcrl2/default.nix+2−2 pkgs/applications/science/math/giac/default.nix+3−3 pkgs/applications/science/math/glsurf/default.nix+2−2 pkgs/applications/science/math/gmsh/default.nix+2−2 pkgs/applications/science/medicine/aliza/default.nix+2−2 pkgs/applications/science/misc/boinc/default.nix+2−2 pkgs/applications/science/misc/golly/beta.nix+2−2 pkgs/applications/science/misc/gplates/default.nix+2−2 pkgs/applications/science/misc/root/5.nix+2−2 pkgs/applications/science/misc/root/default.nix+2−2 pkgs/applications/science/misc/tulip/default.nix+2−2 pkgs/applications/science/misc/vite/default.nix+2−2 pkgs/applications/version-management/bcompare/default.nix+1−1 pkgs/applications/version-management/gource/default.nix+2−2 pkgs/applications/video/aegisub/default.nix+2−2 pkgs/applications/video/bomi/default.nix+2−2 pkgs/applications/video/mplayer/default.nix+3−3 pkgs/applications/video/mpv/default.nix+3−3 pkgs/applications/video/mythtv/default.nix+2−2 pkgs/applications/video/simplescreenrecorder/default.nix+2−2 pkgs/applications/virtualization/bochs/default.nix+2−2 pkgs/data/misc/tzdata/default.nix+3−3 pkgs/desktops/gnome-2/default.nix+1−3 pkgs/desktops/gnome-2/platform/gnome-vfs/default.nix+13−1 pkgs/desktops/gnome-2/platform/gtkglext/default.nix+2−2 pkgs/development/compilers/vala/default.nix+6−6 pkgs/development/haskell-modules/configuration-nix.nix+1−1 pkgs/development/haskell-modules/hackage-packages.nix+69−69 pkgs/development/interpreters/erlang/generic-builder.nix+3−3 pkgs/development/interpreters/io/default.nix+2−2 pkgs/development/interpreters/love/0.10.nix+2−2 pkgs/development/interpreters/love/0.7.nix+2−2 pkgs/development/interpreters/love/0.8.nix+2−2 pkgs/development/interpreters/love/0.9.nix+2−2 pkgs/development/interpreters/love/11.1.nix+2−2 pkgs/development/interpreters/lush/default.nix+2−2 pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py+2 pkgs/development/interpreters/renpy/default.nix+3−3 pkgs/development/libraries/AntTweakBar/default.nix+2−2 pkgs/development/libraries/allegro/5.nix+2−2 pkgs/development/libraries/allegro/default.nix+2−2 pkgs/development/libraries/arrayfire/default.nix+2−2 pkgs/development/libraries/aspell/default.nix+4−10 pkgs/development/libraries/box2d/default.nix+2−2 pkgs/development/libraries/bullet/default.nix+2−2 pkgs/development/libraries/bullet/roboschool-fork.nix+2−2 pkgs/development/libraries/cairo/default.nix+1−1 pkgs/development/libraries/chipmunk/default.nix+2−2 pkgs/development/libraries/ffmpeg-full/default.nix+3−3 pkgs/development/libraries/ffmpeg/generic.nix+3−3 pkgs/development/libraries/fltk/1.4.nix+2−2 pkgs/development/libraries/forge/default.nix+2−2 pkgs/development/libraries/fox/fox-1.6.nix+2−2 pkgs/development/libraries/freenect/default.nix+2−2 pkgs/development/libraries/fribidi/default.nix+8 pkgs/development/libraries/glui/default.nix+2−1 pkgs/development/libraries/gstreamer/bad/default.nix+171−81 pkgs/development/libraries/gstreamer/base/default.nix+111−58 pkgs/development/libraries/gstreamer/core/default.nix+66−41 pkgs/development/libraries/gstreamer/ges/default.nix+46−19 pkgs/development/libraries/gstreamer/good/default.nix+106−49 pkgs/development/libraries/gstreamer/libav/default.nix+29−26 pkgs/development/libraries/gstreamer/rtsp-server/default.nix+32−20 pkgs/development/libraries/gstreamer/ugly/default.nix+54−31 pkgs/development/libraries/gstreamer/vaapi/default.nix+53−30 pkgs/development/libraries/gstreamer/validate/default.nix+25−21 pkgs/development/libraries/irrlicht/default.nix+2−2 pkgs/development/libraries/java/swt/default.nix+2−2 pkgs/development/libraries/libagar/default.nix+3−3 pkgs/development/libraries/libinput/default.nix+1 pkgs/development/libraries/libnice/default.nix+41−12 pkgs/development/libraries/libpsl/default.nix+35−7 pkgs/development/libraries/libtcod/default.nix+2−2 pkgs/development/libraries/libwebp/default.nix+3−3 pkgs/development/libraries/libxml2/default.nix+8−2 pkgs/development/libraries/libxslt/default.nix+2−20 pkgs/development/libraries/liquidfun/default.nix+2−2 pkgs/development/libraries/mediastreamer/default.nix+2−2 pkgs/development/libraries/mesa/default.nix+2−2 pkgs/development/libraries/mygui/default.nix+3−2 pkgs/development/libraries/ogre/1.10.x.nix+2−2 pkgs/development/libraries/ogre/1.9.x.nix+2−2 pkgs/development/libraries/ogre/default.nix+2−2 pkgs/development/libraries/opencsg/default.nix+2−2 pkgs/development/libraries/openexrid-unstable/default.nix+2−2 pkgs/development/libraries/partio/default.nix+2−2 pkgs/development/libraries/phonon/default.nix+15−4 pkgs/development/libraries/physics/geant4/default.nix+2−2 pkgs/development/libraries/plib/default.nix+2−2 pkgs/development/libraries/qt-3/default.nix+3−3 pkgs/development/libraries/qt-5/5.11/default.nix−175 pkgs/development/libraries/qt-5/5.11/fetch.sh−1 pkgs/development/libraries/qt-5/5.11/qtbase-fixguicmake.patch−30 pkgs/development/libraries/qt-5/5.11/qtbase.patch−1106 pkgs/development/libraries/qt-5/5.11/qtdeclarative.patch−46 pkgs/development/libraries/qt-5/5.11/qtscript.patch−13 pkgs/development/libraries/qt-5/5.11/qtserialport.patch−22 pkgs/development/libraries/qt-5/5.11/qttools.patch−86 pkgs/development/libraries/qt-5/5.11/qtwebengine-darwin-no-platform-check.patch−37 pkgs/development/libraries/qt-5/5.11/qtwebengine-no-build-skip.patch−12 pkgs/development/libraries/qt-5/5.11/qtwebkit.patch−12 pkgs/development/libraries/qt-5/5.11/srcs.nix−325 pkgs/development/libraries/qt-5/5.12/default.nix−9 pkgs/development/libraries/qt-5/5.12/fetch.sh+1−1 pkgs/development/libraries/qt-5/5.12/srcs.nix+160−160 pkgs/development/libraries/qt-5/5.9/default.nix−179 pkgs/development/libraries/qt-5/5.9/fetch.sh−1 pkgs/development/libraries/qt-5/5.9/qtbase-fixguicmake.patch−30 pkgs/development/libraries/qt-5/5.9/qtbase-openssl_1_1.patch−3985 pkgs/development/libraries/qt-5/5.9/qtbase.patch−1119 pkgs/development/libraries/qt-5/5.9/qtdeclarative.patch−33 pkgs/development/libraries/qt-5/5.9/qtscript.patch−13 pkgs/development/libraries/qt-5/5.9/qtserialport.patch−22 pkgs/development/libraries/qt-5/5.9/qttools.patch−71 pkgs/development/libraries/qt-5/5.9/qtwebengine-clang-fix.patch−38 pkgs/development/libraries/qt-5/5.9/qtwebengine-darwin-no-platform-check.patch−50 pkgs/development/libraries/qt-5/5.9/qtwebengine-no-build-skip.patch−12 pkgs/development/libraries/qt-5/5.9/qtwebkit.patch−64 pkgs/development/libraries/qt-5/5.9/srcs.nix−333 pkgs/development/libraries/quesoglc/default.nix+2−2 pkgs/development/libraries/simgear/default.nix+2−2 pkgs/development/libraries/smpeg/default.nix+2−2 pkgs/development/libraries/soxt/default.nix+2−2 pkgs/development/libraries/vaapi-vdpau/default.nix+2−2 pkgs/development/libraries/vrpn/default.nix+2−2 pkgs/development/libraries/xine-lib/default.nix+2−2 pkgs/development/misc/amdapp-sdk/default.nix+2−2 pkgs/development/ocaml-modules/lablgl/default.nix+2−2 pkgs/development/pharo/vm/build-vm-legacy.nix+3−3 pkgs/development/pharo/vm/build-vm.nix+3−3 pkgs/development/pharo/vm/vms.nix+1−1 pkgs/development/pure-modules/gl/default.nix+2−2 pkgs/development/python-modules/APScheduler/default.nix+2−2 pkgs/development/python-modules/Cython/default.nix+2−2 pkgs/development/python-modules/GitPython/default.nix+2−2 pkgs/development/python-modules/Nikola/default.nix+2−2 pkgs/development/python-modules/acoustics/default.nix+2−2 pkgs/development/python-modules/aenum/default.nix+2−2 pkgs/development/python-modules/aioesphomeapi/default.nix+2−2 pkgs/development/python-modules/ansible-runner/default.nix+2−2 pkgs/development/python-modules/argcomplete/default.nix+2−2 pkgs/development/python-modules/arrow/default.nix+2−2 pkgs/development/python-modules/astroid/default.nix+2−2 pkgs/development/python-modules/astropy-helpers/default.nix+2−2 pkgs/development/python-modules/astropy/default.nix+2−2 pkgs/development/python-modules/awkward/default.nix+2−2 pkgs/development/python-modules/aws-adfs/default.nix+2−2 pkgs/development/python-modules/azure-cosmosdb-table/default.nix+2−2 pkgs/development/python-modules/azure-datalake-store/default.nix+2−2 pkgs/development/python-modules/btrees/default.nix+2−2 pkgs/development/python-modules/carbon/default.nix+2−2 pkgs/development/python-modules/cchardet/default.nix+2−2 pkgs/development/python-modules/cffi/default.nix+2−2 pkgs/development/python-modules/cfn-lint/default.nix+2−2 pkgs/development/python-modules/cleo/default.nix+2−2 pkgs/development/python-modules/cornice/default.nix+2−2 pkgs/development/python-modules/dateutil/default.nix+2−2 pkgs/development/python-modules/decorator/default.nix+6−2 pkgs/development/python-modules/deprecated/default.nix+2−2 pkgs/development/python-modules/django-multiselectfield/default.nix+2−2 pkgs/development/python-modules/django/2_1.nix+2−2 pkgs/development/python-modules/django/2_2.nix+2−2 pkgs/development/python-modules/dotnetcore2/default.nix+2−2 pkgs/development/python-modules/emcee/default.nix+2−2 pkgs/development/python-modules/eyed3/default.nix+2−2 pkgs/development/python-modules/faker/default.nix+2−2 pkgs/development/python-modules/fido2/default.nix+2−2 pkgs/development/python-modules/fiona/default.nix+2−2 pkgs/development/python-modules/flake8-debugger/default.nix+2−2 pkgs/development/python-modules/flake8/default.nix+2−2 pkgs/development/python-modules/future/default.nix+2−2 pkgs/development/python-modules/google-pasta/default.nix+2−2 pkgs/development/python-modules/google_cloud_automl/default.nix+2−2 pkgs/development/python-modules/graph_nets/default.nix+2−2 pkgs/development/python-modules/graphite-web/default.nix+2−2 pkgs/development/python-modules/gym/default.nix+2−2 pkgs/development/python-modules/handout/default.nix+2−2 pkgs/development/python-modules/hiredis/default.nix+2−2 pkgs/development/python-modules/html5-parser/default.nix+2−2 pkgs/development/python-modules/hupper/default.nix+2−2 pkgs/development/python-modules/jdatetime/default.nix+2−2 pkgs/development/python-modules/jenkinsapi/default.nix+2−2 pkgs/development/python-modules/jsonrpc-async/default.nix+2−2 pkgs/development/python-modules/jsonrpc-base/default.nix+2−2 pkgs/development/python-modules/jsonrpc-websocket/default.nix+2−2 pkgs/development/python-modules/jupyterlab/default.nix+2−2 pkgs/development/python-modules/kombu/default.nix+2−2 pkgs/development/python-modules/lazr/config.nix+2−2 pkgs/development/python-modules/lazy-object-proxy/default.nix+2−2 pkgs/development/python-modules/ledgerblue/default.nix+2−2 pkgs/development/python-modules/libcloud/default.nix+2−2 pkgs/development/python-modules/logilab/common.nix+2−2 pkgs/development/python-modules/marshmallow/default.nix+2−2 pkgs/development/python-modules/mechanize/default.nix+2−2 pkgs/development/python-modules/minio/default.nix+2−2 pkgs/development/python-modules/mock/default.nix+5−6 pkgs/development/python-modules/moderngl/default.nix+2−2 pkgs/development/python-modules/openpyxl/default.nix+2−2 pkgs/development/python-modules/phonenumbers/default.nix+2−2 pkgs/development/python-modules/pivy/default.nix+1−1 pkgs/development/python-modules/pyasn1/default.nix+2−2 pkgs/development/python-modules/pybullet/default.nix+2−2 pkgs/development/python-modules/pycairo/default.nix+2−2 pkgs/development/python-modules/pycryptodome/default.nix+2−2 pkgs/development/python-modules/pycryptodomex/default.nix+2−2 pkgs/development/python-modules/pyftgl/default.nix+2−2 pkgs/development/python-modules/pyglet/default.nix+4−3 pkgs/development/python-modules/pylibacl/default.nix+2−2 pkgs/development/python-modules/pylint/default.nix+2−2 pkgs/development/python-modules/pymupdf/default.nix+2−2 pkgs/development/python-modules/pyopengl/default.nix+1−1 pkgs/development/python-modules/pyspf/default.nix+2−2 pkgs/development/python-modules/pytest/default.nix+2−2 pkgs/development/python-modules/pyzmq/default.nix+2−2 pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix+2−2 pkgs/development/python-modules/runway-python/default.nix+2−2 pkgs/development/python-modules/setuptools/default.nix+2−2 pkgs/development/python-modules/shodan/default.nix+2−2 pkgs/development/python-modules/starfish/default.nix+2−2 pkgs/development/python-modules/tabulate/default.nix+2−2 pkgs/development/python-modules/terminado/default.nix+2−2 pkgs/development/python-modules/testfixtures/default.nix+2−2 pkgs/development/python-modules/tld/default.nix+2−2 pkgs/development/python-modules/tox/default.nix+2−2 pkgs/development/python-modules/uncompyle6/default.nix+2−2 pkgs/development/python-modules/uproot/default.nix+2−2 pkgs/development/python-modules/urllib3/default.nix+2−2 pkgs/development/python-modules/wxPython/4.0.nix+2−2 pkgs/development/python-modules/xxhash/default.nix+2−2 pkgs/development/python-modules/zope_proxy/default.nix+2−2 pkgs/development/r-modules/default.nix+1−1 pkgs/development/ruby-modules/gem-config/default.nix+1−6 pkgs/development/tools/build-managers/meson/default.nix+9 pkgs/development/tools/simavr/default.nix+2−2 pkgs/games/0ad/game.nix+2−2 pkgs/games/adom/default.nix+2−2 pkgs/games/alienarena/default.nix+3−3 pkgs/games/armagetronad/default.nix+2−2 pkgs/games/astromenace/default.nix+2−2 pkgs/games/bitsnbots/default.nix+2−2 pkgs/games/blackshades/default.nix+2−2 pkgs/games/blobby/default.nix+2−2 pkgs/games/bzflag/default.nix+2−2 pkgs/games/construo/default.nix+9−1 pkgs/games/crack-attack/default.nix+2−2 pkgs/games/crawl/default.nix+2−2 pkgs/games/crrcsim/default.nix+2−2 pkgs/games/dhewm3/default.nix+3−3 pkgs/games/dwarf-fortress/dfhack/default.nix+2−2 pkgs/games/dxx-rebirth/default.nix+2−2 pkgs/games/eduke32/default.nix+4−4 pkgs/games/egoboo/default.nix+2−2 pkgs/games/ezquake/default.nix+2−2 pkgs/games/flightgear/default.nix+2−2 pkgs/games/freeorion/default.nix+2−2 pkgs/games/fsg/default.nix+2−2 pkgs/games/gl-117/default.nix+2−2 pkgs/games/globulation/default.nix+2−2 pkgs/games/gltron/default.nix+2−2 pkgs/games/kobodeluxe/default.nix+2−2 pkgs/games/lincity/ng.nix+2−2 pkgs/games/mars/default.nix+2−2 pkgs/games/minetest/default.nix+2−2 pkgs/games/naev/default.nix+2−2 pkgs/games/newtonwars/default.nix+4−3 pkgs/games/nexuiz/default.nix+2−2 pkgs/games/openrw/default.nix+2−2 pkgs/games/openxcom/default.nix+2−2 pkgs/games/pingus/default.nix+2−2 pkgs/games/pioneer/default.nix+2−2 pkgs/games/prboom/default.nix+5−2 pkgs/games/privateer/default.nix+2−2 pkgs/games/residualvm/default.nix+3−3 pkgs/games/rigsofrods/default.nix+2−2 pkgs/games/scorched3d/default.nix+2−2 pkgs/games/scummvm/default.nix+2−2 pkgs/games/soi/default.nix+2−2 pkgs/games/space-orbit/default.nix+2−2 pkgs/games/speed-dreams/default.nix+2−2 pkgs/games/spring/default.nix+2−2 pkgs/games/stardust/default.nix+2−2 pkgs/games/super-tux-kart/default.nix+2−2 pkgs/games/supertux/default.nix+2−2 pkgs/games/tdm/default.nix+3−3 pkgs/games/tibia/default.nix+2−2 pkgs/games/trackballs/default.nix+2−2 pkgs/games/tremulous/default.nix+2−2 pkgs/games/trigger/default.nix+2−2 pkgs/games/ufoai/default.nix+2−2 pkgs/games/ultimatestunts/default.nix+2−2 pkgs/games/ultrastardx/default.nix+2−2 pkgs/games/uqm/default.nix+2−2 pkgs/games/urbanterror/default.nix+3−3 pkgs/games/vdrift/default.nix+2−2 pkgs/games/voxelands/default.nix+2−2 pkgs/games/worldofgoo/default.nix+2−2 pkgs/games/xmoto/default.nix+2−2 pkgs/games/xonotic/default.nix+2−2 pkgs/games/xpilot/bloodspilot-client.nix+2−2 pkgs/games/xpilot/default.nix+2−2 pkgs/misc/emulators/atari800/default.nix+2−2 pkgs/misc/emulators/attract-mode/default.nix+2−2 pkgs/misc/emulators/dolphin-emu/default.nix+2−2 pkgs/misc/emulators/dolphin-emu/master.nix+2−2 pkgs/misc/emulators/dosbox/default.nix+2−2 pkgs/misc/emulators/emulationstation/default.nix+2−2 pkgs/misc/emulators/epsxe/default.nix+2−2 pkgs/misc/emulators/fakenes/default.nix+2−2 pkgs/misc/emulators/fs-uae/default.nix+2−2 pkgs/misc/emulators/gens-gs/default.nix+2−2 pkgs/misc/emulators/higan/default.nix+2−2 pkgs/misc/emulators/mednafen/default.nix+2−2 pkgs/misc/emulators/nestopia/default.nix+2−2 pkgs/misc/emulators/retroarch/default.nix+2−2 pkgs/misc/emulators/vbam/default.nix+2−2 pkgs/misc/emulators/vice/default.nix+2−2 pkgs/misc/emulators/wine/base.nix+1−1 pkgs/misc/emulators/wxmupen64plus/default.nix+2−2 pkgs/misc/emulators/yabause/default.nix+2−2 pkgs/misc/emulators/zsnes/default.nix+2−2 pkgs/misc/ghostscript/default.nix+5 pkgs/misc/gnash/default.nix+7−5 pkgs/misc/jackaudio/default.nix+4−5 pkgs/misc/screensavers/electricsheep/default.nix+2−2 pkgs/misc/screensavers/rss-glx/default.nix+2−2 pkgs/misc/screensavers/xscreensaver/default.nix+2−2 pkgs/os-specific/linux/ati-drivers/builder.sh+2−2 pkgs/os-specific/linux/ati-drivers/default.nix+4−4 pkgs/os-specific/linux/keyutils/default.nix+3−3 pkgs/os-specific/linux/kmscon/default.nix+2−2 pkgs/servers/sql/postgresql/default.nix+10−10 pkgs/tools/graphics/enblend-enfuse/default.nix+2−2 pkgs/tools/graphics/glee/default.nix+2−2 pkgs/tools/graphics/logstalgia/default.nix+2−2 pkgs/tools/graphics/nifskope/default.nix+6−1 pkgs/tools/graphics/pfstools/default.nix+2−2 pkgs/tools/inputmethods/touchegg/default.nix+2−2 pkgs/tools/misc/kisslicer/default.nix+3−3 pkgs/tools/misc/ocz-ssd-guru/default.nix+2−2 pkgs/tools/misc/pipelight/default.nix+2−2 pkgs/tools/misc/slop/default.nix+2−2 pkgs/tools/networking/network-manager/default.nix+2−9 pkgs/tools/security/enpass/default.nix+2−2 pkgs/top-level/all-packages.nix+6−54 pkgs/top-level/perl-packages.nix+34−2
pkgs/applications/audio/helm/default.nix+4−4
@@ -1,5 +1,5 @@
1−{ stdenv, fetchFromGitHub , xorg, libGL, freetype, alsaLib, curl, libjack2
2−, lv2, pkgconfig, libGLU_combined }:
1+{ stdenv, fetchFromGitHub , xorg, freetype, alsaLib, curl, libjack2
2+, lv2, pkgconfig, libGLU, libGL }:
33
44 stdenv.mkDerivation {
55 version = "0.9.0";
@@ -14,8 +14,8 @@
1414
1515 buildInputs = [
1616 xorg.libX11 xorg.libXcomposite xorg.libXcursor xorg.libXext
17− xorg.libXinerama xorg.libXrender xorg.libXrandr libGL
18− freetype alsaLib curl libjack2 pkgconfig libGLU_combined lv2
17+ xorg.libXinerama xorg.libXrender xorg.libXrandr
18+ freetype alsaLib curl libjack2 pkgconfig libGLU libGL lv2
1919 ];
2020
2121 CXXFLAGS = "-DHAVE_LROUND";
pkgs/applications/audio/jack-oscrolloscope/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, SDL, libjack2, libGLU_combined, pkgconfig }:
1+{ stdenv, fetchurl, SDL, libjack2, libGLU, libGL, pkgconfig }:
22
33stdenv.mkDerivation rec {
44 pname = "jack_oscrolloscope";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ SDL libjack2 libGLU_combined ];
13+ buildInputs = [ SDL libjack2 libGLU libGL ];
1414
1515 installPhase = ''
1616 mkdir -p $out/bin
pkgs/applications/audio/meters_lv2/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig
2−, lv2, libGLU_combined, gtk2, cairo, pango, fftwFloat, libjack2 }:
2+, lv2, libGLU, libGL, gtk2, cairo, pango, fftwFloat, libjack2 }:
33
44let
55 version = "0.9.10";
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
2626 inherit name;
2727
2828 nativeBuildInputs = [ pkgconfig ];
29− buildInputs = [ lv2 libGLU_combined gtk2 cairo pango fftwFloat libjack2 ];
29+ buildInputs = [ lv2 libGLU libGL gtk2 cairo pango fftwFloat libjack2 ];
3030
3131 srcs = [ src robtkSrc ];
3232 sourceRoot = name;
pkgs/applications/audio/pianobooster/default.nix+4−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, alsaLib, cmake, libGLU_combined, makeWrapper, qt4 }:
1+{ stdenv, fetchurl, alsaLib, cmake, libGLU, libGL, makeWrapper, qt4 }:
22
33stdenv.mkDerivation {
44 pname = "pianobooster";
@@ -16,12 +16,13 @@ stdenv.mkDerivation {
1616
1717 preConfigure = "cd src";
1818
19− buildInputs = [ alsaLib cmake makeWrapper libGLU_combined qt4 ];
19+ buildInputs = [ alsaLib cmake makeWrapper libGLU libGL qt4 ];
2020 NIX_LDFLAGS = [ "-lGL" "-lpthread" ];
2121
2222 postInstall = ''
2323 wrapProgram $out/bin/pianobooster \
24− --prefix LD_LIBRARY_PATH : ${libGLU_combined}/lib
24+ --prefix LD_LIBRARY_PATH : ${libGL}/lib \
25+ --prefix LD_LIBRARY_PATH : ${libGLU}/lib
2526 '';
2627
2728 meta = with stdenv.lib; {
pkgs/applications/audio/setbfree/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchzip, alsaLib, freetype, ftgl, libjack2, libX11, lv2
2−, libGLU_combined, pkgconfig, ttf_bitstream_vera
2+, libGLU, libGL, pkgconfig, ttf_bitstream_vera
33}:
44
55stdenv.mkDerivation rec {
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919
2020 nativeBuildInputs = [ pkgconfig ];
2121 buildInputs = [
22− alsaLib freetype ftgl libjack2 libX11 lv2 libGLU_combined
22+ alsaLib freetype ftgl libjack2 libX11 lv2 libGLU libGL
2323 ttf_bitstream_vera
2424 ];
2525
pkgs/applications/audio/sisco.lv2/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, lv2, pkgconfig, libGLU_combined, cairo, pango, libjack2 }:
1+{ stdenv, fetchFromGitHub, lv2, pkgconfig, libGLU, libGL, cairo, pango, libjack2 }:
22
33let
44 name = "sisco.lv2-${version}";
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 sourceRoot = src.name;
2929
3030 nativeBuildInputs = [ pkgconfig ];
31− buildInputs = [ lv2 pango cairo libjack2 libGLU_combined ];
31+ buildInputs = [ lv2 pango cairo libjack2 libGLU libGL ];
3232
3333 postUnpack = "chmod u+w -R ${robtkName}-src; mv ${robtkName}-src/* ${sourceRoot}/robtk";
3434 sisco_VERSION = version;
pkgs/applications/audio/soundscape-renderer/default.nix+2−2
@@ -11,7 +11,7 @@
1111, boost
1212, ecasound
1313, glibcLocales
14−, libGLU_combined # Needed because help2man basically does a ./ssr-binaural --help and ssr-binaural needs libGL
14+, libGLU, libGL # Needed because help2man basically does a ./ssr-binaural --help and ssr-binaural needs libGL
1515}:
1616
1717stdenv.mkDerivation {
@@ -33,7 +33,7 @@ stdenv.mkDerivation {
3333 LC_ALL = "en_US.UTF-8";
3434
3535 nativeBuildInputs = [ autoreconfHook pkgconfig ];
36− buildInputs = [ boost boost.dev ecasound libGLU_combined help2man libsndfile fftwFloat libjack2 libxml2 qt4 glibcLocales ];
36+ buildInputs = [ boost boost.dev ecasound libGLU libGL help2man libsndfile fftwFloat libjack2 libxml2 qt4 glibcLocales ];
3737
3838 # 1) Fix detecting version. https://github.com/SoundScapeRenderer/ssr/pull/53
3939 # 2) Make it find ecasound headers
pkgs/applications/audio/yoshimi/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, alsaLib, boost, cairo, cmake, fftwSinglePrec, fltk, pcre
2−, libjack2, libsndfile, libXdmcp, readline, lv2, libGLU_combined, minixml, pkgconfig, zlib, xorg
2+, libjack2, libsndfile, libXdmcp, readline, lv2, libGLU, libGL, minixml, pkgconfig, zlib, xorg
33}:
44
55assert stdenv ? glibc;
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 };
1515
1616 buildInputs = [
17− alsaLib boost cairo fftwSinglePrec fltk libjack2 libsndfile libXdmcp readline lv2 libGLU_combined
17+ alsaLib boost cairo fftwSinglePrec fltk libjack2 libsndfile libXdmcp readline lv2 libGLU libGL
1818 minixml zlib xorg.libpthreadstubs pcre
1919 ];
2020
pkgs/applications/editors/kodestudio/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, lib, fetchurl, makeDesktopItem, makeWrapper
22, # Patchelf dependencies:
3− alsaLib, atomEnv, boehmgc, flac, libogg, libvorbis, libXScrnSaver, libGLU_combined
3+ alsaLib, atomEnv, boehmgc, flac, libogg, libvorbis, libXScrnSaver, libGLU, libGL
44, openssl, xorg, zlib
55}:
66
@@ -56,7 +56,7 @@ in
5656 $out/kodestudio
5757 patchelf \
5858 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
59− --set-rpath ".:${stdenv.cc.libc}/lib:${xorg.libXinerama}/lib:${xorg.libX11}/lib:${alsaLib}/lib:${libGLU_combined}/lib:${openssl.out}/lib" \
59+ --set-rpath ".:${stdenv.cc.libc}/lib:${xorg.libXinerama}/lib:${xorg.libX11}/lib:${alsaLib}/lib:${libGL}/lib:${libGLU}/lib:${openssl.out}/lib" \
6060 $out/resources/app/extensions/krom/Krom/linux/Krom
6161 patchelf \
6262 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
pkgs/applications/graphics/antimony/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, libpng, python3
2−, libGLU_combined, qtbase, wrapQtAppsHook, ncurses
2+, libGLU, libGL, qtbase, wrapQtAppsHook, ncurses
33, cmake, flex, lemon
44}:
55
@@ -29,7 +29,7 @@ in
2929
3030 buildInputs = [
3131 libpng python3 python3.pkgs.boost
32− libGLU_combined qtbase wrapQtAppsHook
32+ libGLU libGL qtbase wrapQtAppsHook
3333 ncurses
3434 ];
3535
pkgs/applications/graphics/cinepaint/default.nix+2−2
@@ -2,7 +2,7 @@
22 flex, libtiff, libjpeg, libpng, libexif, zlib, perlPackages, libX11,
33 pythonPackages, gettext, intltool, babl, gegl,
44 glib, makedepend, xorgproto, libXmu, openexr,
5− libGLU_combined, libXext, libXpm, libXau, libXxf86vm, pixman, libpthreadstubs, fltk } :
5+ libGLU, libGL, libXext, libXpm, libXau, libXxf86vm, pixman, libpthreadstubs, fltk } :
66
77let
88 inherit (pythonPackages) python pygtk;
@@ -16,7 +16,7 @@ in stdenv.mkDerivation rec {
1616
1717 buildInputs = [ libpng gtk2 freetype fontconfig lcms flex libtiff libjpeg
1818 libexif zlib libX11 python pygtk gettext intltool babl
19− gegl glib makedepend xorgproto libXmu openexr libGLU_combined
19+ gegl glib makedepend xorgproto libXmu openexr libGLU libGL
2020 libXext libXpm libXau libXxf86vm pixman libpthreadstubs fltk
2121 ] ++ (with perlPackages; [ perl XMLParser ]);
2222
pkgs/applications/graphics/draftsight/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, dpkg, makeWrapper, gcc, libGLU_combined, xdg_utils,
1+{ stdenv, fetchurl, dpkg, makeWrapper, gcc, libGLU, libGL, xdg_utils,
22 dbus, alsaLib, cups, fontconfig, glib, icu, libpng12,
33 xkeyboard_config, zlib, libxslt, libxml2, sqlite, orc,
44 libX11, libXcursor, libXrandr, libxcb, libXi, libSM, libICE,
@@ -71,7 +71,7 @@ stdenv.mkDerivation {
7171 sha256 = "05lrvml0zkzqg0sj6sj2h8h66hxdmsw5fg9fwz923r1y8j48qxdx";
7272 };
7373
74− libPath = stdenv.lib.makeLibraryPath [ gcc.cc libGLU_combined xdg_utils
74+ libPath = stdenv.lib.makeLibraryPath [ gcc.cc libGLU libGL xdg_utils
7575 dbus alsaLib cups.lib fontconfig glib icu libpng12
7676 xkeyboard_config zlib libxslt libxml2 sqlite orc libX11
7777 libXcursor libXrandr libxcb libXi libSM libICE libXrender
pkgs/applications/graphics/exrdisplay/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, fltk, openexr, libGLU_combined, ctl }:
1+{ stdenv, fetchurl, pkgconfig, fltk, openexr, libGLU, libGL, ctl }:
22
33stdenv.mkDerivation {
44 name ="openexr_viewers-2.2.1";
@@ -17,7 +17,7 @@ stdenv.mkDerivation {
1717 '';
1818
1919 nativeBuildInputs = [ pkgconfig ];
20− buildInputs = [ openexr fltk libGLU_combined ctl ];
20+ buildInputs = [ openexr fltk libGLU libGL ctl ];
2121
2222 meta = {
2323 description = "Application for viewing OpenEXR images on a display at various exposure settings";
pkgs/applications/graphics/freepv/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libjpeg, libGLU_combined, freeglut, zlib, cmake, libX11, libxml2, libpng,
1+{ stdenv, fetchurl, libjpeg, libGLU, libGL, freeglut, zlib, cmake, libX11, libxml2, libpng,
22 libXxf86vm }:
33
44stdenv.mkDerivation {
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
99 sha256 = "1w19abqjn64w47m35alg7bcdl1p97nf11zn64cp4p0dydihmhv56";
1010 };
1111
12− buildInputs = [ libjpeg libGLU_combined freeglut zlib cmake libX11 libxml2 libpng
12+ buildInputs = [ libjpeg libGLU libGL freeglut zlib cmake libX11 libxml2 libpng
1313 libXxf86vm ];
1414
1515 postPatch = ''
pkgs/applications/graphics/hugin/default.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, cmake, fetchurl, gnumake, makeWrapper, pkgconfig, fetchpatch
22, autopanosiftc, boost, cairo, enblend-enfuse, exiv2, fftw, flann, gettext
33, glew, ilmbase, lcms2, lensfun, libjpeg, libpng, libtiff, libX11, libXi
4−, libXmu, libGLU_combined, openexr, panotools, perlPackages, sqlite, vigra, wxGTK, zlib
4+, libXmu, libGLU, libGL, openexr, panotools, perlPackages, sqlite, vigra, wxGTK, zlib
55}:
66
77stdenv.mkDerivation rec {
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222
2323 buildInputs = [
2424 boost cairo exiv2 fftw flann gettext glew ilmbase lcms2 lensfun libjpeg
25− libpng libtiff libX11 libXi libXmu libGLU_combined openexr panotools sqlite vigra
25+ libpng libtiff libX11 libXi libXmu libGLU libGL openexr panotools sqlite vigra
2626 wxGTK zlib
2727 ];
2828
pkgs/applications/graphics/k3d/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, fetchpatch, ftgl, glew, asciidoc
2−, cmake, ninja, libGLU_combined, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
2+, cmake, ninja, libGLU, libGL, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
33, libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff
44, gettext, intltool, perl, gtkmm2, glibmm, gtkglext, pangox_compat, libXmu }:
55
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232 nativeBuildInputs = [ cmake ninja gettext intltool doxygen pkgconfig perl asciidoc ];
3333
3434 buildInputs = [
35− libGLU_combined zlib python expat libxml2 libsigcxx libuuid freetype libpng
35+ libGLU libGL zlib python expat libxml2 libsigcxx libuuid freetype libpng
3636 boost cairomm imagemagick libjpeg libtiff
3737 ftgl glew gtkmm2 glibmm gtkglext pangox_compat libXmu
3838 ];
pkgs/applications/graphics/kodelife/default.nix+2−2
@@ -3,7 +3,7 @@
33, alsaLib
44, glib
55, gst_all_1
6−, libGLU_combined
6+, libGLU, libGL
77, xorg
88}:
99
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
3333 glib
3434 gst_all_1.gstreamer
3535 gst_all_1.gst-plugins-base
36− libGLU_combined
36+ libGLU libGL
3737 xorg.libX11
3838 ];
3939 in ''
pkgs/applications/graphics/openscad/default.nix+2−2
@@ -7,7 +7,7 @@
77, flex
88, eigen
99, boost
10−, libGLU_combined
10+, libGLU, libGL
1111, glew
1212, opencsg
1313, cgal
@@ -44,7 +44,7 @@ mkDerivation rec {
4444 eigen boost glew opencsg cgal mpfr gmp glib
4545 harfbuzz lib3mf libzip double-conversion freetype fontconfig
4646 qtbase qtmultimedia qscintilla
47− ] ++ stdenv.lib.optional stdenv.isLinux libGLU_combined
47+ ] ++ stdenv.lib.optionals stdenv.isLinux [ libGLU libGL ]
4848 ++ stdenv.lib.optional stdenv.isDarwin qtmacextras
4949 ;
5050
pkgs/applications/graphics/paraview/default.nix+2−2
@@ -1,6 +1,6 @@
11{
22stdenv, fetchFromGitHub, cmake, makeWrapper
3−,qtbase, qttools, python, libGLU_combined
3+,qtbase, qttools, python, libGLU, libGL
44,libXt, qtx11extras, qtxmlpatterns
55, mkDerivation
66}:
@@ -43,7 +43,7 @@ mkDerivation rec {
4343 buildInputs = [
4444 python
4545 python.pkgs.numpy
46− libGLU_combined
46+ libGLU libGL
4747 libXt
4848 qtbase
4949 qtx11extras
pkgs/applications/misc/blender/default.nix+2−2
@@ -1,7 +1,7 @@
11{ config, stdenv, lib, fetchurl, boost, cmake, ffmpeg, gettext, glew
22, ilmbase, libXi, libX11, libXext, libXrender
33, libjpeg, libpng, libsamplerate, libsndfile
4−, libtiff, libGLU_combined, openal, opencolorio, openexr, openimageio, openjpeg_1, python3Packages
4+, libtiff, libGLU, libGL, openal, opencolorio, openexr, openimageio, openjpeg_1, python3Packages
55, openvdb, libXxf86vm, tbb
66, zlib, fftw, opensubdiv, freetype, jemalloc, ocl-icd, addOpenGLRunpath
77, jackaudioSupport ? false, libjack2
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
2727 buildInputs =
2828 [ boost ffmpeg gettext glew ilmbase
2929 libXi libX11 libXext libXrender
30− freetype libjpeg libpng libsamplerate libsndfile libtiff libGLU_combined openal
30+ freetype libjpeg libpng libsamplerate libsndfile libtiff libGLU libGL openal
3131 opencolorio openexr openimageio openjpeg_1 python zlib fftw jemalloc
3232 (opensubdiv.override { inherit cudaSupport; })
3333 openvdb libXxf86vm tbb
pkgs/applications/misc/cpp-ethereum/default.nix+2−2
@@ -13,7 +13,7 @@
1313, miniupnpc
1414, libmicrohttpd
1515, gmp
16−, libGLU_combined
16+, libGLU, libGL
1717, extraCmakeFlags ? []
1818}:
1919stdenv.mkDerivation rec {
@@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
6969 miniupnpc
7070 libmicrohttpd
7171 gmp
72− libGLU_combined
72+ libGLU libGL
7373 ];
7474
7575 dontStrip = true;
pkgs/applications/misc/googleearth/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, glibc, libGLU_combined, freetype, glib, libSM, libICE, libXi, libXv
1+{ stdenv, fetchurl, glibc, libGLU, libGL, freetype, glib, libSM, libICE, libXi, libXv
22, libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11
33, zlib, fontconfig, dpkg, libproxy, libxml2, gstreamer, gst_all_1, dbus }:
44
@@ -20,7 +20,7 @@ let
2020 libICE
2121 libXi
2222 libXv
23− libGLU_combined
23+ libGLU libGL
2424 libXrender
2525 libXrandr
2626 libXfixes
pkgs/applications/misc/icesl/default.nix+2−2
@@ -1,6 +1,6 @@
1−{ stdenv, lib, fetchzip, freeglut, libXmu, libXi, libX11, libICE, libGLU_combined, libSM, libXext, dialog, makeWrapper }:
1+{ stdenv, lib, fetchzip, freeglut, libXmu, libXi, libX11, libICE, libGLU, libGL, libSM, libXext, dialog, makeWrapper }:
22let
3− lpath = stdenv.lib.makeLibraryPath [ libXmu libXi libX11 freeglut libICE libGLU_combined libSM libXext ];
3+ lpath = stdenv.lib.makeLibraryPath [ libXmu libXi libX11 freeglut libICE libGLU libGL libSM libXext ];
44in
55stdenv.mkDerivation rec {
66 pname = "iceSL";
pkgs/applications/misc/llpp/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, lib, substituteAll, makeWrapper, fetchgit, ocaml, mupdf, libX11,
2−libGLU_combined, freetype, xclip, inotify-tools, procps }:
2+libGLU, libGL, freetype, xclip, inotify-tools, procps }:
33
44assert lib.versionAtLeast (lib.getVersion ocaml) "4.07";
55
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020 });
2121
2222 nativeBuildInputs = [ makeWrapper ];
23− buildInputs = [ ocaml mupdf libX11 libGLU_combined freetype ];
23+ buildInputs = [ ocaml mupdf libX11 libGLU libGL freetype ];
2424
2525 dontStrip = true;
2626
pkgs/applications/misc/merkaartor/default.nix+5−5
@@ -1,20 +1,20 @@
11{ stdenv, fetchFromGitHub, makeWrapper, qmake, pkgconfig, boost, gdal, proj
2−, qtbase, qtsvg, qtwebkit }:
2+, qtbase, qtsvg, qtwebview, qtwebkit }:
33
44stdenv.mkDerivation rec {
55 pname = "merkaartor";
6− version = "0.18.3";
6+ version = "unstable-2019-11-12";
77
88 src = fetchFromGitHub {
99 owner = "openstreetmap";
1010 repo = "merkaartor";
11− rev = version;
12− sha256 = "0ls3q8m1hxiwyrypy6qca8wczhl4969ncl0sszfdwfv70rzxjk88";
11+ rev = "29b3388680a03f1daac0037a2b504ea710da879a";
12+ sha256 = "0h3d3srzl06p2ajq911j05zr4vkl88qij18plydx45yqmvyvh0xz";
1313 };
1414
1515 nativeBuildInputs = [ makeWrapper qmake pkgconfig ];
1616
17− buildInputs = [ boost gdal proj qtbase qtsvg qtwebkit ];
17+ buildInputs = [ boost gdal proj qtbase qtsvg qtwebview qtwebkit ];
1818
1919 enableParallelBuilding = true;
2020
pkgs/applications/misc/navit/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, pkgconfig, gtk2, fontconfig, freetype, imlib2
2−, SDL_image, libGLU_combined, libXmu, freeglut, pcre, dbus, dbus-glib, glib
2+, SDL_image, libGLU, libGL, libXmu, freeglut, pcre, dbus, dbus-glib, glib
33, librsvg, freeimage, libxslt, cairo, gdk-pixbuf, pango
44, atk, patchelf, fetchurl, bzip2, python, gettext, quesoglc
55, gd, cmake, shapelib, SDL_ttf, fribidi, makeWrapper
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
4646 ];
4747
4848 buildInputs = [
49− gtk2 fontconfig freetype imlib2 libGLU_combined freeimage
49+ gtk2 fontconfig freetype imlib2 libGLU libGL freeimage
5050 libxslt libXmu freeglut python gettext quesoglc gd
5151 fribidi pcre dbus dbus-glib librsvg shapelib glib
5252 cairo gdk-pixbuf pango atk
pkgs/applications/misc/openbrf/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, qtbase, vcg, glew, qmake, libGLU_combined }:
1+{ stdenv, fetchFromGitHub, qtbase, vcg, glew, qmake, libGLU, libGL }:
22
33
44stdenv.mkDerivation {
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
2828 install -Dm644 reference.brf $out/share/openBrf/reference.brf
2929
3030 patchelf \
31− --set-rpath "${stdenv.lib.makeLibraryPath [ qtbase glew stdenv.cc.cc libGLU_combined ]}" \
31+ --set-rpath "${stdenv.lib.makeLibraryPath [ qtbase glew stdenv.cc.cc libGLU libGL ]}" \
3232 $out/share/openBrf/openBrf
3333
3434 mkdir -p "$out/bin"
pkgs/applications/networking/browsers/chromium/common.nix+2−2
@@ -13,7 +13,7 @@
1313, bison, gperf
1414, glib, gtk3, dbus-glib
1515, glibc
16−, libXScrnSaver, libXcursor, libXtst, libGLU_combined, libGL
16+, libXScrnSaver, libXcursor, libXtst, libGLU, libGL
1717, protobuf, speechd, libXdamage, cups
1818, ffmpeg, libxslt, libxml2, at-spi2-core
1919, jdk
@@ -123,7 +123,7 @@ let
123123 utillinux alsaLib
124124 bison gperf kerberos
125125 glib gtk3 dbus-glib
126− libXScrnSaver libXcursor libXtst libGLU_combined
126+ libXScrnSaver libXcursor libXtst libGLU libGL
127127 pciutils protobuf speechd libXdamage at-spi2-core
128128 jdk.jre
129129 ] ++ optional gnomeKeyringSupport libgnome-keyring3
pkgs/applications/networking/browsers/firefox-bin/default.nix+2−2
@@ -32,7 +32,7 @@
3232, libgnomeui
3333, libnotify
3434, gnome3
35−, libGLU_combined
35+, libGLU, libGL
3636, nspr
3737, nss
3838, pango
@@ -126,7 +126,7 @@ stdenv.mkDerivation {
126126 libgnome
127127 libgnomeui
128128 libnotify
129− libGLU_combined
129+ libGLU libGL
130130 nspr
131131 nss
132132 pango
pkgs/applications/networking/browsers/firefox/common.nix+2−2
@@ -7,7 +7,7 @@
77{ lib, stdenv, pkgconfig, pango, perl, python2, python3, zip, libIDL
88, libjpeg, zlib, dbus, dbus-glib, bzip2, xorg
99, freetype, fontconfig, file, nspr, nss, libnotify
10−, yasm, libGLU_combined, sqlite, unzip, makeWrapper
10+, yasm, libGLU, libGL, sqlite, unzip, makeWrapper
1111, hunspell, libXdamage, libevent, libstartup_notification, libvpx
1212, icu, libpng, jemalloc, glib
1313, autoconf213, which, gnused, cargo, rustc, llvmPackages
@@ -131,7 +131,7 @@ stdenv.mkDerivation rec {
131131 gtk2 perl zip libIDL libjpeg zlib bzip2
132132 dbus dbus-glib pango freetype fontconfig xorg.libXi xorg.libXcursor
133133 xorg.libX11 xorg.libXrender xorg.libXft xorg.libXt file
134− libnotify xorg.pixman yasm libGLU_combined
134+ libnotify xorg.pixman yasm libGLU libGL
135135 xorg.libXScrnSaver xorg.xorgproto
136136 xorg.libXext sqlite unzip makeWrapper
137137 libevent libstartup_notification libvpx /* cairo */
pkgs/applications/networking/browsers/palemoon/default.nix+2−2
@@ -3,7 +3,7 @@
33, dbus, dbus-glib, ffmpeg, file, fontconfig, freetype
44, gnome2, gnum4, gtk2, hunspell, libevent, libjpeg
55, libnotify, libstartup_notification, makeWrapper
6−, libGLU_combined, perl, python, libpulseaudio
6+, libGLU, libGL, perl, python, libpulseaudio
77, unzip, xorg, wget, which, yasm, zip, zlib
88}:
99
@@ -43,7 +43,7 @@ in stdenv.mkDerivation rec {
4343 buildInputs = [
4444 alsaLib bzip2 cairo dbus dbus-glib ffmpeg file fontconfig freetype
4545 gnome2.GConf gnum4 gtk2 hunspell libevent libjpeg libnotify
46− libstartup_notification makeWrapper libGLU_combined perl
46+ libstartup_notification makeWrapper libGLU libGL perl
4747 pkgconfig python libpulseaudio unzip wget which yasm zip zlib
4848 ] ++ (with xorg; [
4949 libX11 libXext libXft libXi libXrender libXScrnSaver
pkgs/applications/networking/instant-messengers/viber/default.nix+2−2
@@ -1,6 +1,6 @@
11{fetchurl, stdenv, dpkg, makeWrapper,
22 alsaLib, cups, curl, dbus, expat, fontconfig, freetype, glib, gst_all_1, harfbuzz, libcap,
3− libpulseaudio, libxml2, libxslt, libGLU_combined, nspr, nss, openssl, systemd, wayland, xorg, zlib, ...
3+ libpulseaudio, libxml2, libxslt, libGLU, libGL, nspr, nss, openssl, systemd, wayland, xorg, zlib, ...
44}:
55
66stdenv.mkDerivation {
@@ -32,7 +32,7 @@ stdenv.mkDerivation {
3232 libpulseaudio
3333 libxml2
3434 libxslt
35− libGLU_combined
35+ libGLU libGL
3636 nspr
3737 nss
3838 openssl
pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix+2−2
@@ -34,7 +34,7 @@
3434, libgnome
3535, libgnomeui
3636, gnome3
37−, libGLU_combined
37+, libGLU, libGL
3838, nspr
3939, nss
4040, pango
@@ -116,7 +116,7 @@ stdenv.mkDerivation {
116116 libcanberra-gtk2
117117 libgnome
118118 libgnomeui
119− libGLU_combined
119+ libGLU libGL
120120 nspr
121121 nss
122122 pango
pkgs/applications/networking/mailreaders/thunderbird/default.nix+2−2
@@ -1,7 +1,7 @@
11{ lib, stdenv, fetchurl, pkgconfig, gtk2, pango, perl, python2, python3, nodejs
22, libIDL, libjpeg, zlib, dbus, dbus-glib, bzip2, xorg
33, freetype, fontconfig, file, nspr, nss, libnotify
4−, yasm, libGLU_combined, sqlite, zip, unzip
4+, yasm, libGLU, libGL, sqlite, zip, unzip
55, libevent, libstartup_notification
66, icu, libpng, jemalloc
77, autoconf213, which, m4, fetchpatch
@@ -37,7 +37,7 @@ in stdenv.mkDerivation rec {
3737 [ gtk2 zip libIDL libjpeg zlib bzip2
3838 dbus dbus-glib pango freetype fontconfig xorg.libXi
3939 xorg.libX11 xorg.libXrender xorg.libXft xorg.libXt file
40− nspr nss libnotify xorg.pixman yasm libGLU_combined
40+ nspr nss libnotify xorg.pixman yasm libGLU libGL
4141 xorg.libXScrnSaver xorg.xorgproto
4242 xorg.libXext sqlite unzip
4343 libevent libstartup_notification /* cairo */
pkgs/applications/networking/remote/anydesk/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, makeWrapper, makeDesktopItem
2−, atk, cairo, gdk-pixbuf, glib, gnome2, gtk2, libGLU_combined, pango, xorg
2+, atk, cairo, gdk-pixbuf, glib, gnome2, gtk2, libGLU, libGL, pango, xorg
33, lsb-release, freetype, fontconfig, pangox_compat, polkit, polkit_gnome
44, pulseaudio }:
55
@@ -37,7 +37,7 @@ in stdenv.mkDerivation rec {
3737
3838 buildInputs = [
3939 atk cairo gdk-pixbuf glib gtk2 stdenv.cc.cc pango
40− gnome2.gtkglext libGLU_combined freetype fontconfig
40+ gnome2.gtkglext libGLU libGL freetype fontconfig
4141 pangox_compat polkit polkit_gnome pulseaudio
4242 ] ++ (with xorg; [
4343 libxcb libxkbfile libX11 libXdamage libXext libXfixes libXi libXmu
pkgs/applications/office/libreoffice/default.nix+2−2
@@ -4,7 +4,7 @@
44, bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which
55, icu, boost, jdk, ant, cups, xorg, libcmis, fontforge
66, openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux
7−, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, libmysqlclient
7+, librsvg, gnome_vfs, libGLU, libGL, bsh, CoinMP, libwps, libabw, libmysqlclient
88, autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr
99, libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra
1010, unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio
@@ -365,7 +365,7 @@ in stdenv.mkDerivation rec {
365365 hunspell icu jdk lcms libcdr libexttextcat unixODBC libjpeg
366366 libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11
367367 libXaw libXext libXi libXinerama libxml2 libxslt libXtst
368− libXdmcp libpthreadstubs libGLU_combined mythes gst_all_1.gstreamer
368+ libXdmcp libpthreadstubs libGLU libGL mythes gst_all_1.gstreamer
369369 gst_all_1.gst-plugins-base glib libmysqlclient
370370 neon nspr nss openldap openssl ORBit2 pam perl pkgconfig poppler
371371 python3 sane-backends unzip vigra which zip zlib
pkgs/applications/office/libreoffice/still.nix+2−2
@@ -4,7 +4,7 @@
44, bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which
55, icu, boost, jdk, ant, cups, xorg, libcmis, fontforge
66, openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux
7−, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw, libmysqlclient
7+, librsvg, gnome_vfs, libGLU, libGL, bsh, CoinMP, libwps, libabw, libmysqlclient
88, autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr
99, libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra
1010, unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio
@@ -362,7 +362,7 @@ in stdenv.mkDerivation rec {
362362 hunspell icu jdk lcms libcdr libexttextcat unixODBC libjpeg
363363 libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11
364364 libXaw libXext libXi libXinerama libxml2 libxslt libXtst
365− libXdmcp libpthreadstubs libGLU_combined mythes gst_all_1.gstreamer
365+ libXdmcp libpthreadstubs libGLU libGL mythes gst_all_1.gstreamer
366366 gst_all_1.gst-plugins-base glib libmysqlclient
367367 neon nspr nss openldap openssl ORBit2 pam perl poppler
368368 python3 sane-backends unzip vigra which zip zlib
pkgs/applications/office/zotero/default.nix+2−2
@@ -25,7 +25,7 @@
2525, libXt
2626, libnotify
2727, gnome3
28−, libGLU_combined
28+, libGLU, libGL
2929, nspr
3030, nss
3131, pango
@@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
7575 libXrender
7676 libXt
7777 libnotify
78− libGLU_combined
78+ libGLU libGL
7979 nspr
8080 nss
8181 pango
pkgs/applications/science/astronomy/celestia/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, freeglut, gtk2, gtkglext, libjpeg_turbo, libtheora, libXmu
2−, lua, libGLU_combined, pkgconfig, perl, autoreconfHook
2+, lua, libGLU, libGL, pkgconfig, perl, autoreconfHook
33}:
44
55let
@@ -44,7 +44,7 @@ stdenv.mkDerivation {
4444 };
4545
4646 nativeBuildInputs = [ pkgconfig ];
47− buildInputs = [ freeglut gtk2 gtkglext libjpeg_turbo libtheora libXmu libGLU_combined lua
47+ buildInputs = [ freeglut gtk2 gtkglext libjpeg_turbo libtheora libXmu libGLU libGL lua
4848 perl autoreconfHook ];
4949
5050 patchPhase = ''
pkgs/applications/science/astronomy/gravit/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU_combined, libpng, lua5, autoconf, automake }:
1+{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU, libGL, libpng, lua5, autoconf, automake }:
22
33stdenv.mkDerivation rec {
44 name = "gravit-0.5.1";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 sha256 = "14vf7zj2bgrl96wsl3f1knsggc8h9624354ajzd72l46y09x5ky7";
99 };
1010
11− buildInputs = [ libGLU_combined SDL SDL_ttf SDL_image lua5 libpng libSM libICE ];
11+ buildInputs = [ libGLU libGL SDL SDL_ttf SDL_image lua5 libpng libSM libICE ];
1212
1313 nativeBuildInputs = [ autoconf automake ];
1414
pkgs/applications/science/astronomy/stellarium/default.nix+2−2
@@ -1,5 +1,5 @@
11{ mkDerivation, lib, fetchFromGitHub
2−, cmake, freetype, libpng, libGLU_combined, openssl, perl, libiconv
2+, cmake, freetype, libpng, libGLU, libGL, openssl, perl, libiconv
33, qtscript, qtserialport, qttools
44, qtmultimedia, qtlocation, qtbase, wrapQtAppsHook
55}:
@@ -18,7 +18,7 @@ mkDerivation rec {
1818 nativeBuildInputs = [ cmake perl wrapQtAppsHook ];
1919
2020 buildInputs = [
21− freetype libpng libGLU_combined openssl libiconv qtscript qtserialport qttools
21+ freetype libpng libGLU libGL openssl libiconv qtscript qtserialport qttools
2222 qtmultimedia qtlocation qtbase
2323 ];
2424
pkgs/applications/science/chemistry/avogadro/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, qt4, zlib, eigen, openbabel, pkgconfig, libGLU_combined, libX11, doxygen }:
1+{ stdenv, fetchurl, cmake, qt4, zlib, eigen, openbabel, pkgconfig, libGLU, libGL, libX11, doxygen }:
22
33stdenv.mkDerivation rec {
44 name = "avogadro-1.1.1";
@@ -8,11 +8,11 @@ stdenv.mkDerivation rec {
88 sha256 = "050ag9p4vg7jg8hj1wqfv7lsm6ar2isxjw2vw85s49vsl7g7nvzy";
99 };
1010
11− buildInputs = [ qt4 eigen zlib openbabel libGLU_combined libX11 ];
11+ buildInputs = [ qt4 eigen zlib openbabel libGL libGLU libX11 ];
1212
1313 nativeBuildInputs = [ cmake pkgconfig doxygen ];
1414
15− NIX_CFLAGS_COMPILE = "-include ${libGLU_combined}/include/GL/glu.h";
15+ NIX_CFLAGS_COMPILE = "-include ${libGLU.dev}/include/GL/glu.h";
1616
1717 patches = [
1818 (fetchurl {
pkgs/applications/science/electronics/kicad/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ wxGTK, lib, stdenv, fetchurl, fetchFromGitHub, cmake, libGLU_combined, zlib
1+{ wxGTK, lib, stdenv, fetchurl, fetchFromGitHub, cmake, libGLU, libGL, zlib
22, libX11, gettext, glew, glm, cairo, curl, openssl, boost, pkgconfig
33, doxygen, pcre, libpthreadstubs, libXdmcp
44, wrapGAppsHook
@@ -63,7 +63,7 @@ in stdenv.mkDerivation rec {
6363 propagatedBuildInputs = [ pythonPackages.wxPython ];
6464
6565 buildInputs = [
66− libGLU_combined zlib libX11 wxGTK pcre libXdmcp glew glm libpthreadstubs
66+ libGLU libGL zlib libX11 wxGTK pcre libXdmcp glew glm libpthreadstubs
6767 cairo curl openssl boost
6868 swig (python.withPackages (ps: with ps; [ wxPython ]))
6969 ] ++ optional (oceSupport) opencascade
pkgs/applications/science/electronics/kicad/unstable.nix+2−2
@@ -1,4 +1,4 @@
1−{ wxGTK, lib, stdenv, fetchFromGitHub, cmake, libGLU_combined, zlib
1+{ wxGTK, lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, zlib
22, libX11, gettext, glew, glm, cairo, curl, openssl, boost, pkgconfig
33, doxygen, pcre, libpthreadstubs, libXdmcp
44
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
4040
4141 nativeBuildInputs = [ cmake doxygen pkgconfig ];
4242 buildInputs = [
43− libGLU_combined zlib libX11 wxGTK pcre libXdmcp gettext glew glm libpthreadstubs
43+ libGLU libGL zlib libX11 wxGTK pcre libXdmcp gettext glew glm libpthreadstubs
4444 cairo curl openssl boost
4545 ] ++ optional (oceSupport) opencascade
4646 ++ optional (ngspiceSupport) libngspice
pkgs/applications/science/electronics/pcb/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, gtk2, bison, intltool, flex
2−, netpbm, imagemagick, dbus, xlibsWrapper, libGLU_combined
2+, netpbm, imagemagick, dbus, xlibsWrapper, libGLU, libGL
33, shared-mime-info, tcl, tk, gnome2, pangox_compat, gd, xorg
44}:
55
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 nativeBuildInputs = [ pkgconfig ];
1616 buildInputs = [
1717 gtk2 bison intltool flex netpbm imagemagick dbus xlibsWrapper
18− libGLU_combined tcl shared-mime-info tk
18+ libGLU libGL tcl shared-mime-info tk
1919 gnome2.gtkglext pangox_compat gd xorg.libXmu
2020 ];
2121
pkgs/applications/science/logic/mcrl2/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, cmake, libGLU_combined, qt5, boost}:
1+{stdenv, fetchurl, cmake, libGLU, libGL, qt5, boost}:
22
33stdenv.mkDerivation rec {
44 version = "201707";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "1c8h94ja7271ph61zrcgnjgblxppld6v22f7f900prjgzbcfy14m";
1111 };
1212
13− buildInputs = [ cmake libGLU_combined qt5.qtbase boost ];
13+ buildInputs = [ cmake libGLU libGL qt5.qtbase boost ];
1414
1515 enableParallelBuilding = true;
1616
pkgs/applications/science/math/giac/default.nix+3−3
@@ -1,10 +1,10 @@
11{ stdenv, fetchurl, fetchpatch, texlive, bison, flex, liblapack
22, gmp, mpfr, pari, ntl, gsl, blas, mpfi, ecm, glpk, nauty
33, readline, gettext, libpng, libao, gfortran, perl
4−, enableGUI ? false, libGLU_combined ? null, xorg ? null, fltk ? null
4+, enableGUI ? false, libGL ? null, libGLU ? null, xorg ? null, fltk ? null
55}:
66
7−assert enableGUI -> libGLU_combined != null && xorg != null && fltk != null;
7+assert enableGUI -> libGLU != null && libGL != null && xorg != null && fltk != null;
88
99stdenv.mkDerivation rec {
1010 name = "${attr}-${version}";
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
4444 (stdenv.lib.getLib gfortran.cc)
4545 liblapack
4646 ] ++ stdenv.lib.optionals enableGUI [
47− libGLU_combined fltk xorg.libX11
47+ libGL libGLU fltk xorg.libX11
4848 ];
4949
5050 /* fixes:
pkgs/applications/science/math/glsurf/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, ocamlPackages, libGLU_combined, freeglut
1+{ stdenv, fetchurl, ocamlPackages, libGLU, libGL, freeglut
22, libmysqlclient, mpfr, gmp, libtiff, libjpeg, libpng, giflib
33}:
44
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010 sha256 = "0w8xxfnw2snflz8wdr2ca9f5g91w5vbyp1hwlx1v7vg83d4bwqs7";
1111 };
1212
13− buildInputs = [ freeglut libGLU_combined libmysqlclient mpfr gmp
13+ buildInputs = [ freeglut libGLU libGL libmysqlclient mpfr gmp
1414 libtiff libjpeg libpng giflib ]
1515 ++ (with ocamlPackages; [
1616 ocaml findlib ocaml_mysql lablgl camlimages_4_0 mlgmpidl
pkgs/applications/science/math/gmsh/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, openblasCompat, gfortran, gmm, fltk, libjpeg
2−, zlib, libGLU_combined, libGLU, xorg, opencascade-occt }:
2+, zlib, libGL, libGLU, xorg, opencascade-occt }:
33
44stdenv.mkDerivation rec {
55 pname = "gmsh";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "1p7hibmsgv961lfkzdxlgcvmcb0q155m2sp60r97cjsfzhw68g45";
1111 };
1212
13− buildInputs = [ openblasCompat gmm fltk libjpeg zlib libGLU_combined
13+ buildInputs = [ openblasCompat gmm fltk libjpeg zlib libGLU libGL
1414 libGLU xorg.libXrender xorg.libXcursor xorg.libXfixes xorg.libXext
1515 xorg.libXft xorg.libXinerama xorg.libX11 xorg.libSM xorg.libICE
1616 opencascade-occt
pkgs/applications/science/medicine/aliza/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, rpmextract, makeWrapper, patchelf, qt4, zlib, libX11, libXt, libSM, libICE, libXext, libGLU_combined }:
1+{ stdenv, fetchurl, rpmextract, makeWrapper, patchelf, qt4, zlib, libX11, libXt, libSM, libICE, libXext, libGLU, libGL }:
22
33with stdenv.lib;
44stdenv.mkDerivation {
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
2727 '';
2828
2929 postInstall = let
30− libs = stdenv.lib.makeLibraryPath [ qt4 zlib stdenv.cc.cc libSM libICE libX11 libXext libXt libGLU_combined ];
30+ libs = stdenv.lib.makeLibraryPath [ qt4 zlib stdenv.cc.cc libSM libICE libX11 libXext libXt libGLU libGL ];
3131 in ''
3232 ${patchelf}/bin/patchelf \
3333 --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
pkgs/applications/science/misc/boinc/default.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig, m4, curl,
2−libGLU_combined, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, xcbutil,
2+libGLU, libGL, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, xcbutil,
33sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
44
55let
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222 nativeBuildInputs = [ libtool automake autoconf m4 pkgconfig ];
2323
2424 buildInputs = [
25− curl libGLU_combined libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
25+ curl libGLU libGL libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
2626 libnotify patchelf libX11 libxcb xcbutil
2727 ];
2828
pkgs/applications/science/misc/golly/beta.nix+2−2
@@ -1,5 +1,5 @@
11{stdenv, fetchgit
2−, wxGTK, perl, python2, zlib, libGLU_combined, libX11
2+, wxGTK, perl, python2, zlib, libGLU, libGL, libX11
33, automake, autoconf
44}:
55
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 nativeBuildInputs = [autoconf automake];
2424
2525 buildInputs = [
26− wxGTK perl python2 zlib libGLU_combined libX11
26+ wxGTK perl python2 zlib libGLU libGL libX11
2727 ];
2828
2929 # Link against Python explicitly as it is needed for scripts
pkgs/applications/science/misc/gplates/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, qt4, qwt6_qt4, libGLU_combined, glew, gdal_1_11, cgal
1+{ stdenv, fetchurl, qt4, qwt6_qt4, libGLU, libGL, glew, gdal_1_11, cgal
22, proj, boost, cmake, python2, doxygen, graphviz, gmp }:
33
44stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 ];
1616
1717 buildInputs = [
18− qt4 qwt6_qt4 libGLU_combined glew gdal_1_11 cgal proj boost cmake python2
18+ qt4 qwt6_qt4 libGLU libGL glew gdal_1_11 cgal proj boost cmake python2
1919 doxygen graphviz gmp
2020 ];
2121
pkgs/applications/science/misc/root/5.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, fetchpatch, cmake, pcre, pkgconfig, python2
2−, libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lzma, gsl_1
2+, libX11, libXpm, libXft, libXext, libGLU, libGL, zlib, libxml2, lzma, gsl_1
33, Cocoa, OpenGL, noSplash ? false }:
44
55stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 buildInputs = [ cmake pcre python2 zlib libxml2 lzma gsl_1 ]
16− ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ]
16+ ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU libGL ]
1717 ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
1818 ;
1919
pkgs/applications/science/misc/root/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, pcre, pkgconfig, python2
2−, libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lz4, lzma, gsl, xxHash
2+, libX11, libXpm, libXft, libXext, libGLU, libGL, zlib, libxml2, lz4, lzma, gsl, xxHash
33, Cocoa, OpenGL, noSplash ? false }:
44
55stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 buildInputs = [ cmake pcre python2 zlib libxml2 lz4 lzma gsl xxHash ]
16− ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ]
16+ ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU libGL ]
1717 ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
1818 ;
1919
pkgs/applications/science/misc/tulip/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, libxml2, freetype, libGLU_combined, glew, qt4
1+{ fetchurl, stdenv, libxml2, freetype, libGLU, libGL, glew, qt4
22, cmake, makeWrapper, libjpeg, python }:
33
44let version = "5.2.1"; in
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 sha256 = "0bqmqy6sri87a8xv5xf7ffaq5zin4hiaa13g0l64b84i7yckfwky";
1212 };
1313
14− buildInputs = [ libxml2 freetype glew libGLU_combined qt4 libjpeg python ];
14+ buildInputs = [ libxml2 freetype glew libGLU libGL qt4 libjpeg python ];
1515
1616 nativeBuildInputs = [ cmake makeWrapper ];
1717
pkgs/applications/science/misc/vite/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchsvn, stdenv, cmake, qt4, libGLU_combined }:
1+{ fetchsvn, stdenv, cmake, qt4, libGLU, libGL }:
22
33# ViTE 1.1 has several bugs, so use the SVN version.
44let
@@ -23,7 +23,7 @@ stdenv.mkDerivation {
2323 ln -sv "${externals}" externals
2424 '';
2525
26− buildInputs = [ cmake qt4 libGLU_combined ];
26+ buildInputs = [ cmake qt4 libGLU libGL ];
2727
2828 NIX_LDFLAGS = "-lGLU";
2929
pkgs/applications/version-management/bcompare/default.nix+1−1
@@ -1,4 +1,4 @@
1−{ autoPatchelfHook, bzip2, cairo, coreutils, fetchurl, gdk-pixbuf, gnome2, gtk2, kcoreaddons, ki18n, kio, kservice, lib, qt4, qt511, qtbase, stdenv, runtimeShell }:
1+{ autoPatchelfHook, bzip2, cairo, coreutils, fetchurl, gdk-pixbuf, gnome2, gtk2, kcoreaddons, ki18n, kio, kservice, lib, qt4, qtbase, stdenv, runtimeShell }:
22
33stdenv.mkDerivation rec {
44 pname = "bcompare";
pkgs/applications/version-management/gource/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, SDL2, ftgl, pkgconfig, libpng, libjpeg, pcre
2−, SDL2_image, freetype, glew, libGLU_combined, boost, glm
2+, SDL2_image, freetype, glew, libGLU, libGL, boost, glm
33}:
44
55stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 buildInputs = [
16− glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU_combined
16+ glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU libGL
1717 boost glm freetype
1818 ];
1919
pkgs/applications/video/aegisub/default.nix+2−2
@@ -1,7 +1,7 @@
11{ config, stdenv, fetchurl
22, libX11, wxGTK
33, libiconv, fontconfig, freetype
4−, libGLU_combined
4+, libGLU, libGL
55, libass, fftw, ffms
66, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
77, icu, boost, intltool # New dependencies
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
3333 postPatch = "sed '1i#include <unicode/unistr.h>' -i src/utils.cpp";
3434
3535 buildInputs = with stdenv.lib;
36− [ pkgconfig intltool libX11 wxGTK fontconfig freetype libGLU_combined
36+ [ pkgconfig intltool libX11 wxGTK fontconfig freetype libGLU libGL
3737 libass fftw ffms ffmpeg zlib icu boost boost.out libiconv
3838 ]
3939 ++ optional spellcheckSupport hunspell
pkgs/applications/video/bomi/default.nix+2−2
@@ -1,6 +1,6 @@
11{ config, stdenv, fetchFromGitHub
22, fetchpatch, pkgconfig, perl, python, which
3−, libX11, libxcb, libGLU_combined
3+, libX11, libxcb, libGLU, libGL
44, qtbase, qtdeclarative, qtquickcontrols, qttools, qtx11extras, qmake, makeWrapper
55, libchardet
66, ffmpeg
@@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
5656 buildInputs = with stdenv.lib;
5757 [ libX11
5858 libxcb
59− libGLU_combined
59+ libGLU libGL
6060 qtbase
6161 qtx11extras
6262 qtdeclarative
pkgs/applications/video/mplayer/default.nix+3−3
@@ -2,7 +2,7 @@
22, aalibSupport ? true, aalib ? null
33, fontconfigSupport ? true, fontconfig ? null, freefont_ttf ? null
44, fribidiSupport ? true, fribidi ? null
5−, x11Support ? true, libX11 ? null, libXext ? null, libGLU_combined ? null
5+, x11Support ? true, libX11 ? null, libXext ? null, libGLU, libGL ? null
66, xineramaSupport ? true, libXinerama ? null
77, xvSupport ? true, libXv ? null
88, alsaSupport ? stdenv.isLinux, alsaLib ? null
@@ -32,7 +32,7 @@
3232assert fontconfigSupport -> (fontconfig != null);
3333assert (!fontconfigSupport) -> (freefont_ttf != null);
3434assert fribidiSupport -> (fribidi != null);
35−assert x11Support -> (libX11 != null && libXext != null && libGLU_combined != null);
35+assert x11Support -> (libX11 != null && libXext != null && libGLU != null && libGL != null);
3636assert xineramaSupport -> (libXinerama != null && x11Support);
3737assert xvSupport -> (libXv != null && x11Support);
3838assert alsaSupport -> alsaLib != null;
@@ -111,7 +111,7 @@ stdenv.mkDerivation rec {
111111 ++ optional aalibSupport aalib
112112 ++ optional fontconfigSupport fontconfig
113113 ++ optional fribidiSupport fribidi
114− ++ optionals x11Support [ libX11 libXext libGLU_combined ]
114+ ++ optionals x11Support [ libX11 libXext libGLU libGL ]
115115 ++ optional alsaSupport alsaLib
116116 ++ optional xvSupport libXv
117117 ++ optional theoraSupport libtheora
pkgs/applications/video/mpv/default.nix+3−3
@@ -9,7 +9,7 @@
99 , libxkbcommon ? null
1010
1111, x11Support ? stdenv.isLinux
12− , libGLU_combined ? null
12+ , libGLU, libGL ? null
1313 , libX11 ? null
1414 , libXext ? null
1515 , libXxf86vm ? null
@@ -86,7 +86,7 @@ assert vapoursynthSupport -> available vapoursynth;
8686assert vdpauSupport -> available libvdpau;
8787assert vulkanSupport -> all available [ libplacebo shaderc vulkan-headers vulkan-loader ];
8888assert waylandSupport -> all available [ wayland wayland-protocols libxkbcommon ];
89−assert x11Support -> all available [ libGLU_combined libX11 libXext libXxf86vm libXrandr ];
89+assert x11Support -> all available [ libGLU libGL libX11 libXext libXxf86vm libXrandr ];
9090assert xineramaSupport -> x11Support && available libXinerama;
9191assert xvSupport -> x11Support && available libXv;
9292assert youtubeSupport -> available youtube-dl;
@@ -181,7 +181,7 @@ in stdenv.mkDerivation rec {
181181 ++ optionals drmSupport [ libdrm mesa ]
182182 ++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ]
183183 ++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ]
184− ++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm libXrandr ]
184+ ++ optionals x11Support [ libX11 libXext libGLU libGL libXxf86vm libXrandr ]
185185 ++ optionals vulkanSupport [ libplacebo shaderc vulkan-headers vulkan-loader ]
186186 ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
187187 CoreFoundation Cocoa CoreAudio
pkgs/applications/video/mythtv/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, mkDerivation, fetchFromGitHub, which, qtbase, qtwebkit, qtscript, xlibsWrapper
2−, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU_combined, alsaLib, freetype
2+, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsaLib, freetype
33, perl, pkgconfig , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
44, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders
55, libXNVCtrl, enableXnvctrl ? false
@@ -26,7 +26,7 @@ mkDerivation rec {
2626 setSourceRoot = ''sourceRoot=$(echo */mythtv)'';
2727
2828 buildInputs = [
29− freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU_combined
29+ freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU libGL
3030 perl libsamplerate libbluray lzo alsaLib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
3131 libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2
3232 ] ++ stdenv.lib.optional enableXnvctrl libXNVCtrl;
pkgs/applications/video/simplescreenrecorder/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, mkDerivation, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext, qtx11extras
2−, libXfixes, libGLU_combined, pkgconfig, libpulseaudio, qtbase, cmake, ninja
2+, libXfixes, libGLU, libGL, pkgconfig, libpulseaudio, qtbase, cmake, ninja
33}:
44
55mkDerivation rec {
@@ -25,7 +25,7 @@ mkDerivation rec {
2525
2626 nativeBuildInputs = [ pkgconfig cmake ninja ];
2727 buildInputs = [
28− alsaLib ffmpeg libjack2 libX11 libXext libXfixes libGLU_combined
28+ alsaLib ffmpeg libjack2 libX11 libXext libXfixes libGLU libGL
2929 libpulseaudio qtbase qtx11extras
3030 ];
3131
pkgs/applications/virtualization/bochs/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl
22, pkgconfig, libtool
3−, gtk2, libGLU_combined, readline, libX11, libXpm
3+, gtk2, libGLU, libGL, readline, libX11, libXpm
44, docbook_xml_dtd_45, docbook_xsl
55, sdlSupport ? true, SDL2 ? null
66, termSupport ? true, ncurses ? null
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929 patches = [ ./bochs-2.6.9-glibc-2.26.patch ];
3030
3131 buildInputs = with stdenv.lib;
32− [ pkgconfig libtool gtk2 libGLU_combined readline libX11 libXpm docbook_xml_dtd_45 docbook_xsl ]
32+ [ pkgconfig libtool gtk2 libGLU libGL readline libX11 libXpm docbook_xml_dtd_45 docbook_xsl ]
3333 ++ optionals termSupport [ ncurses ]
3434 ++ optionals sdlSupport [ SDL2 ]
3535 ++ optionals wxSupport [ wxGTK ]
pkgs/data/misc/tzdata/default.nix+3−3
@@ -2,16 +2,16 @@
22
33stdenv.mkDerivation rec {
44 pname = "tzdata";
5− version = "2019b";
5+ version = "2019c";
66
77 srcs =
88 [ (fetchurl {
99 url = "https://data.iana.org/time-zones/releases/tzdata${version}.tar.gz";
10− sha256 = "0r0clnlslwm15m1c61dinf1fi9ffgl6aipng7i7yryfwj0n0kn85";
10+ sha256 = "0z7w1yv37cfk8yhix2cillam091vgp1j4g8fv84261q9mdnq1ivr";
1111 })
1212 (fetchurl {
1313 url = "https://data.iana.org/time-zones/releases/tzcode${version}.tar.gz";
14− sha256 = "0vbmswvv3li25s31shyllq5v24449lxnrki9hr043nipjd09sirf";
14+ sha256 = "1m3y2rnf1nggxxhxplab5zdd5whvar3ijyrv7lifvm82irkd7szn";
1515 })
1616 ];
1717
pkgs/desktops/gnome-2/default.nix+1−3
@@ -37,9 +37,7 @@ lib.makeScope pkgs.newScope (self: with self; {
3737
3838 gnome_python_desktop = callPackage ./bindings/gnome-python-desktop { };
3939
40− gnome_vfs = callPackage ./platform/gnome-vfs {
41− openssl = pkgs.openssl_1_0_2;
42− };
40+ gnome_vfs = callPackage ./platform/gnome-vfs { };
4341
4442 libgnome = callPackage ./platform/libgnome { };
4543
pkgs/desktops/gnome-2/platform/gnome-vfs/default.nix+13−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, libxml2, bzip2, openssl, dbus-glib
1+{ stdenv, fetchurl, fetchpatch, pkgconfig, libxml2, bzip2, openssl, dbus-glib
22, glib, gamin, cdparanoia, intltool, GConf, gnome_mime_data, avahi, acl }:
33
44stdenv.mkDerivation rec {
@@ -20,6 +20,18 @@ stdenv.mkDerivation rec {
2020
2121 propagatedBuildInputs = [ GConf glib ];
2222
23+ # struct SSL is opaque in openssl-1.1; and the SSL_free() man page
24+ # says that one should not free members of it manually (in both
25+ # the openssl-1.0 and openssl-1.1 man pages).
26+ # https://bugs.gentoo.org/592540
27+ patches = [ (fetchpatch {
28+ name = "gnome-vfs-2.24.4-openssl-1.1.patch";
29+ url = "https://bugs.gentoo.org/attachment.cgi?id=535944";
30+ sha256 = "1q4icapvmwmd5rjah7rr0bqazzk5cg36znmjlpra20n9y27nz040";
31+ extraPrefix = "";
32+ })
33+ ];
34+
2335 postPatch = "find . -name Makefile.in | xargs sed 's/-DG_DISABLE_DEPRECATED//g' -i ";
2436
2537 doCheck = false; # needs dbus daemon
pkgs/desktops/gnome-2/platform/gtkglext/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchpatch, pkgconfig, glib, gtk2, libGLU_combined, pango, pangox_compat, xorg }:
1+{ stdenv, fetchurl, fetchpatch, pkgconfig, glib, gtk2, libGLU, libGL, pango, pangox_compat, xorg }:
22
33stdenv.mkDerivation rec {
44 name = "gtkglext-1.2.0";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 };
1010
1111 buildInputs = with xorg;
12− [ pkgconfig glib gtk2 libGLU_combined pango libX11 libXmu ];
12+ [ pkgconfig glib gtk2 libGLU libGL pango libX11 libXmu ];
1313 propagatedBuildInputs = [ pangox_compat ];
1414
1515 patches = [
pkgs/development/compilers/vala/default.nix+6−6
@@ -106,18 +106,18 @@ in rec {
106106 };
107107
108108 vala_0_40 = generic {
109− version = "0.40.16";
110− sha256 = "0vv25fmr9jqiqf080vak1x4raa4w3cz3n5ysjglqsq9qfx304i7b";
109+ version = "0.40.18";
110+ sha256 = "1f7cdkjdysg4dcri1wbzdddm46amk2s48jkwb5ghpdvhjb4l5j2m";
111111 };
112112
113113 vala_0_44 = generic {
114− version = "0.44.8";
115− sha256 = "0f7pc496zvxfhbkhg8ayxykjas6f55mgv452wsnh0bz5zbxm8xrl";
114+ version = "0.44.11";
115+ sha256 = "06spdvm9q9k4riq1d2fxkyc8d88bcv460v360465iy1lnj3z9x2s";
116116 };
117117
118118 vala_0_46 = generic {
119− version = "0.46.2";
120− sha256 = "1g20fzcwh3j7ab46jalabyi005h2in0cp7xj0yga4b8hx29h61wj";
119+ version = "0.46.5";
120+ sha256 = "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s";
121121 };
122122
123123 vala = vala_0_46;
pkgs/development/haskell-modules/configuration-nix.nix+1−1
@@ -259,7 +259,7 @@ self: super: builtins.intersectAttrs super {
259259 wxcore = super.wxcore.override { wxGTK = pkgs.wxGTK30; };
260260
261261 # Test suite wants to connect to $DISPLAY.
262− hsqml = dontCheck (addExtraLibrary (super.hsqml.override { qt5 = pkgs.qt5Full; }) pkgs.libGLU_combined);
262+ hsqml = dontCheck (addExtraLibraries (super.hsqml.override { qt5 = pkgs.qt5Full; }) [pkgs.libGLU pkgs.libGL]);
263263
264264 # Tests attempt to use NPM to install from the network into
265265 # /homeless-shelter. Disabled.
pkgs/development/haskell-modules/hackage-packages.nix+69−69
@@ -1438,7 +1438,7 @@ self: {
14381438 license = stdenv.lib.licenses.bsd3;
14391439 hydraPlatforms = stdenv.lib.platforms.none;
14401440 broken = true;
1441− }) {inherit (pkgs) db; inherit (pkgs) dbxml;
1441+ }) {inherit (pkgs) db; inherit (pkgs) dbxml;
14421442 inherit (pkgs) xercesc; inherit (pkgs) xqilla;};
14431443
14441444 "BerlekampAlgorithm" = callPackage
@@ -2631,10 +2631,10 @@ self: {
26312631 license = "GPL";
26322632 hydraPlatforms = stdenv.lib.platforms.none;
26332633 broken = true;
2634− }) {opencv_calib3d = null; opencv_contrib = null;
2635− opencv_core = null; opencv_features2d = null; opencv_flann = null;
2636− opencv_gpu = null; opencv_highgui = null; opencv_imgproc = null;
2637− opencv_legacy = null; opencv_ml = null; opencv_objdetect = null;
2634+ }) {opencv_calib3d = null; opencv_contrib = null;
2635+ opencv_core = null; opencv_features2d = null; opencv_flann = null;
2636+ opencv_gpu = null; opencv_highgui = null; opencv_imgproc = null;
2637+ opencv_legacy = null; opencv_ml = null; opencv_objdetect = null;
26382638 opencv_video = null;};
26392639
26402640 "Cabal_2_2_0_1" = callPackage
@@ -6466,7 +6466,7 @@ self: {
64666466 librarySystemDepends = [ libGL libX11 libXext libXfixes ];
64676467 description = "A Haskell binding for GLFW";
64686468 license = stdenv.lib.licenses.bsd3;
6469− }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
6469+ }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
64706470 inherit (pkgs.xorg) libXext; inherit (pkgs.xorg) libXfixes;};
64716471
64726472 "GLFW-OGL" = callPackage
@@ -7829,7 +7829,7 @@ self: {
78297829 license = "LGPL";
78307830 hydraPlatforms = stdenv.lib.platforms.none;
78317831 broken = true;
7832− }) {mysqlclient = null; inherit (pkgs) openssl;
7832+ }) {mysqlclient = null; inherit (pkgs) openssl;
78337833 inherit (pkgs) zlib;};
78347834
78357835 "HDBC-odbc" = callPackage
@@ -8133,7 +8133,7 @@ self: {
81338133 description = "A Toolset for the Haskell Game Programmer - CEGUI Bindings";
81348134 license = "unknown";
81358135 hydraPlatforms = stdenv.lib.platforms.none;
8136− }) {CEGUIBase = null; CEGUIOgreRenderer = null;
8136+ }) {CEGUIBase = null; CEGUIOgreRenderer = null;
81378137 hg3dcegui050 = null;};
81388138
81398139 "HGamer3D-Common" = callPackage
@@ -8285,8 +8285,8 @@ self: {
82858285 description = "Ogre Binding for HGamer3D";
82868286 license = "unknown";
82878287 hydraPlatforms = stdenv.lib.platforms.none;
8288− }) {OgreMain = null; OgrePaging = null; OgreProperty = null;
8289− OgreRTShaderSystem = null; OgreTerrain = null;
8288+ }) {OgreMain = null; OgrePaging = null; OgreProperty = null;
8289+ OgreRTShaderSystem = null; OgreTerrain = null;
82908290 hg3dogre050 = null;};
82918291
82928292 "HGamer3D-SDL2-Binding" = callPackage
@@ -8304,7 +8304,7 @@ self: {
83048304 description = "SDL2 Binding for HGamer3D";
83058305 license = "unknown";
83068306 hydraPlatforms = stdenv.lib.platforms.none;
8307− }) {inherit (pkgs) SDL2; hg3dsdl2050 = null;
8307+ }) {inherit (pkgs) SDL2; hg3dsdl2050 = null;
83088308 inherit (pkgs.xorg) libX11;};
83098309
83108310 "HGamer3D-SFML-Binding" = callPackage
@@ -8322,7 +8322,7 @@ self: {
83228322 description = "SFML Binding for HGamer3D";
83238323 license = "unknown";
83248324 hydraPlatforms = stdenv.lib.platforms.none;
8325− }) {hg3dsfml050 = null; sfml-audio = null; sfml-network = null;
8325+ }) {hg3dsfml050 = null; sfml-audio = null; sfml-network = null;
83268326 sfml-system = null; sfml-window = null;};
83278327
83288328 "HGamer3D-WinEvent" = callPackage
@@ -14555,8 +14555,8 @@ self: {
1455514555 license = stdenv.lib.licenses.bsd3;
1455614556 hydraPlatforms = stdenv.lib.platforms.none;
1455714557 broken = true;
14558− }) {comctl32 = null; comdlg32 = null; gdi32 = null;
14559− kernel32 = null; ole32 = null; shell32 = null; user32 = null;
14558+ }) {comctl32 = null; comdlg32 = null; gdi32 = null;
14559+ kernel32 = null; ole32 = null; shell32 = null; user32 = null;
1456014560 winmm = null; winspool = null;};
1456114561
1456214562 "ObjectName" = callPackage
@@ -17169,9 +17169,9 @@ self: {
1716917169 license = stdenv.lib.licenses.mit;
1717017170 hydraPlatforms = stdenv.lib.platforms.none;
1717117171 broken = true;
17172− }) {csfml-audio = null; csfml-graphics = null;
17173− csfml-network = null; csfml-system = null; csfml-window = null;
17174− sfml-audio = null; sfml-graphics = null; sfml-network = null;
17172+ }) {csfml-audio = null; csfml-graphics = null;
17173+ csfml-network = null; csfml-system = null; csfml-window = null;
17174+ sfml-audio = null; sfml-graphics = null; sfml-network = null;
1717517175 sfml-system = null; sfml-window = null;};
1717617176
1717717177 "SFML-control" = callPackage
@@ -20735,8 +20735,8 @@ self: {
2073520735 ];
2073620736 description = "A binding to the X11 graphics library";
2073720737 license = stdenv.lib.licenses.bsd3;
20738− }) {inherit (pkgs.xorg) libX11; inherit (pkgs.xorg) libXScrnSaver;
20739− inherit (pkgs.xorg) libXext; inherit (pkgs.xorg) libXinerama;
20738+ }) {inherit (pkgs.xorg) libX11; inherit (pkgs.xorg) libXScrnSaver;
20739+ inherit (pkgs.xorg) libXext; inherit (pkgs.xorg) libXinerama;
2074020740 inherit (pkgs.xorg) libXrandr; inherit (pkgs.xorg) libXrender;};
2074120741
2074220742 "X11-extras" = callPackage
@@ -34059,7 +34059,7 @@ self: {
3405934059 license = "unknown";
3406034060 hydraPlatforms = stdenv.lib.platforms.none;
3406134061 broken = true;
34062− }) {aviation-cessna172-weight-balance = null;
34062+ }) {aviation-cessna172-weight-balance = null;
3406334063 aviation-units = null; aviation-weight-balance = null;};
3406434064
3406534065 "avl-static" = callPackage
@@ -37865,7 +37865,7 @@ self: {
3786537865 license = "LGPL";
3786637866 hydraPlatforms = stdenv.lib.platforms.none;
3786737867 broken = true;
37868− }) {leksah-dummy = null; leksah-main = null;
37868+ }) {leksah-dummy = null; leksah-main = null;
3786937869 leksah-plugin-pane = null;};
3787037870
3787137871 "billeksah-pane" = callPackage
@@ -38649,10 +38649,10 @@ self: {
3864938649 ];
3865038650 description = "Low-level bindings to GLFW OpenGL library";
3865138651 license = stdenv.lib.licenses.bsd3;
38652− }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
38653− inherit (pkgs.xorg) libXcursor; inherit (pkgs.xorg) libXext;
38654− inherit (pkgs.xorg) libXfixes; inherit (pkgs.xorg) libXi;
38655− inherit (pkgs.xorg) libXinerama; inherit (pkgs.xorg) libXrandr;
38652+ }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
38653+ inherit (pkgs.xorg) libXcursor; inherit (pkgs.xorg) libXext;
38654+ inherit (pkgs.xorg) libXfixes; inherit (pkgs.xorg) libXi;
38655+ inherit (pkgs.xorg) libXinerama; inherit (pkgs.xorg) libXrandr;
3865638656 inherit (pkgs.xorg) libXxf86vm;};
3865738657
3865838658 "bindings-GLFW_3_3_0_0" = callPackage
@@ -38675,10 +38675,10 @@ self: {
3867538675 description = "Low-level bindings to GLFW OpenGL library";
3867638676 license = stdenv.lib.licenses.bsd3;
3867738677 hydraPlatforms = stdenv.lib.platforms.none;
38678− }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
38679− inherit (pkgs.xorg) libXcursor; inherit (pkgs.xorg) libXext;
38680− inherit (pkgs.xorg) libXfixes; inherit (pkgs.xorg) libXi;
38681− inherit (pkgs.xorg) libXinerama; inherit (pkgs.xorg) libXrandr;
38678+ }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
38679+ inherit (pkgs.xorg) libXcursor; inherit (pkgs.xorg) libXext;
38680+ inherit (pkgs.xorg) libXfixes; inherit (pkgs.xorg) libXi;
38681+ inherit (pkgs.xorg) libXinerama; inherit (pkgs.xorg) libXrandr;
3868238682 inherit (pkgs.xorg) libXxf86vm;};
3868338683
3868438684 "bindings-K8055" = callPackage
@@ -63174,7 +63174,7 @@ self: {
6317463174 description = "A raw binding for the directX 11";
6317563175 license = stdenv.lib.licenses.mit;
6317663176 platforms = stdenv.lib.platforms.none;
63177− }) {D3DCompiler = null; d3d11 = null; d3dx11 = null;
63177+ }) {D3DCompiler = null; d3d11 = null; d3dx11 = null;
6317863178 d3dxof = null; dxgi = null; dxguid = null;};
6317963179
6318063180 "d3js" = callPackage
@@ -63483,7 +63483,7 @@ self: {
6348363483 license = "GPL";
6348463484 hydraPlatforms = stdenv.lib.platforms.none;
6348563485 broken = true;
63486− }) {inherit (pkgs) curl; inherit (pkgs) ncurses;
63486+ }) {inherit (pkgs) curl; inherit (pkgs) ncurses;
6348763487 inherit (pkgs) zlib;};
6348863488
6348963489 "darcs-fastconvert" = callPackage
@@ -83790,7 +83790,7 @@ self: {
8379083790 license = stdenv.lib.licenses.bsd3;
8379183791 hydraPlatforms = stdenv.lib.platforms.none;
8379283792 broken = true;
83793− }) {inherit (pkgs) ffmpeg; libavcodec = null; libavdevice = null;
83793+ }) {inherit (pkgs) ffmpeg; libavcodec = null; libavdevice = null;
8379483794 libavformat = null; libswscale = null;};
8379583795
8379683796 "ffmpeg-tutorials" = callPackage
@@ -86211,7 +86211,7 @@ self: {
8621186211 ];
8621286212 description = "FLTK bindings";
8621386213 license = stdenv.lib.licenses.mit;
86214− }) {inherit (pkgs) fltk14; inherit (pkgs) libGL;
86214+ }) {inherit (pkgs) fltk14; inherit (pkgs) libGL;
8621586215 inherit (pkgs) libGLU; inherit (pkgs) pkg-config;};
8621686216
8621786217 "fltkhs-demos" = callPackage
@@ -88367,7 +88367,7 @@ self: {
8836788367 description = "Interface to the Kinect device";
8836888368 license = stdenv.lib.licenses.bsd3;
8836988369 platforms = [ "i686-linux" "x86_64-linux" ];
88370− }) {inherit (pkgs) freenect; freenect_sync = null;
88370+ }) {inherit (pkgs) freenect; freenect_sync = null;
8837188371 libfreenect = null;};
8837288372
8837388373 "freer" = callPackage
@@ -90919,9 +90919,9 @@ self: {
9091990919 ];
9092090920 description = "A Haskell binding to a subset of the GD graphics library";
9092190921 license = stdenv.lib.licenses.bsd3;
90922− }) {inherit (pkgs) expat; inherit (pkgs) fontconfig;
90923− inherit (pkgs) freetype; inherit (pkgs) gd;
90924− inherit (pkgs) libjpeg; inherit (pkgs) libpng;
90922+ }) {inherit (pkgs) expat; inherit (pkgs) fontconfig;
90923+ inherit (pkgs) freetype; inherit (pkgs) gd;
90924+ inherit (pkgs) libjpeg; inherit (pkgs) libpng;
9092590925 inherit (pkgs) zlib;};
9092690926
9092790927 "gdax" = callPackage
@@ -96222,9 +96222,9 @@ self: {
9622296222 description = "manage files with git, without checking their contents into git";
9622396223 license = stdenv.lib.licenses.agpl3;
9622496224 maintainers = with stdenv.lib.maintainers; [ peti ];
96225− }) {inherit (pkgs) bup; inherit (pkgs) curl; inherit (pkgs) git;
96226− inherit (pkgs) gnupg; inherit (pkgs) lsof; inherit (pkgs) openssh;
96227− inherit (pkgs) perl; inherit (pkgs) rsync; inherit (pkgs) wget;
96225+ }) {inherit (pkgs) bup; inherit (pkgs) curl; inherit (pkgs) git;
96226+ inherit (pkgs) gnupg; inherit (pkgs) lsof; inherit (pkgs) openssh;
96227+ inherit (pkgs) perl; inherit (pkgs) rsync; inherit (pkgs) wget;
9622896228 inherit (pkgs) which;};
9622996229
9623096230 "git-brunch" = callPackage
@@ -98310,7 +98310,7 @@ self: {
9831098310 libraryToolDepends = [ c2hs ];
9831198311 description = "Bindings for libgnome-keyring";
9831298312 license = stdenv.lib.licenses.gpl3;
98313− }) {inherit (pkgs.gnome3) gnome-keyring;
98313+ }) {inherit (pkgs.gnome3) gnome-keyring;
9831498314 inherit (pkgs) libgnome-keyring;};
9831598315
9831698316 "gnomevfs" = callPackage
@@ -102662,7 +102662,7 @@ self: {
102662102662 executablePkgconfigDepends = [ libXau xcb xdmcp xlibsWrapper ];
102663102663 description = "Simple clipboard manager to be integrated with rofi";
102664102664 license = stdenv.lib.licenses.bsd3;
102665− }) {inherit (pkgs.xorg) libXau; xcb = null; xdmcp = null;
102665+ }) {inherit (pkgs.xorg) libXau; xcb = null; xdmcp = null;
102666102666 inherit (pkgs) xlibsWrapper;};
102667102667
102668102668 "greg-client" = callPackage
@@ -104031,9 +104031,9 @@ self: {
104031104031 license = stdenv.lib.licenses.lgpl21;
104032104032 hydraPlatforms = stdenv.lib.platforms.none;
104033104033 broken = true;
104034− }) {inherit (pkgs) gtk2; inherit (pkgs.gnome2) gtkglext;
104035− inherit (pkgs) libGLU; inherit (pkgs.xorg) libICE;
104036− inherit (pkgs.xorg) libSM; inherit (pkgs.xorg) libXmu;
104034+ }) {inherit (pkgs) gtk2; inherit (pkgs.gnome2) gtkglext;
104035+ inherit (pkgs) libGLU; inherit (pkgs.xorg) libICE;
104036+ inherit (pkgs.xorg) libSM; inherit (pkgs.xorg) libXmu;
104037104037 inherit (pkgs.xorg) libXt;};
104038104038
104039104039 "gtkimageview" = callPackage
@@ -104421,7 +104421,7 @@ self: {
104421104421 license = "LGPL";
104422104422 hydraPlatforms = stdenv.lib.platforms.none;
104423104423 broken = true;
104424− }) {cudd = null; epd = null; inherit (pkgs) mtr;
104424+ }) {cudd = null; epd = null; inherit (pkgs) mtr;
104425104425 inherit (pkgs) st; util = null;};
104426104426
104427104427 "hCM" = callPackage
@@ -116325,7 +116325,7 @@ self: {
116325116325 license = stdenv.lib.licenses.mit;
116326116326 hydraPlatforms = stdenv.lib.platforms.none;
116327116327 broken = true;
116328− }) {newrelic-collector-client = null; newrelic-common = null;
116328+ }) {newrelic-collector-client = null; newrelic-common = null;
116329116329 newrelic-transaction = null;};
116330116330
116331116331 "helics-wai" = callPackage
@@ -117728,7 +117728,7 @@ self: {
117728117728 description = "File/folder watching for OS X";
117729117729 license = stdenv.lib.licenses.bsd3;
117730117730 platforms = [ "x86_64-darwin" ];
117731− }) {inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
117731+ }) {inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
117732117732 inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;};
117733117733
117734117734 "hfusion" = callPackage
@@ -123244,7 +123244,7 @@ self: {
123244123244 license = stdenv.lib.licenses.bsd3;
123245123245 hydraPlatforms = stdenv.lib.platforms.none;
123246123246 broken = true;
123247− }) {inherit (pkgs) freeglut; inherit (pkgs) libGL;
123247+ }) {inherit (pkgs) freeglut; inherit (pkgs) libGL;
123248123248 inherit (pkgs) libGLU;};
123249123249
123250123250 "hp2any-manager" = callPackage
@@ -124426,7 +124426,7 @@ self: {
124426124426 license = stdenv.lib.licenses.bsd3;
124427124427 hydraPlatforms = stdenv.lib.platforms.none;
124428124428 broken = true;
124429− }) {brotlidec = null; brotlienc = null; libbrotlidec = null;
124429+ }) {brotlidec = null; brotlienc = null; libbrotlidec = null;
124430124430 libbrotlienc = null;};
124431124431
124432124432 "hs-captcha" = callPackage
@@ -126618,7 +126618,7 @@ self: {
126618126618 license = stdenv.lib.licenses.bsd3;
126619126619 hydraPlatforms = stdenv.lib.platforms.none;
126620126620 broken = true;
126621− }) {inherit (pkgs) blas; inherit (pkgs) gsl;
126621+ }) {inherit (pkgs) blas; inherit (pkgs) gsl;
126622126622 inherit (pkgs) liblapack;};
126623126623
126624126624 "hsilop" = callPackage
@@ -127001,10 +127001,10 @@ self: {
127001127001 license = stdenv.lib.licenses.bsd3;
127002127002 hydraPlatforms = stdenv.lib.platforms.none;
127003127003 broken = true;
127004− }) {GraphicsMagick = null; inherit (pkgs) bzip2; freetype2 = null;
127005− inherit (pkgs) jasper; inherit (pkgs) lcms;
127006− inherit (pkgs) libjpeg; inherit (pkgs) libpng;
127007− inherit (pkgs) libxml2; tiff = null; wmflite = null;
127004+ }) {GraphicsMagick = null; inherit (pkgs) bzip2; freetype2 = null;
127005+ inherit (pkgs) jasper; inherit (pkgs) lcms;
127006+ inherit (pkgs) libjpeg; inherit (pkgs) libpng;
127007+ inherit (pkgs) libxml2; tiff = null; wmflite = null;
127008127008 inherit (pkgs) zlib;};
127009127009
127010127010 "hsmisc" = callPackage
@@ -128857,7 +128857,7 @@ self: {
128857128857 license = "GPL";
128858128858 hydraPlatforms = stdenv.lib.platforms.none;
128859128859 broken = true;
128860− }) {inherit (pkgs) ncurses; inherit (pkgs) readline;
128860+ }) {inherit (pkgs) ncurses; inherit (pkgs) readline;
128861128861 swipl = null;};
128862128862
128863128863 "hsx" = callPackage
@@ -152356,7 +152356,7 @@ self: {
152356152356 description = "Predicate Abstraction-based Horn-Clause/Implication Constraint Solver";
152357152357 license = stdenv.lib.licenses.bsd3;
152358152358 maintainers = with stdenv.lib.maintainers; [ peti ];
152359− }) {inherit (pkgs) git; inherit (pkgs) nettools;
152359+ }) {inherit (pkgs) git; inherit (pkgs) nettools;
152360152360 inherit (pkgs) ocaml; inherit (pkgs) z3;};
152361152361
152362152362 "liquidhaskell" = callPackage
@@ -164616,7 +164616,7 @@ self: {
164616164616 license = stdenv.lib.licenses.bsd3;
164617164617 hydraPlatforms = stdenv.lib.platforms.none;
164618164618 broken = true;
164619− }) {gecodeint = null; gecodekernel = null; gecodesearch = null;
164619+ }) {gecodeint = null; gecodekernel = null; gecodesearch = null;
164620164620 gecodeset = null; gecodesupport = null;};
164621164621
164622164622 "monadio-unwrappable" = callPackage
@@ -169176,7 +169176,7 @@ self: {
169176169176 license = stdenv.lib.licenses.isc;
169177169177 hydraPlatforms = stdenv.lib.platforms.none;
169178169178 broken = true;
169179− }) {GLEW = null; inherit (pkgs) glew; inherit (pkgs) libGL;
169179+ }) {GLEW = null; inherit (pkgs) glew; inherit (pkgs) libGL;
169180169180 inherit (pkgs) libGLU;};
169181169181
169182169182 "nanovg-simple" = callPackage
@@ -172811,7 +172811,7 @@ self: {
172811172811 license = stdenv.lib.licenses.bsd3;
172812172812 hydraPlatforms = stdenv.lib.platforms.none;
172813172813 broken = true;
172814− }) {g = null; inherit (pkgs) glib; libnm-glib = null;
172814+ }) {g = null; inherit (pkgs) glib; libnm-glib = null;
172815172815 nm-glib = null;};
172816172816
172817172817 "nme" = callPackage
@@ -175108,8 +175108,8 @@ self: {
175108175108 license = stdenv.lib.licenses.bsd3;
175109175109 hydraPlatforms = stdenv.lib.platforms.none;
175110175110 broken = true;
175111− }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
175112− inherit (pkgs.xorg) libXinerama; ovr = null;
175111+ }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
175112+ inherit (pkgs.xorg) libXinerama; ovr = null;
175113175113 inherit (pkgs) systemd;};
175114175114
175115175115 "odbc" = callPackage
@@ -188448,7 +188448,7 @@ self: {
188448188448 license = stdenv.lib.licenses.gpl2;
188449188449 hydraPlatforms = stdenv.lib.platforms.none;
188450188450 broken = true;
188451− }) {inherit (pkgs) gdk-pixbuf; inherit (pkgs) gtk2;
188451+ }) {inherit (pkgs) gdk-pixbuf; inherit (pkgs) gtk2;
188452188452 inherit (pkgs) pango; inherit (pkgs) poppler;};
188453188453
188454188454 "populate-setup-exe-cache" = callPackage
@@ -195680,7 +195680,7 @@ self: {
195680195680 description = "Qt bindings";
195681195681 license = "unknown";
195682195682 hydraPlatforms = stdenv.lib.platforms.none;
195683− }) {qtc_core = null; qtc_gui = null; qtc_network = null;
195683+ }) {qtc_core = null; qtc_gui = null; qtc_network = null;
195684195684 qtc_opengl = null; qtc_script = null; qtc_tools = null;};
195685195685
195686195686 "qtah-cpp-qt5" = callPackage
@@ -231849,7 +231849,7 @@ self: {
231849231849 license = stdenv.lib.licenses.mit;
231850231850 hydraPlatforms = stdenv.lib.platforms.none;
231851231851 broken = true;
231852− }) {inherit (pkgs) gmp; inherit (pkgs) gmpxx;
231852+ }) {inherit (pkgs) gmp; inherit (pkgs) gmpxx;
231853231853 inherit (pkgs) symengine;};
231854231854
231855231855 "symengine-hs" = callPackage
@@ -231869,7 +231869,7 @@ self: {
231869231869 license = stdenv.lib.licenses.mit;
231870231870 hydraPlatforms = stdenv.lib.platforms.none;
231871231871 broken = true;
231872− }) {inherit (pkgs) gmp; inherit (pkgs) gmpxx;
231872+ }) {inherit (pkgs) gmp; inherit (pkgs) gmpxx;
231873231873 inherit (pkgs) symengine;};
231874231874
231875231875 "symmetric-properties" = callPackage
@@ -236175,7 +236175,7 @@ self: {
236175236175 description = "Terminal emulator configurable in Haskell";
236176236176 license = stdenv.lib.licenses.bsd3;
236177236177 maintainers = with stdenv.lib.maintainers; [ cdepillabout ];
236178− }) {inherit (pkgs) gtk3; inherit (pkgs) pcre2;
236178+ }) {inherit (pkgs) gtk3; inherit (pkgs) pcre2;
236179236179 vte_291 = pkgs.vte;};
236180236180
236181236181 "termplot" = callPackage
@@ -259448,7 +259448,7 @@ self: {
259448259448 description = "wxHaskell C++ wrapper";
259449259449 license = "unknown";
259450259450 hydraPlatforms = stdenv.lib.platforms.none;
259451− }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
259451+ }) {inherit (pkgs) libGL; inherit (pkgs.xorg) libX11;
259452259452 inherit (pkgs) wxGTK;};
259453259453
259454259454 "wxcore" = callPackage
@@ -261272,7 +261272,7 @@ self: {
261272261272 description = "A Minimalistic Text Based Status Bar";
261273261273 license = stdenv.lib.licenses.bsd3;
261274261274 platforms = [ "i686-linux" "x86_64-linux" ];
261275− }) {inherit (pkgs.xorg) libXpm; inherit (pkgs.xorg) libXrandr;
261275+ }) {inherit (pkgs.xorg) libXpm; inherit (pkgs.xorg) libXrandr;
261276261276 inherit (pkgs.xorg) libXrender; inherit (pkgs) wirelesstools;};
261277261277
261278261278 "xmonad" = callPackage
pkgs/development/interpreters/erlang/generic-builder.nix+3−3
@@ -2,7 +2,7 @@
22, libxml2, libxslt, ncurses, openssl, perl, autoconf
33, openjdk ? null # javacSupport
44, unixODBC ? null # odbcSupport
5−, libGLU_combined ? null, wxGTK ? null, wxmac ? null, xorg ? null # wxSupport
5+, libGL ? null, libGLU ? null, wxGTK ? null, wxmac ? null, xorg ? null # wxSupport
66, withSystemd ? stdenv.isLinux, systemd # systemd support in epmd
77}:
88
@@ -18,7 +18,7 @@
1818, enableKernelPoll ? true
1919, javacSupport ? false, javacPackages ? [ openjdk ]
2020, odbcSupport ? false, odbcPackages ? [ unixODBC ]
21−, wxSupport ? true, wxPackages ? [ libGLU_combined wxGTK xorg.libX11 ]
21+, wxSupport ? true, wxPackages ? [ libGL libGLU wxGTK xorg.libX11 ]
2222, preUnpack ? "", postUnpack ? ""
2323, patches ? [], patchPhase ? "", prePatch ? "", postPatch ? ""
2424, configureFlags ? [], configurePhase ? "", preConfigure ? "", postConfigure ? ""
@@ -32,7 +32,7 @@
3232
3333assert wxSupport -> (if stdenv.isDarwin
3434 then wxmac != null
35− else libGLU_combined != null && wxGTK != null && xorg != null);
35+ else libGL != null && libGLU != null && wxGTK != null && xorg != null);
3636
3737assert odbcSupport -> unixODBC != null;
3838assert javacSupport -> openjdk != null;
pkgs/development/interpreters/io/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, zlib, sqlite, gmp, libffi, cairo,
2− ncurses, freetype, libGLU_combined, libpng, libtiff, libjpeg, readline, libsndfile,
2+ ncurses, freetype, libGLU, libGL, libpng, libtiff, libjpeg, readline, libsndfile,
33 libxml2, freeglut, libsamplerate, pcre, libevent, libedit, yajl,
44 python3, openssl, glfw, pkgconfig, libpthreadstubs, libXdmcp, libmemcached
55}:
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919
2020 buildInputs = [
2121 zlib sqlite gmp libffi cairo ncurses freetype
22− libGLU_combined libpng libtiff libjpeg readline libsndfile libxml2
22+ libGLU libGL libpng libtiff libjpeg readline libsndfile libxml2
2323 freeglut libsamplerate pcre libevent libedit yajl
2424 pkgconfig glfw openssl libpthreadstubs libXdmcp
2525 libmemcached python3
pkgs/development/interpreters/love/0.10.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU_combined, openal, luajit,
1+{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU, libGL, openal, luajit,
22 libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
33 libtheora, which, autoconf, automake, libtool
44}:
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919
2020 nativeBuildInputs = [ pkgconfig ];
2121 buildInputs = [
22− SDL2 libGLU_combined openal luajit libdevil freetype physfs libmodplug mpg123
22+ SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
2323 libvorbis libogg libtheora autoconf which libtool automake
2424 ];
2525
pkgs/development/interpreters/love/0.7.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig
2−, SDL, libGLU_combined, openal, lua
2+, SDL, libGLU, libGL, openal, lua
33, libdevil, freetype, physfs
44, libmodplug, mpg123, libvorbis, libogg
55, libmng
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717
1818 nativeBuildInputs = [ pkgconfig ];
1919 buildInputs = [
20− SDL libGLU_combined openal lua
20+ SDL libGLU libGL openal lua
2121 libdevil freetype physfs libmodplug mpg123 libvorbis libogg libmng
2222 ];
2323
pkgs/development/interpreters/love/0.8.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig
2−, SDL, libGLU_combined, openal, lua
2+, SDL, libGLU, libGL, openal, lua
33, libdevil, freetype, physfs
44, libmodplug, mpg123, libvorbis, libogg
55}:
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515
1616 nativeBuildInputs = [ pkgconfig ];
1717 buildInputs = [
18− SDL libGLU_combined openal lua
18+ SDL libGLU libGL openal lua
1919 libdevil freetype physfs libmodplug mpg123 libvorbis libogg
2020 ];
2121
pkgs/development/interpreters/love/0.9.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig
2−, SDL2, libGLU_combined, openal, luajit
2+, SDL2, libGLU, libGL, openal, luajit
33, libdevil, freetype, physfs
44, libmodplug, mpg123, libvorbis, libogg
55}:
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 buildInputs = [
16− SDL2 libGLU_combined openal luajit
16+ SDL2 libGLU libGL openal luajit
1717 libdevil freetype physfs libmodplug mpg123 libvorbis libogg
1818 ];
1919
pkgs/development/interpreters/love/11.1.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU_combined, openal, luajit,
1+{ stdenv, fetchFromBitbucket, pkgconfig, SDL2, libGLU, libGL, openal, luajit,
22 libdevil, freetype, physfs, libmodplug, mpg123, libvorbis, libogg,
33 libtheora, which, autoconf, automake, libtool
44}:
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919
2020 nativeBuildInputs = [ pkgconfig ];
2121 buildInputs = [
22− SDL2 libGLU_combined openal luajit libdevil freetype physfs libmodplug mpg123
22+ SDL2 libGLU libGL openal luajit libdevil freetype physfs libmodplug mpg123
2323 libvorbis libogg libtheora autoconf which libtool automake
2424 ];
2525
pkgs/development/interpreters/lush/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, libX11, xorgproto, indent, readline, gsl, freeglut, libGLU_combined, SDL
1+{stdenv, fetchurl, libX11, xorgproto, indent, readline, gsl, freeglut, libGLU, libGL, SDL
22, blas, libbfd, intltool, gettext, zlib, libSM}:
33
44stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 buildInputs = [
15− libX11 libSM xorgproto indent readline gsl freeglut libGLU_combined SDL blas libbfd
15+ libX11 libSM xorgproto indent readline gsl freeglut libGLU libGL SDL blas libbfd
1616 intltool gettext zlib
1717 ];
1818
pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py+2
@@ -229,6 +229,8 @@ def _determine_extension(text, fetcher):
229229 raise ValueError("Don't know how to update a Flit package.")
230230 elif src_format == 'other':
231231 raise ValueError("Don't know how to update a format='other' package.")
232+ elif src_format == 'pyproject':
233+ raise ValueError("Don't know how to update a pyproject package.")
232234 extension = FORMATS[src_format]
233235
234236 elif fetcher == 'fetchurl':
pkgs/development/interpreters/renpy/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, python2Packages, pkgconfig, SDL2
2−, libpng, ffmpeg, freetype, glew, libGLU_combined, fribidi, zlib
2+, libpng, ffmpeg, freetype, glew, libGL, libGLU, fribidi, zlib
33, glib
44}:
55
@@ -32,13 +32,13 @@ stdenv.mkDerivation rec {
3232 nativeBuildInputs = [ pkgconfig ];
3333 buildInputs = [
3434 python cython wrapPython tkinter
35− SDL2 libpng ffmpeg freetype glew libGLU_combined fribidi zlib pygame_sdl2 glib
35+ SDL2 libpng ffmpeg freetype glew libGLU libGL fribidi zlib pygame_sdl2 glib
3636 ];
3737
3838 pythonPath = [ pygame_sdl2 tkinter ];
3939
4040 RENPY_DEPS_INSTALL = stdenv.lib.concatStringsSep "::" (map (path: path) [
41− SDL2 SDL2.dev libpng ffmpeg ffmpeg.out freetype glew.dev glew.out libGLU_combined fribidi zlib
41+ SDL2 SDL2.dev libpng ffmpeg ffmpeg.out freetype glew.dev glew.out libGLU libGL fribidi zlib
4242 ]);
4343
4444 buildPhase = ''
pkgs/development/libraries/AntTweakBar/default.nix+2−2
@@ -1,9 +1,9 @@
1−{ stdenv, fetchurl, unzip, xorg, libGLU_combined }:
1+{ stdenv, fetchurl, unzip, xorg, libGLU, libGL }:
22
33stdenv.mkDerivation {
44 name = "AntTweakBar-1.16";
55
6− buildInputs = [ unzip xorg.libX11 libGLU_combined ];
6+ buildInputs = [ unzip xorg.libX11 libGLU libGL ];
77
88 src = fetchurl {
99 url = "mirror://sourceforge/project/anttweakbar/AntTweakBar_116.zip";
pkgs/development/libraries/allegro/5.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
22, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
33, libXxf86dga, libXxf86misc
4−, libXxf86vm, openal, libGLU_combined, libjpeg, flac
4+, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
55, libXi, libXfixes, freetype, libopus, libtheora
66, physfs, enet, pkgconfig, gtk2, pcre, libpulseaudio, libpthreadstubs
77, libXdmcp
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
2121 buildInputs = [
2222 texinfo libXext xorgproto libX11 libXpm libXt libXcursor
2323 alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
24− libXxf86vm openal libGLU_combined
24+ libXxf86vm openal libGLU libGL
2525 libjpeg flac
2626 libXi libXfixes
2727 enet libtheora freetype physfs libopus pkgconfig gtk2 pcre libXdmcp
pkgs/development/libraries/allegro/default.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, texinfo, libXext, xorgproto, libX11
22, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
33, libXxf86dga, libXxf86misc
4−, libXxf86vm, openal, libGLU_combined }:
4+, libXxf86vm, openal, libGLU, libGL }:
55
66stdenv.mkDerivation rec {
77 pname = "allegro";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020 buildInputs = [
2121 texinfo libXext xorgproto libX11 libXpm libXt libXcursor
2222 alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
23− libXxf86vm openal libGLU_combined
23+ libXxf86vm openal libGLU libGL
2424 ];
2525
2626 hardeningDisable = [ "format" ];
pkgs/development/libraries/arrayfire/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig
22, cudatoolkit, opencl-clhpp, ocl-icd, fftw, fftwFloat, mkl
3−, blas, openblas, boost, mesa, libGLU_combined
3+, blas, openblas, boost, mesa, libGLU, libGL
44, freeimage, python, clfft, clblas
55, doxygen, buildDocs ? false
66}:
@@ -51,7 +51,7 @@ in stdenv.mkDerivation rec {
5151 opencl-clhpp fftw fftwFloat
5252 mkl
5353 openblas
54− libGLU_combined
54+ libGLU libGL
5555 mesa freeimage
5656 boost.out boost.dev
5757 ] ++ (stdenv.lib.optional stdenv.isLinux [ cudatoolkit ocl-icd ])
pkgs/development/libraries/aspell/default.nix+4−10
@@ -15,26 +15,20 @@ let
1515in
1616
1717stdenv.mkDerivation rec {
18− name = "aspell-0.60.6.1";
18+ name = "aspell-0.60.8";
1919
2020 src = fetchurl {
2121 url = "mirror://gnu/aspell/${name}.tar.gz";
22− sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm";
22+ sha256 = "1wi60ankalmh8ds7nplz434jd7j94gdvbahdwsr539rlad8pxdzr";
2323 };
2424
25− patches = [
26− (fetchpatch { # remove in >= 0.60.7
27− name = "gcc-7.patch";
28− url = "https://github.com/GNUAspell/aspell/commit/8089fa02122fed0a.diff";
29− sha256 = "1b3p1zy2lqr2fknddckm58hyk95hw4scf6hzjny1v9iaic2p37ix";
30− })
31− ] ++ stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
25+ patches = stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
3226
3327 postPatch = ''
3428 patch interfaces/cc/aspell.h < ${./clang.patch}
3529 '';
3630
37− nativeBuildInputs = [ perl ];
31+ buildInputs = [ perl ];
3832
3933 doCheck = true;
4034
pkgs/development/libraries/box2d/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, unzip, cmake, libGLU_combined, freeglut, libX11, xorgproto
1+{ stdenv, fetchurl, unzip, cmake, libGLU, libGL, freeglut, libX11, xorgproto
22, libXi, pkgconfig }:
33
44stdenv.mkDerivation rec {
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414
1515 nativeBuildInputs = [ pkgconfig ];
1616 buildInputs = [
17− unzip cmake libGLU_combined freeglut libX11 xorgproto libXi
17+ unzip cmake libGLU libGL freeglut libX11 xorgproto libXi
1818 ];
1919
2020 cmakeFlags = [
pkgs/development/libraries/bullet/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, cmake, libGLU_combined, freeglut
1+{ stdenv, fetchFromGitHub, cmake, libGLU, libGL, freeglut
22, Cocoa, OpenGL
33}:
44
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 };
1515
1616 nativeBuildInputs = [ cmake ];
17− buildInputs = stdenv.lib.optionals stdenv.isLinux [ libGLU_combined freeglut ]
17+ buildInputs = stdenv.lib.optionals stdenv.isLinux [ libGLU libGL freeglut ]
1818 ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
1919
2020 patches = [ ./gwen-narrowing.patch ];
pkgs/development/libraries/bullet/roboschool-fork.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, cmake, libGLU_combined, freeglut
1+{ stdenv, fetchFromGitHub, cmake, libGLU, libGL, freeglut
22, Cocoa, OpenGL
33}:
44
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
1818 };
1919
2020 nativeBuildInputs = [ cmake ];
21− buildInputs = stdenv.lib.optionals stdenv.isLinux [ libGLU_combined freeglut ]
21+ buildInputs = stdenv.lib.optionals stdenv.isLinux [ libGLU libGL freeglut ]
2222 ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
2323
2424 patches = [ ./gwen-narrowing.patch ];
pkgs/development/libraries/cairo/default.nix+1−1
@@ -5,7 +5,7 @@
55, xcbSupport ? x11Support, libxcb, xcbutil # no longer experimental since 1.12
66, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
77, glSupport ? config.cairo.gl or (libGLSupported && stdenv.isLinux && !stdenv.isAarch32 && !stdenv.isMips)
8−, libGL ? null # libGLU_combined is no longer a big dependency
8+, libGL ? null # libGLU libGL is no longer a big dependency
99, pdfSupport ? true
1010, darwin
1111}:
pkgs/development/libraries/chipmunk/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, freeglut, libGLU_combined, glfw2, glew, libX11, xorgproto
1+{ stdenv, fetchurl, cmake, freeglut, libGLU, libGL, glfw2, glew, libX11, xorgproto
22, libXi, libXmu
33}:
44
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414
1515 nativeBuildInputs = [ cmake ];
1616 buildInputs =
17− [ freeglut libGLU_combined glfw2 glew libX11 xorgproto libXi libXmu ];
17+ [ freeglut libGLU libGL glfw2 glew libX11 xorgproto libXi libXmu ];
1818
1919 postInstall = ''
2020 mkdir -p $out/bin
pkgs/development/libraries/ffmpeg-full/default.nix+3−3
@@ -104,7 +104,7 @@
104104#, opencl ? null # OpenCL code
105105, opencore-amr ? null # AMR-NB de/encoder & AMR-WB decoder
106106#, opencv ? null # Video filtering
107−, openglExtlib ? false, libGLU_combined ? null # OpenGL rendering
107+, openglExtlib ? false, libGL ? null, libGLU ? null # OpenGL rendering
108108#, openh264 ? null # H.264/AVC encoder
109109, openjpeg ? null # JPEG 2000 de/encoder
110110, opensslExtlib ? false, openssl ? null
@@ -234,7 +234,7 @@ assert gnutls != null -> !opensslExtlib;
234234assert libxcbshmExtlib -> libxcb != null;
235235assert libxcbxfixesExtlib -> libxcb != null;
236236assert libxcbshapeExtlib -> libxcb != null;
237−assert openglExtlib -> libGLU_combined != null;
237+assert openglExtlib -> libGL != null && libGLU != null;
238238assert opensslExtlib -> gnutls == null && openssl != null && nonfreeLicensing;
239239
240240stdenv.mkDerivation rec {
@@ -424,7 +424,7 @@ stdenv.mkDerivation rec {
424424 libxcb libXv libXext lzma openal openjpeg libpulseaudio rtmpdump opencore-amr
425425 samba SDL2 soxr speex vid-stab vo-amrwbenc wavpack x264 x265 xavs xvidcore
426426 zeromq4 zlib
427− ] ++ optional openglExtlib libGLU_combined
427+ ] ++ optionals openglExtlib [ libGL libGLU ]
428428 ++ optionals nonfreeLicensing [ fdk_aac openssl ]
429429 ++ optional ((isLinux || isFreeBSD) && libva != null) libva
430430 ++ optional (!isAarch64 && libvmaf != null && version3Licensing) libvmaf
pkgs/development/libraries/ffmpeg/generic.nix+3−3
@@ -2,7 +2,7 @@
22, alsaLib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
33, libssh, libtheora, libva, libdrm, libvorbis, libvpx, lzma, libpulseaudio, soxr
44, x264, x265, xvidcore, zlib, libopus, speex, nv-codec-headers, dav1d
5−, openglSupport ? false, libGLU_combined ? null
5+, openglSupport ? false, libGLU ? null, libGL ? null
66, libmfxSupport ? false, intel-media-sdk ? null
77, libaomSupport ? false, libaom ? null
88# Build options
@@ -63,7 +63,7 @@ let
6363 vpxSupport = reqMin "0.6" && !isAarch32;
6464in
6565
66−assert openglSupport -> libGLU_combined != null;
66+assert openglSupport -> libGL != null && libGLU != null;
6767assert libmfxSupport -> intel-media-sdk != null;
6868assert libaomSupport -> libaom != null;
6969
@@ -168,7 +168,7 @@ stdenv.mkDerivation rec {
168168 buildInputs = [
169169 bzip2 fontconfig freetype gnutls libiconv lame libass libogg libssh libtheora
170170 libvdpau libvorbis lzma soxr x264 x265 xvidcore zlib libopus speex nv-codec-headers
171− ] ++ optional openglSupport libGLU_combined
171+ ] ++ optionals openglSupport [ libGL libGLU ]
172172 ++ optional libmfxSupport intel-media-sdk
173173 ++ optional vpxSupport libaom
174174 ++ optional vpxSupport libvpx
pkgs/development/libraries/fltk/1.4.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, xlibsWrapper, xorgproto, libXi
2−, freeglut, libGLU_combined, libjpeg, zlib, libXft, libpng
2+, freeglut, libGLU, libGL, libjpeg, zlib, libXft, libpng
33, libtiff, freetype, Cocoa, AGL, GLUT
44}:
55
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919 patches = stdenv.lib.optionals stdenv.isDarwin [ ./nsosv.patch ];
2020
2121 nativeBuildInputs = [ pkgconfig ];
22− buildInputs = [ libGLU_combined libjpeg zlib libpng libXft ]
22+ buildInputs = [ libGLU libGL libjpeg zlib libpng libXft ]
2323 ++ stdenv.lib.optional stdenv.isDarwin [ AGL Cocoa GLUT ];
2424
2525 propagatedBuildInputs = [ xorgproto ]
pkgs/development/libraries/forge/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub, cmake, pkgconfig
22, arrayfire, expat, fontconfig, freeimage, freetype, boost
3−, mesa, libGLU_combined, glfw3, SDL2, cudatoolkit
3+, mesa, libGLU, libGL, glfw3, SDL2, cudatoolkit
44}:
55
66stdenv.mkDerivation rec {
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 boost.dev
2929 freeimage
3030 mesa
31− libGLU_combined
31+ libGLU libGL
3232 glfw3
3333 SDL2
3434 cudatoolkit
pkgs/development/libraries/fox/fox-1.6.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor
2−, libXrandr, libGLU_combined, libXft, libXfixes, xinput
2+, libXrandr, libGLU, libGL, libXft, libXfixes, xinput
33, CoreServices }:
44
55let
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717
1818 buildInputs = [
1919 xlibsWrapper libpng libjpeg libtiff zlib bzip2 libXcursor libXrandr
20− libXft libGLU_combined libXfixes xinput
20+ libXft libGLU libGL libXfixes xinput
2121 ] ++ stdenv.lib.optional stdenv.isDarwin CoreServices;
2222
2323 doCheck = true;
pkgs/development/libraries/freenect/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU_combined, libXi, libXmu
1+{ stdenv, lib, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU, libGL, libXi, libXmu
22, GLUT, Cocoa
33 }:
44
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 sha256 = "0vnc7z2avckh4mccqq6alsd2z7xvsh3kaslc5b0gnfxw0j269gl6";
1414 };
1515
16− buildInputs = [ libusb freeglut libGLU_combined libXi libXmu ]
16+ buildInputs = [ libusb freeglut libGLU libGL libXi libXmu ]
1717 ++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
1818
1919 nativeBuildInputs = [ cmake pkgconfig ];
pkgs/development/libraries/fribidi/default.nix+8
@@ -20,6 +20,14 @@ stdenv.mkDerivation rec {
2020 sha256 = "0pckda4fcn0aw32lpycwdp25r2m7vca8zspq815ppi9gkwgg5das";
2121 };
2222
23+ patches = [
24+ (fetchpatch {
25+ name = "CVE-2019-18397.patch";
26+ url = "https://github.com/fribidi/fribidi/commit/034c6e9a1d296286305f4cfd1e0072b879f52568.patch";
27+ sha256 = "102xrbf1l5gvavkxd6csx8pj3rlgcw10c0y4h4d40yhn84b1p0y8";
28+ })
29+ ];
30+
2331 postPatch = ''
2432 patchShebangs test
2533 '';
pkgs/development/libraries/glui/default.nix+2−1
@@ -1,4 +1,5 @@
1−{ stdenv, fetchurl
1+{ stdenv
2+, fetchurl
23, freeglut
34, libGL
45, libGLU
pkgs/development/libraries/gstreamer/bad/default.nix+171−81
@@ -1,16 +1,40 @@
1−{ stdenv, fetchurl, fetchpatch, meson, ninja, gettext
1+{ stdenv
2+, fetchurl
3+, meson
4+, ninja
5+, gettext
26, config
3−, pkgconfig, python3, gst-plugins-base, orc
7+, pkgconfig
8+, python3
9+, gst-plugins-base
10+, orc
411, gobject-introspection
512, enableZbar ? true
6−, faacSupport ? false, faac ? null
7−, faad2, libass, libkate, libmms, librdf, ladspaH
8−, libnice, webrtc-audio-processing, lilv, lv2, serd, sord, sratom
9−, libbs2b, libmodplug, mpeg2dec
10−, openjpeg, libopus, librsvg
13+, faacSupport ? false
14+, faac ? null
15+, faad2
16+, libass
17+, libkate
18+, libmms
19+, librdf
20+, ladspaH
21+, libnice
22+, webrtc-audio-processing
23+, lilv
24+, lv2
25+, serd
26+, sord
27+, sratom
28+, libbs2b
29+, libmodplug
30+, mpeg2dec
31+, openjpeg
32+, libopus
33+, librsvg
1134, bluez
1235, chromaprint
1336, curl
37+, darwin
1438, directfb
1539, fdk_aac
1640, flite
@@ -27,7 +51,7 @@
2751, libusb1
2852, neon
2953, openal
30−, opencv3
54+, opencv4
3155, openexr
3256, openh264
3357, pango
@@ -38,10 +62,21 @@
3862, srtp
3963, zbar
4064, wayland-protocols
41−, wildmidi, fluidsynth, libvdpau, wayland
42−, libwebp, xvidcore, gnutls, mjpegtools
43−, libGLU_combined, libintl, libgme
44−, openssl, x265, libxml2
65+, wildmidi
66+, fluidsynth
67+, libvdpau
68+, wayland
69+, libwebp
70+, xvidcore
71+, gnutls
72+, mjpegtools
73+, libGLU
74+, libGL
75+, libintl
76+, libgme
77+, openssl
78+, x265
79+, libxml2
4580, srt
4681}:
4782
@@ -49,113 +84,128 @@ assert faacSupport -> faac != null;
4984
5085let
5186 inherit (stdenv.lib) optional optionals;
52−in
53−stdenv.mkDerivation rec {
87+in stdenv.mkDerivation rec {
5488 pname = "gst-plugins-bad";
55− version = "1.16.0";
89+ version = "1.16.1";
5690
57− meta = with stdenv.lib; {
58− description = "Gstreamer Bad Plugins";
59− homepage = "https://gstreamer.freedesktop.org";
60− longDescription = ''
61− a set of plug-ins that aren't up to par compared to the
62− rest. They might be close to being good quality, but they're missing
63− something - be it a good code review, some documentation, a set of tests,
64− a real live maintainer, or some actual wide use.
65− '';
66− license = licenses.lgpl2Plus;
67− platforms = platforms.linux ++ platforms.darwin;
68− maintainers = with maintainers; [ matthewbauer ];
69− };
91+ outputs = [ "out" "dev" ];
7092
71− preConfigure = ''
72− patchShebangs .
73− '';
93+ src = fetchurl {
94+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
95+ sha256 = "1dddqacxgp77f3nl153x5a6139wdphc9phds2fpqb2cv6faiqj2n";
96+ };
7497
7598 patches = [
7699 ./fix_pkgconfig_includedir.patch
77− # Remove when https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/312 is merged and available to us
78− (fetchpatch {
79− url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/commit/99790eaad9083cce5ab2b1646489e1a1c0faad1e.patch";
80− sha256 = "11bqy4sl05qq5mj4bx5s09rq106s3j0vnpjl4np058im32j69lr3";
81− })
82− # Remove when https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/312 is merged and available to us
83− (fetchpatch {
84− url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/commit/1872da81c48d3a719bd39955fd97deac7d037d74.patch";
85− sha256 = "11zwrr5ggflmvr0qfssj7dmhgd3ybiadmy79b4zh24022zgw3xpz";
86− })
87100 ];
88101
89− src = fetchurl {
90− url = "${meta.homepage}/src/gst-plugins-bad/${pname}-${version}.tar.xz";
91− sha256 = "019b0yqjrcg6jmfd4cc336h1bz5p4wxl58yz1c4sdb96avirs4r2";
92− };
93−
94− outputs = [ "out" "dev" ];
95−
96102 nativeBuildInputs = [
97− meson ninja pkgconfig python3 gettext gobject-introspection
98− ]
99− ++ optionals stdenv.isLinux [
103+ meson
104+ ninja
105+ pkgconfig
106+ python3
107+ gettext
108+ gobject-introspection
109+ ] ++ optionals stdenv.isLinux [
100110 wayland-protocols
101111 ];
102112
103113 buildInputs = [
104− gst-plugins-base orc
105− faad2 libass libkate libmms
106− libnice webrtc-audio-processing # webrtc
114+ gst-plugins-base
115+ orc
116+ faad2
117+ libass
118+ libkate
119+ libmms
120+ webrtc-audio-processing # webrtc
107121 libbs2b
108− ladspaH librdf # ladspa plug-in
109− lilv lv2 serd sord sratom # lv2 plug-in
110− libmodplug mpeg2dec
111− openjpeg libopus librsvg
112− bluez
113− chromaprint
122+ libmodplug
123+ mpeg2dec
124+ openjpeg
125+ libopus
126+ librsvg
114127 curl.dev
115− directfb
116128 fdk_aac
117− flite
118129 gsm
119130 libaom
120131 libdc1394
121132 libde265
122− libdrm
123133 libdvdnav
124134 libdvdread
125− libgudev
126− libofa
127135 libsndfile
128136 libusb1
137+ mjpegtools
129138 neon
130139 openal
131− opencv3
140+ opencv4
132141 openexr
133142 openh264
134143 rtmpdump
135144 pango
136− sbc
137145 soundtouch
138− spandsp
139146 srtp
140− fluidsynth libvdpau
141− libwebp xvidcore gnutls libGLU_combined
142− libgme openssl x265 libxml2
147+ fluidsynth
148+ libvdpau
149+ libwebp
150+ xvidcore
151+ gnutls
152+ libGL
153+ libGLU
154+ libgme
155+ openssl
156+ x265
157+ libxml2
143158 libintl
144159 srt
145− ]
146− ++ optional enableZbar zbar
147− ++ optional faacSupport faac
148− ++ optional stdenv.isLinux wayland
160+ ] ++ optionals enableZbar [
161+ zbar
162+ ] ++ optionals faacSupport [
163+ faac
164+ ] ++ optionals stdenv.isLinux [
165+ bluez
166+ wayland
167+ ] ++ optionals (!stdenv.isDarwin) [
149168 # wildmidi requires apple's OpenAL
150169 # TODO: package apple's OpenAL, fix wildmidi, include on Darwin
151− ++ optional (!stdenv.isDarwin) wildmidi
170+ wildmidi
152171 # TODO: mjpegtools uint64_t is not compatible with guint64 on Darwin
153− ++ optional (!stdenv.isDarwin) mjpegtools;
172+ mjpegtools
154173
155− mesonFlags = [
156− # Enables all features, so that we know when new dependencies are necessary.
157− "-Dauto_features=enabled"
174+ chromaprint
175+ directfb
176+ flite
177+ libdrm
178+ libgudev
179+ libnice
180+ libofa
181+ librdf
182+ sbc
183+ spandsp
184+
185+ # ladspa plug-in
186+ ladspaH
187+ librdf # TODO: make build on Darwin
158188
189+ # lv2 plug-in
190+ lilv
191+ lv2
192+ serd
193+ sord
194+ sratom
195+ ] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
196+ # For unknown reasons the order is important, e.g. if
197+ # VideoToolbox is last, we get:
198+ # fatal error: 'VideoToolbox/VideoToolbox.h' file not found
199+ VideoToolbox
200+ AudioToolbox
201+ AVFoundation
202+ CoreMedia
203+ CoreVideo
204+ Foundation
205+ MediaToolbox
206+ ]);
207+
208+ mesonFlags = [
159209 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
160210
161211 "-Ddts=disabled" # required `libdca` library not packaged in nixpkgs as of writing, and marked as "BIG FAT WARNING: libdca is still in early development"
@@ -191,10 +241,50 @@ stdenv.mkDerivation rec {
191241 # see https://github.com/NixOS/nixpkgs/issues/54395
192242 "-Dnvdec=disabled"
193243 "-Dnvenc=disabled"
244+ ]
245+ ++ optionals stdenv.isDarwin [
246+ "-Dbluez=disabled"
247+ "-Dchromaprint=disabled"
248+ "-Ddirectfb=disabled"
249+ "-Dflite=disabled"
250+ "-Dkms=disabled" # renders to libdrm output
251+ "-Dofa=disabled"
252+ "-Dlv2=disabled"
253+ "-Dsbc=disabled"
254+ "-Dspandsp=disabled"
255+ "-Ddvb=disabled"
256+ "-Dfbdev=disabled"
257+ "-Duvch264=disabled" # requires gudev
258+ "-Dladspa=disabled" # requires lrdf
259+ "-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs
260+ "-Dwildmidi=disabled" # see dependencies above
261+ ] ++ optionals (!gst-plugins-base.glEnabled) [
262+ "-Dgl=disabled"]
263+ ++ optionals (!gst-plugins-base.waylandEnabled) [
264+ "-Dwayland=disabled"
265+ ] ++ optionals (!gst-plugins-base.glEnabled) [
266+ # `applemedia/videotexturecache.h` requires `gst/gl/gl.h`,
267+ # but its meson build system does not declare the dependency.
268+ "-Dapplemedia=disabled"
194269 ];
195270
196− enableParallelBuilding = true;
271+ # This package has some `_("string literal")` string formats
272+ # that trip up clang with format security enabled.
273+ hardeningDisable = [ "format" ];
197274
198275 doCheck = false; # fails 20 out of 58 tests, expensive
199276
277+ meta = with stdenv.lib; {
278+ description = "GStreamer Bad Plugins";
279+ homepage = "https://gstreamer.freedesktop.org";
280+ longDescription = ''
281+ a set of plug-ins that aren't up to par compared to the
282+ rest. They might be close to being good quality, but they're missing
283+ something - be it a good code review, some documentation, a set of tests,
284+ a real live maintainer, or some actual wide use.
285+ '';
286+ license = licenses.lgpl2Plus;
287+ platforms = platforms.linux ++ platforms.darwin;
288+ maintainers = with maintainers; [ matthewbauer ];
289+ };
200290}
pkgs/development/libraries/gstreamer/base/default.nix+111−58
@@ -1,100 +1,153 @@
1−{ stdenv, fetchurl, fetchpatch, lib
2−, pkgconfig, meson, ninja, gettext, gobject-introspection
3−, python3, gstreamer, orc, pango, libtheora
4−, libintl, libopus
1+{ stdenv
2+, fetchurl
3+, lib
4+, pkgconfig
5+, meson
6+, ninja
7+, gettext
8+, gobject-introspection
9+, python3
10+, gstreamer
11+, orc
12+, pango
13+, libtheora
14+, libintl
15+, libopus
516, isocodes
617, libjpeg
18+, libpng
719, libvisual
820, tremor # provides 'virbisidec'
921, libGL
10−, gtk-doc, docbook_xsl, docbook_xml_dtd_412
11−, enableX11 ? stdenv.isLinux, libXv
12−, enableWayland ? stdenv.isLinux, wayland
13−, enableAlsa ? stdenv.isLinux, alsaLib
14−, enableCocoa ? false, darwin
15−, enableCdparanoia ? (!stdenv.isDarwin), cdparanoia }:
22+, gtk-doc
23+, docbook_xsl
24+, docbook_xml_dtd_43
25+, enableX11 ? stdenv.isLinux
26+, libXv
27+, enableWayland ? stdenv.isLinux
28+, wayland
29+, enableAlsa ? stdenv.isLinux
30+, alsaLib
31+# Enabling Cocoa seems to currently not work, giving compile
32+# errors. Suspected is that a newer version than clang
33+# is needed than 5.0 but it is not clear.
34+, enableCocoa ? false
35+, darwin
36+, enableGl ? (enableX11 || enableWayland || enableCocoa)
37+, enableCdparanoia ? (!stdenv.isDarwin)
38+, cdparanoia
39+}:
1640
1741stdenv.mkDerivation rec {
1842 pname = "gst-plugins-base";
19− version = "1.16.0";
43+ version = "1.16.1";
2044
21− meta = with lib; {
22− description = "Base plugins and helper libraries";
23− homepage = https://gstreamer.freedesktop.org;
24− license = licenses.lgpl2Plus;
25− platforms = platforms.unix;
26− maintainers = with maintainers; [ matthewbauer ];
27− };
45+ outputs = [ "out" "dev" ];
2846
2947 src = fetchurl {
30− url = "${meta.homepage}/src/gst-plugins-base/${pname}-${version}.tar.xz";
31− sha256 = "1bmmdwbyy89ayb85xc48y217f6wdmpz96f30zm6v53z2a5xsm4s0";
48+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
49+ sha256 = "0aybbwnzm15074smdk2bamj3ssck3hjvmilvgh49f19xjf4w8g2w";
3250 };
3351
34− outputs = [ "out" "dev" ];
52+ patches = [
53+ ./fix_pkgconfig_includedir.patch
54+ ];
3555
3656 nativeBuildInputs = [
37− pkgconfig python3 gettext gobject-introspection
57+ meson
58+ ninja
59+ pkgconfig
60+ python3
61+ gettext
62+ gobject-introspection
63+
64+ # docs
3865 gtk-doc
39− # Without these, enabling the 'gtk_doc' gives us `FAILED: meson-install`
40− docbook_xsl docbook_xml_dtd_412
41− ]
42− # Broken meson with Darwin. Should hopefully be fixed soon. Tracking
43− # in https://bugzilla.gnome.org/show_bug.cgi?id=781148.
44− ++ lib.optionals (!stdenv.isDarwin) [ meson ninja ];
66+ docbook_xsl
67+ docbook_xml_dtd_43
68+ ];
4569
46− # On Darwin, we currently use autoconf, on all other systems Meson
47− # TODO Switch to Meson on Darwin as well
70+ buildInputs = [
71+ orc
72+ libtheora
73+ libintl
74+ libopus
75+ isocodes
76+ libpng
77+ libjpeg
78+ tremor
79+ libGL
80+ ] ++ lib.optional (!stdenv.isDarwin) [
81+ libvisual
82+ ] ++ lib.optionals stdenv.isDarwin [
83+ pango
84+ darwin.apple_sdk.frameworks.OpenGL
85+ ] ++ lib.optional enableAlsa alsaLib
86+ ++ lib.optionals enableX11 [ libXv pango ]
87+ ++ lib.optional enableWayland wayland
88+ ++ lib.optional enableCocoa darwin.apple_sdk.frameworks.Cocoa
89+ ++ lib.optional enableCdparanoia cdparanoia;
4890
49− # TODO How to pass these to Meson?
50− configureFlags = lib.optionals stdenv.isDarwin [
51− "--enable-x11=${if enableX11 then "yes" else "no"}"
52− "--enable-wayland=${if enableWayland then "yes" else "no"}"
53− "--enable-cocoa=${if enableCocoa then "yes" else "no"}"
54− ]
55− # Introspection fails on my MacBook currently
56− ++ lib.optional stdenv.isDarwin "--disable-introspection";
91+ propagatedBuildInputs = [
92+ gstreamer
93+ ];
5794
58− mesonFlags = lib.optionals (!stdenv.isDarwin) [
59− # Enables all features, so that we know when new dependencies are necessary.
60− "-Dauto_features=enabled"
95+ mesonFlags = [
6196 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
6297 "-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing
98+ "-Dgl_platform=[${lib.optionalString (enableX11 || enableWayland || enableCocoa) "auto"}]"
6399 # See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices
64100 "-Dgl_winsys=[${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}]"
65101 # We must currently disable gtk_doc API docs generation,
66102 # because it is not compatible with some features being disabled.
67103 # See for example
68− # https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/38
104+ # https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/564
69105 # for it failing because some Wayland symbols are missing.
70106 # This problem appeared between 1.15.1 and 1.16.0.
107+ # In 1.18 they should switch to hotdoc, which should make this issue irrelevant.
71108 "-Dgtk_doc=disabled"
72109 ]
73110 ++ lib.optional (!enableX11) "-Dx11=disabled"
74111 # TODO How to disable Wayland?
112+ ++ lib.optional (!enableGl) "-Dgl=disabled"
75113 ++ lib.optional (!enableAlsa) "-Dalsa=disabled"
76114 ++ lib.optional (!enableCdparanoia) "-Dcdparanoia=disabled"
77− ;
78−
79− buildInputs = [ orc libtheora libintl libopus isocodes libjpeg tremor libGL ]
80− ++ lib.optional (!stdenv.isDarwin) libvisual
81− ++ lib.optional enableAlsa alsaLib
82− ++ lib.optionals enableX11 [ libXv pango ]
83− ++ lib.optional enableWayland wayland
84− ++ lib.optional enableCocoa darwin.apple_sdk.frameworks.Cocoa
85− ++ lib.optional enableCdparanoia cdparanoia;
86−
87− propagatedBuildInputs = [ gstreamer ];
115+ ++ lib.optionals stdenv.isDarwin [
116+ "-Dlibvisual=disabled"
117+ ];
88118
89119 postPatch = ''
90− patchShebangs .
120+ patchShebangs common/scangobj-merge.py
91121 '';
92122
93− enableParallelBuilding = true;
123+ # This package has some `_("string literal")` string formats
124+ # that trip up clang with format security enabled.
125+ hardeningDisable = [ "format" ];
94126
95127 doCheck = false; # fails, wants DRI access for OpenGL
96128
97− patches = [
98− ./fix_pkgconfig_includedir.patch
99− ];
129+ passthru = {
130+ # Downstream `gst-*` packages depending on `gst-plugins-base`
131+ # have meson build options like 'gl' etc. that depend
132+ # on these features being built in `-base`.
133+ # If they are not built here, then the downstream builds
134+ # will fail, as they, too, use `-Dauto_features=enabled`
135+ # which would enable these options unconditionally.
136+ # That means we must communicate to these downstream packages
137+ # if the `-base` enabled these options or not, so that
138+ # the can enable/disable those features accordingly.
139+ # The naming `*Enabled` vs `enable*` is intentional to
140+ # distinguish inputs from outputs (what is to be built
141+ # vs what was built) and to make them easier to search for.
142+ glEnabled = enableGl;
143+ waylandEnabled = enableWayland;
144+ };
145+
146+ meta = with lib; {
147+ description = "Base GStreamer plug-ins and helper libraries";
148+ homepage = "https://gstreamer.freedesktop.org";
149+ license = licenses.lgpl2Plus;
150+ platforms = platforms.unix;
151+ maintainers = with maintainers; [ matthewbauer ];
152+ };
100153}
pkgs/development/libraries/gstreamer/core/default.nix+66−41
@@ -1,10 +1,23 @@
1−{ stdenv, fetchurl, fetchpatch, meson, ninja
2−, pkgconfig, gettext, gobject-introspection
3−, bison, flex, python3, glib, makeWrapper
4−, libcap,libunwind, darwin
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+, meson
5+, ninja
6+, pkgconfig
7+, gettext
8+, gobject-introspection
9+, bison
10+, flex
11+, python3
12+, glib
13+, makeWrapper
14+, libcap
15+, libunwind
16+, darwin
517, elfutils # for libdw
618, bash-completion
7−, docbook_xsl, docbook_xml_dtd_412
19+, docbook_xsl
20+, docbook_xml_dtd_43
821, gtk-doc
922, lib
1023, CoreServices
@@ -12,50 +25,66 @@
1225
1326stdenv.mkDerivation rec {
1427 pname = "gstreamer";
15− version = "1.16.0";
28+ version = "1.16.1";
1629
17− meta = with lib ;{
18− description = "Open source multimedia framework";
19− homepage = https://gstreamer.freedesktop.org;
20− license = licenses.lgpl2Plus;
21− platforms = platforms.unix;
22− maintainers = with maintainers; [ ttuegel matthewbauer ];
23− };
30+ outputs = [ "out" "dev" "devdoc" ];
31+ outputBin = "dev";
2432
2533 src = fetchurl {
26− url = "${meta.homepage}/src/gstreamer/${pname}-${version}.tar.xz";
27− sha256 = "003wy1p1in85p9sr5jsyhbnwqaiwz069flwkhyx7qhxy31qjz3hf";
34+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
35+ sha256 = "0z9pyhf6zm1r0spw6zym80bvbyx6h8xg9h6535csbnn48ws1q882";
2836 };
2937
3038 patches = [
3139 ./fix_pkgconfig_includedir.patch
3240 ];
3341
34− outputs = [ "out" "dev" ];
35− outputBin = "dev";
36−
3742 nativeBuildInputs = [
38− meson ninja pkgconfig gettext bison flex python3 makeWrapper gobject-introspection
43+ meson
44+ ninja
45+ pkgconfig
46+ gettext
47+ bison
48+ flex
49+ python3
50+ makeWrapper
51+ gobject-introspection
3952 bash-completion
53+
54+ # documentation
4055 gtk-doc
41− # Without these, enabling the 'gtk_doc' gives us `FAILED: meson-install`
42− docbook_xsl docbook_xml_dtd_412
56+ docbook_xsl
57+ docbook_xml_dtd_43
4358 ];
4459
45− buildInputs =
46− lib.optionals stdenv.isLinux [ libcap libunwind elfutils ]
47− ++ lib.optional stdenv.isDarwin CoreServices;
60+ buildInputs = lib.optionals stdenv.isLinux [
61+ libcap
62+ libunwind
63+ elfutils
64+ ] ++ lib.optionals stdenv.isDarwin [
65+ CoreServices
66+ ];
4867
49− propagatedBuildInputs = [ glib ];
68+ propagatedBuildInputs = [
69+ glib
70+ ];
5071
5172 mesonFlags = [
52− # Enables all features, so that we know when new dependencies are necessary.
53− "-Dauto_features=enabled"
5473 "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those
5574 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
56− ]
75+ ] ++ lib.optionals stdenv.isDarwin [
5776 # darwin.libunwind doesn't have pkgconfig definitions so meson doesn't detect it.
58− ++ stdenv.lib.optionals stdenv.isDarwin [ "-Dlibunwind=disabled" "-Dlibdw=disabled" ];
77+ "-Dlibunwind=disabled"
78+ "-Dlibdw=disabled"
79+ ];
80+
81+ postPatch = ''
82+ patchShebangs \
83+ gst/parse/get_flex_version.py \
84+ gst/parse/gen_grammar.py.in \
85+ gst/parse/gen_lex.py.in \
86+ libs/gst/helpers/ptp_helper_post_install.sh
87+ '';
5988
6089 postInstall = ''
6190 for prog in "$dev/bin/"*; do
@@ -64,21 +93,17 @@ stdenv.mkDerivation rec {
6493 done
6594 '';
6695
67− preConfigure=
68− # These files are not executable upstream, so we need to
69− # make them executable for `patchShebangs` to pick them up.
70− # Can be removed when this is merged and available:
71− # https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/141
72− ''
73− chmod +x gst/parse/get_flex_version.py
74− '' +
75− ''
76− patchShebangs .
77− '';
78−
7996 preFixup = ''
8097 moveToOutput "share/bash-completion" "$dev"
8198 '';
8299
83100 setupHook = ./setup-hook.sh;
101+
102+ meta = with lib ;{
103+ description = "Open source multimedia framework";
104+ homepage = "https://gstreamer.freedesktop.org";
105+ license = licenses.lgpl2Plus;
106+ platforms = platforms.unix;
107+ maintainers = with maintainers; [ ttuegel matthewbauer ];
108+ };
84109}
pkgs/development/libraries/gstreamer/ges/default.nix+46−19
@@ -1,39 +1,66 @@
1−{ stdenv, fetchurl, fetchpatch, meson, ninja
2−, pkgconfig, python, gst-plugins-base, libxml2
3−, flex, perl, gettext, gobject-introspection
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+, meson
5+, ninja
6+, pkgconfig
7+, python
8+, gst-plugins-base
9+, libxml2
10+, flex
11+, perl
12+, gettext
13+, gobject-introspection
414}:
515
616stdenv.mkDerivation rec {
717 pname = "gstreamer-editing-services";
8− version = "1.16.0";
18+ version = "1.16.1";
919
10− meta = with stdenv.lib; {
11− description = "Library for creation of audio/video non-linear editors";
12− homepage = "https://gstreamer.freedesktop.org";
13− license = licenses.lgpl2Plus;
14− platforms = platforms.unix;
15− };
20+ outputs = [ "out" "dev" ];
1621
1722 src = fetchurl {
18− url = "${meta.homepage}/src/gstreamer-editing-services/${pname}-${version}.tar.xz";
19− sha256 = "1las94jkx83sxmzi5w6b0xm89dqqwzpdsb6h9w9ixndhnbpzm8w2";
23+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
24+ sha256 = "10375z5mc3bwfs07mhmfx943sbp55z8m8ihp9xpcknkdks7qg168";
2025 };
2126
22− outputs = [ "out" "dev" ];
27+ patches = [
28+ ./fix_pkgconfig_includedir.patch
29+ ];
30+
31+ nativeBuildInputs = [
32+ meson
33+ ninja
34+ pkgconfig
35+ gettext
36+ gobject-introspection
37+ python
38+ flex
39+ perl
40+ ];
2341
24− nativeBuildInputs = [ meson ninja pkgconfig gettext gobject-introspection python flex perl ];
42+ buildInputs = [
43+ libxml2
44+ ];
2545
26− propagatedBuildInputs = [ gst-plugins-base libxml2 ];
46+ propagatedBuildInputs = [
47+ gst-plugins-base
48+ ];
2749
2850 mesonFlags = [
2951 "-Dgtk_doc=disabled"
3052 ];
3153
32− patches = [
33− ./fix_pkgconfig_includedir.patch
34− ];
35−
3654 postPatch = ''
55+ # for some reason, gst-plugins-bad cannot be found
56+ # fortunately, they are only used by tests, which we do not run
3757 sed -i -r -e 's/p(bad|good) = .*/p\1 = pbase/' tests/check/meson.build
3858 '';
59+
60+ meta = with stdenv.lib; {
61+ description = "Library for creation of audio/video non-linear editors";
62+ homepage = "https://gstreamer.freedesktop.org";
63+ license = licenses.lgpl2Plus;
64+ platforms = platforms.unix;
65+ };
3966}
pkgs/development/libraries/gstreamer/good/default.nix+106−49
@@ -1,14 +1,37 @@
1−{ stdenv, fetchurl, meson, ninja, pkgconfig, python
2−, gst-plugins-base, orc, bzip2, gettext
3−, libv4l, libdv, libavc1394, libiec61883
4−, libvpx, speex, flac, taglib, libshout
5−, cairo, gdk-pixbuf, aalib, libcaca
6−, libsoup, libpulseaudio, libintl
7−, darwin, lame, mpg123, twolame
1+{ stdenv
2+, fetchurl
3+, meson
4+, ninja
5+, pkgconfig
6+, python
7+, gst-plugins-base
8+, orc
9+, bzip2
10+, gettext
11+, libv4l
12+, libdv
13+, libavc1394
14+, libiec61883
15+, libvpx
16+, speex
17+, flac
18+, taglib
19+, libshout
20+, cairo
21+, gdk-pixbuf
22+, aalib
23+, libcaca
24+, libsoup
25+, libpulseaudio
26+, libintl
27+, darwin
28+, lame
29+, mpg123
30+, twolame
831, gtkSupport ? false, gtk3 ? null
9−# As of writing, jack2 incurs a Qt dependency (big!) via `ffado`.
10−# In the fuure we should probably split `ffado`.
11−, enableJack ? false
32+ # As of writing, jack2 incurs a Qt dependency (big!) via `ffado`.
33+ # In the future we should probably split `ffado`.
34+, enableJack ? false, jack2
1235, libXdamage
1336, libXext
1437, libXfixes
@@ -16,49 +39,53 @@
1639, xorg
1740, libgudev
1841, wavpack
19−, jack2
2042}:
2143
2244assert gtkSupport -> gtk3 != null;
2345
2446let
25− inherit (stdenv.lib) optional optionals;
47+ inherit (stdenv.lib) optionals;
2648in
2749stdenv.mkDerivation rec {
2850 pname = "gst-plugins-good";
29− version = "1.16.0";
51+ version = "1.16.1";
3052
31− meta = with stdenv.lib; {
32− description = "Gstreamer Good Plugins";
33− homepage = "https://gstreamer.freedesktop.org";
34− longDescription = ''
35− a set of plug-ins that we consider to have good quality code,
36− correct functionality, our preferred license (LGPL for the plug-in
37− code, LGPL or LGPL-compatible for the supporting library).
38− '';
39− license = licenses.lgpl2Plus;
40− platforms = platforms.linux ++ platforms.darwin;
41− maintainers = with maintainers; [ matthewbauer ];
42− };
53+ outputs = [ "out" "dev" ];
4354
4455 src = fetchurl {
45− url = "${meta.homepage}/src/gst-plugins-good/${pname}-${version}.tar.xz";
46− sha256 = "1zdhif1mhf0ihkjpjyrh65g2iz2cawkjjb3h5w8h9ml06grxwjk5";
56+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
57+ sha256 = "07wgz9anf4ram2snp8n1wv6l0q3pd00iaw8bvw3wgklg05lvxflz";
4758 };
4859
49− outputs = [ "out" "dev" ];
50−
5160 patches = [ ./fix_pkgconfig_includedir.patch ];
5261
53− nativeBuildInputs = [ pkgconfig python meson ninja gettext ];
54−
55− NIX_LDFLAGS = "-lncurses";
62+ nativeBuildInputs = [
63+ pkgconfig
64+ python
65+ meson
66+ ninja
67+ gettext
68+ ];
5669
5770 buildInputs = [
58− gst-plugins-base orc bzip2
59− libdv libvpx speex flac taglib
60− cairo gdk-pixbuf aalib libcaca
61− libsoup libshout lame mpg123 twolame libintl
71+ gst-plugins-base
72+ orc
73+ bzip2
74+ libdv
75+ libvpx
76+ speex
77+ flac
78+ taglib
79+ cairo
80+ gdk-pixbuf
81+ aalib
82+ libcaca
83+ libsoup
84+ libshout
85+ lame
86+ mpg123
87+ twolame
88+ libintl
6289 libXdamage
6390 libXext
6491 libXfixes
@@ -66,29 +93,59 @@ stdenv.mkDerivation rec {
6693 xorg.libXfixes
6794 xorg.libXdamage
6895 wavpack
69− ]
70− ++ optional gtkSupport gtk3 # for gtksink
71− ++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
72− ++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 libgudev ]
73− ++ optionals (stdenv.isLinux && enableJack) [
96+ ] ++ optionals gtkSupport [
97+ # for gtksink
98+ gtk3
99+ ] ++ optionals stdenv.isDarwin [
100+ darwin.apple_sdk.frameworks.Cocoa
101+ ] ++ optionals stdenv.isLinux [
102+ libv4l
103+ libpulseaudio
104+ libavc1394
105+ libiec61883
106+ libgudev
107+ ] ++ optionals (stdenv.isLinux && enableJack) [
74108 jack2
75109 ];
76110
77111 mesonFlags = [
78− # Enables all features, so that we know when new dependencies are necessary.
79− "-Dauto_features=enabled"
80112 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
81113 "-Dqt5=disabled" # not clear as of writing how to correctly pass in the required qt5 deps
82− ]
83− ++ optional (!gtkSupport) "-Dgtk3=disabled"
84− ++ optionals (!stdenv.isLinux || !enableJack) [
114+ ] ++ optionals (!gtkSupport) [
115+ "-Dgtk3=disabled"
116+ ] ++ optionals (!stdenv.isLinux || !enableJack) [
85117 "-Djack=disabled" # unclear whether Jack works on Darwin
86− ]
87− ++ optionals (!stdenv.isLinux) [
88− "-Dv4l2-gudev=disabled"
118+ ] ++ optionals (!stdenv.isLinux) [
119+ "-Ddv1394=disabled" # Linux only
120+ "-Doss4=disabled" # Linux only
121+ "-Doss=disabled" # Linux only
122+ "-Dpulse=disabled" # TODO check if we can keep this enabled
123+ "-Dv4l2-gudev=disabled" # Linux-only
124+ "-Dv4l2=disabled" # Linux-only
125+ "-Dximagesrc=disabled" # Linux-only
126+ "-Dpulse=disabled" # TODO check if we can keep this enabled
127+ ];
128+
129+
130+ NIX_LDFLAGS = [
131+ # linking error on Darwin
132+ # https://github.com/NixOS/nixpkgs/pull/70690#issuecomment-553694896
133+ "-lncurses"
89134 ];
90135
91136 # fails 1 tests with "Unexpected critical/warning: g_object_set_is_valid_property: object class 'GstRtpStorage' has no property named ''"
92137 doCheck = false;
93138
139+ meta = with stdenv.lib; {
140+ description = "GStreamer Good Plugins";
141+ homepage = "https://gstreamer.freedesktop.org";
142+ longDescription = ''
143+ a set of plug-ins that we consider to have good quality code,
144+ correct functionality, our preferred license (LGPL for the plug-in
145+ code, LGPL or LGPL-compatible for the supporting library).
146+ '';
147+ license = licenses.lgpl2Plus;
148+ platforms = platforms.linux ++ platforms.darwin;
149+ maintainers = with maintainers; [ matthewbauer ];
150+ };
94151}
pkgs/development/libraries/gstreamer/libav/default.nix+29−26
@@ -1,43 +1,46 @@
1−{ stdenv, fetchurl, meson, ninja, pkgconfig
2−, python, yasm, gst-plugins-base, orc, bzip2
3−, gettext, withSystemLibav ? true, libav ? null
1+{ stdenv
2+, lib
3+, fetchurl
4+, meson
5+, ninja
6+, pkgconfig
7+, python3
8+, gst-plugins-base
9+, gettext
10+, libav
411}:
512
613# Note that since gst-libav-1.6, libav is actually ffmpeg. See
714# https://gstreamer.freedesktop.org/releases/1.6/ for more info.
815
9−assert withSystemLibav -> libav != null;
10−
1116stdenv.mkDerivation rec {
1217 pname = "gst-libav";
13− version = "1.16.0";
14−
15− meta = {
16− homepage = https://gstreamer.freedesktop.org;
17− license = stdenv.lib.licenses.lgpl2Plus;
18− platforms = stdenv.lib.platforms.unix;
19− };
18+ version = "1.16.1";
2019
2120 src = fetchurl {
22− url = "${meta.homepage}/src/gst-libav/${pname}-${version}.tar.xz";
23− sha256 = "16ixqpfrr7plaaz14n3vagr2q5xbfkv7gpmcsyndrkx98f813b6z";
21+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
22+ sha256 = "1i31ra0l77cfahb6k5xpx45zwvpskzm848aijsbbx9x4x65799g8";
2423 };
2524
2625 outputs = [ "out" "dev" ];
2726
28− nativeBuildInputs = with stdenv.lib;
29− [ meson ninja gettext pkgconfig python ]
30− ++ optional (!withSystemLibav) yasm
31− ;
32−
33− buildInputs = with stdenv.lib;
34− [ gst-plugins-base orc bzip2 ]
35− ++ optional withSystemLibav libav
36− ;
27+ nativeBuildInputs = [
28+ meson
29+ ninja
30+ gettext
31+ pkgconfig
32+ python3
33+ ];
3734
38− mesonFlags = [
39− # Enables all features, so that we know when new dependencies are necessary.
40− "-Dauto_features=enabled"
35+ buildInputs = [
36+ gst-plugins-base
37+ libav
4138 ];
4239
40+ meta = with lib; {
41+ description = "FFmpeg/libav plugin for GStreamer";
42+ homepage = "https://gstreamer.freedesktop.org";
43+ license = licenses.lgpl2Plus;
44+ platforms = platforms.unix;
45+ };
4346}
pkgs/development/libraries/gstreamer/rtsp-server/default.nix+32−20
@@ -1,38 +1,50 @@
1−{ stdenv, fetchurl, meson, ninja, pkgconfig
2−, gettext, gobject-introspection
1+{ stdenv
2+, fetchurl
3+, meson
4+, ninja
5+, pkgconfig
6+, gettext
7+, gobject-introspection
38, gst-plugins-base
49, gst-plugins-bad
510}:
611
712stdenv.mkDerivation rec {
813 pname = "gst-rtsp-server";
9− version = "1.16.0";
10−
11− meta = with stdenv.lib; {
12− description = "Gstreamer RTSP server";
13− homepage = "https://gstreamer.freedesktop.org";
14− longDescription = ''
15− a library on top of GStreamer for building an RTSP server.
16− '';
17− license = licenses.lgpl2Plus;
18− platforms = platforms.linux ++ platforms.darwin;
19− maintainers = with maintainers; [ bkchr ];
20− };
14+ version = "1.16.1";
2115
2216 src = fetchurl {
23− url = "${meta.homepage}/src/gst-rtsp-server/${pname}-${version}.tar.xz";
24− sha256 = "069zy159izy50blci9fli1i2r8jh91qkmgrz1n0xqciy3bn9x3hr";
17+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
18+ sha256 = "0i01f1nr0921z6z4nrh8icz76s2n7i228aqxg1ihvxl65ynsraxh";
2519 };
2620
2721 outputs = [ "out" "dev" ];
2822
29− nativeBuildInputs = [ meson ninja gettext gobject-introspection pkgconfig ];
23+ nativeBuildInputs = [
24+ meson
25+ ninja
26+ gettext
27+ gobject-introspection
28+ pkgconfig
29+ ];
3030
31− buildInputs = [ gst-plugins-base gst-plugins-bad ];
31+ buildInputs = [
32+ gst-plugins-base
33+ gst-plugins-bad
34+ ];
3235
3336 mesonFlags = [
34− # Enables all features, so that we know when new dependencies are necessary.
35− "-Dauto_features=enabled"
3637 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
3738 ];
39+
40+ meta = with stdenv.lib; {
41+ description = "GStreamer RTSP server";
42+ homepage = "https://gstreamer.freedesktop.org";
43+ longDescription = ''
44+ A library on top of GStreamer for building an RTSP server.
45+ '';
46+ license = licenses.lgpl2Plus;
47+ platforms = platforms.unix;
48+ maintainers = with maintainers; [ bkchr ];
49+ };
3850}
pkgs/development/libraries/gstreamer/ugly/default.nix+54−31
@@ -1,53 +1,76 @@
1−{ stdenv, fetchurl, meson, ninja, pkgconfig, python
2−, gst-plugins-base, orc, gettext
3−, a52dec, libcdio, libdvdread
4−, libmad, libmpeg2, x264, libintl, lib
1+{ stdenv
2+, fetchurl
3+, meson
4+, ninja
5+, pkgconfig
6+, python
7+, gst-plugins-base
8+, orc
9+, gettext
10+, a52dec
11+, libcdio
12+, libdvdread
13+, libmad
14+, libmpeg2
15+, x264
16+, libintl
17+, lib
518, opencore-amr
619, darwin
720}:
821
922stdenv.mkDerivation rec {
1023 pname = "gst-plugins-ugly";
11− version = "1.16.0";
24+ version = "1.16.1";
1225
13− meta = with lib; {
14− description = "Gstreamer Ugly Plugins";
15− homepage = "https://gstreamer.freedesktop.org";
16− longDescription = ''
17− a set of plug-ins that have good quality and correct functionality,
18− but distributing them might pose problems. The license on either
19− the plug-ins or the supporting libraries might not be how we'd
20− like. The code might be widely known to present patent problems.
21− '';
22− license = licenses.lgpl2Plus;
23− platforms = platforms.unix;
24− maintainers = with maintainers; [ matthewbauer ];
25− };
26+ outputs = [ "out" "dev" ];
2627
2728 src = fetchurl {
28− url = "${meta.homepage}/src/gst-plugins-ugly/${pname}-${version}.tar.xz";
29− sha256 = "1hm46c1fy9vl1wfwipsj41zp79cm7in1fpmjw24j5hriy32n82g3";
29+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
30+ sha256 = "07cajqjs8pqchpf2sm87hljx4ibwvkiavqxmacxsr5airar17yab";
3031 };
3132
32− outputs = [ "out" "dev" ];
33−
34− nativeBuildInputs = [ meson ninja gettext pkgconfig python ];
33+ nativeBuildInputs = [
34+ meson
35+ ninja
36+ gettext
37+ pkgconfig
38+ python
39+ ];
3540
3641 buildInputs = [
37− gst-plugins-base orc
38− a52dec libcdio libdvdread
39− libmad libmpeg2 x264
42+ gst-plugins-base
43+ orc
44+ a52dec
45+ libcdio
46+ libdvdread
47+ libmad
48+ libmpeg2
49+ x264
4050 libintl
4151 opencore-amr
42− ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks;
43− [ IOKit CoreFoundation DiskArbitration ]);
52+ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
53+ IOKit
54+ CoreFoundation
55+ DiskArbitration
56+ ]);
4457
4558 mesonFlags = [
46− # Enables all features, so that we know when new dependencies are necessary.
47− "-Dauto_features=enabled"
4859 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
4960 "-Dsidplay=disabled" # sidplay / sidplay/player.h isn't packaged in nixpkgs as of writing
5061 ];
5162
52− NIX_LDFLAGS = [ "-lm" ];
63+ meta = with lib; {
64+ description = "Gstreamer Ugly Plugins";
65+ homepage = "https://gstreamer.freedesktop.org";
66+ longDescription = ''
67+ a set of plug-ins that have good quality and correct functionality,
68+ but distributing them might pose problems. The license on either
69+ the plug-ins or the supporting libraries might not be how we'd
70+ like. The code might be widely known to present patent problems.
71+ '';
72+ license = licenses.lgpl2Plus;
73+ platforms = platforms.unix;
74+ maintainers = with maintainers; [ matthewbauer ];
75+ };
5376}
pkgs/development/libraries/gstreamer/vaapi/default.nix+53−30
@@ -1,49 +1,72 @@
1−{ stdenv, fetchurl, meson, ninja, pkgconfig, gst-plugins-base, bzip2, libva, wayland
2−, libdrm, udev, xorg, libGLU_combined, gstreamer, gst-plugins-bad, nasm
3−, libvpx, python, fetchpatch
1+{ stdenv
2+, fetchurl
3+, meson
4+, ninja
5+, pkgconfig
6+, gst-plugins-base
7+, bzip2
8+, libva
9+, wayland
10+, libdrm
11+, udev
12+, xorg
13+, libGLU
14+, libGL
15+, gstreamer
16+, gst-plugins-bad
17+, nasm
18+, libvpx
19+, python
420}:
521
622stdenv.mkDerivation rec {
7− pname = "gst-vaapi";
8− version = "1.16.0";
23+ pname = "gstreamer-vaapi";
24+ version = "1.16.1";
925
1026 src = fetchurl {
11− url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
12− sha256 = "07qpynamiz0lniqajcaijh3n7ixs4lfk9a5mfk50sng0dricwzsf";
27+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
28+ sha256 = "0fk0nymvbfc04fv63fj2r6q9vvi431svhkrwpr7kdjvq3rphymyb";
1329 };
1430
15− patches = [
16− # See: https://mail.gnome.org/archives/distributor-list/2019-September/msg00000.html
17− # Note that the patch has now been actually accepted upstream.
18− (fetchpatch {
19− url = "https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/commit/a90daabb84f983d2fa05ff3159f7ad59aa648b55.patch";
20− sha256 = "0p2qygq6b5h6nxjdfnlzbsyih43hjq5c94ag8sbyyb8pmnids9rb";
21− })
22− ];
23−
2431 outputs = [ "out" "dev" ];
2532
26− nativeBuildInputs = [ meson ninja pkgconfig bzip2 ];
33+ nativeBuildInputs = [
34+ meson
35+ ninja
36+ pkgconfig
37+ bzip2
38+ ];
2739
2840 buildInputs = [
29− gstreamer gst-plugins-base gst-plugins-bad libva wayland libdrm udev
30− xorg.libX11 xorg.libXext xorg.libXv xorg.libXrandr xorg.libSM
31− xorg.libICE libGLU_combined nasm libvpx python
41+ gstreamer
42+ gst-plugins-base
43+ gst-plugins-bad
44+ libva
45+ wayland
46+ libdrm
47+ udev
48+ xorg.libX11
49+ xorg.libXext
50+ xorg.libXv
51+ xorg.libXrandr
52+ xorg.libSM
53+ xorg.libICE
54+ libGL
55+ libGLU
56+ nasm
57+ libvpx
58+ python
3259 ];
3360
34− preConfigure = ''
35− export GST_PLUGIN_PATH_1_0=$out/lib/gstreamer-1.0
36− mkdir -p $GST_PLUGIN_PATH_1_0
37− '';
38−
3961 mesonFlags = [
4062 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
4163 ];
4264
43− meta = {
44− homepage = https://gstreamer.freedesktop.org;
45− license = stdenv.lib.licenses.lgpl21Plus;
46− platforms = stdenv.lib.platforms.linux;
47− maintainers = with stdenv.lib.maintainers; [ tstrobel ];
65+ meta = with stdenv.lib; {
66+ description = "Set of VAAPI GStreamer Plug-ins";
67+ homepage = "https://gstreamer.freedesktop.org";
68+ license = licenses.lgpl21Plus;
69+ maintainers = with maintainers; [ tstrobel ];
70+ platforms = platforms.linux;
4871 };
4972}
pkgs/development/libraries/gstreamer/validate/default.nix+25−21
@@ -1,39 +1,43 @@
1−{ stdenv, fetchurl, pkgconfig, gstreamer, gst-plugins-base
2−, python, gobject-introspection, json-glib
1+{ stdenv
2+, fetchurl
3+, pkgconfig
4+, gstreamer
5+, gst-plugins-base
6+, python
7+, gobject-introspection
8+, json-glib
39}:
410
511stdenv.mkDerivation rec {
612 pname = "gst-validate";
7− version = "1.16.0";
8−
9− meta = {
10− description = "Integration testing infrastructure for the GStreamer framework";
11− homepage = https://gstreamer.freedesktop.org;
12− license = stdenv.lib.licenses.lgpl2Plus;
13− platforms = stdenv.lib.platforms.unix;
14− };
13+ version = "1.16.1";
1514
1615 src = fetchurl {
17− url = "${meta.homepage}/src/gst-validate/${pname}-${version}.tar.xz";
18− sha256 = "1jfnd0g9hmdbqfxsx96yc9vpf1w6m33hqwrr6lj4i83kl54awcck";
16+ url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
17+ sha256 = "1698arvmpb0cvyi8ll1brvs51vs7i3f3fw19iswh8xhj5adrn1vz";
1918 };
2019
2120 outputs = [ "out" "dev" ];
2221
2322 nativeBuildInputs = [
24− pkgconfig gobject-introspection
23+ pkgconfig
24+ gobject-introspection
2525 ];
2626
2727 buildInputs = [
28− python json-glib
28+ python
29+ json-glib
2930 ];
3031
31− propagatedBuildInputs = [ gstreamer gst-plugins-base ];
32−
33− enableParallelBuilding = true;
34−
35− mesonFlags = [
36− # Enables all features, so that we know when new dependencies are necessary.
37− "-Dauto_features=enabled"
32+ propagatedBuildInputs = [
33+ gstreamer
34+ gst-plugins-base
3835 ];
36+
37+ meta = with stdenv.lib; {
38+ description = "Integration testing infrastructure for the GStreamer framework";
39+ homepage = "https://gstreamer.freedesktop.org";
40+ license = licenses.lgpl2Plus;
41+ platforms = platforms.unix;
42+ };
3943}
pkgs/development/libraries/irrlicht/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchzip, libGLU_combined, unzip, libXrandr, libX11, libXxf86vm }:
1+{ stdenv, fetchzip, libGLU, libGL, unzip, libXrandr, libX11, libXxf86vm }:
22
33
44stdenv.mkDerivation rec {
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 mkdir -p $out/lib
2424 '';
2525
26− buildInputs = [ unzip libGLU_combined libXrandr libX11 libXxf86vm ];
26+ buildInputs = [ unzip libGLU libGL libXrandr libX11 libXxf86vm ];
2727
2828 meta = {
2929 homepage = http://irrlicht.sourceforge.net/;
pkgs/development/libraries/java/swt/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchurl, unzip, jdk, pkgconfig, gtk2
2−, libXt, libXtst, libXi, libGLU_combined, webkitgtk, libsoup, xorg
2+, libXt, libXtst, libXi, libGLU, libGL, webkitgtk, libsoup, xorg
33, pango, gdk-pixbuf, glib
44}:
55
@@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
3636 sourceRoot = ".";
3737
3838 nativeBuildInputs = [ unzip pkgconfig ];
39− buildInputs = [ jdk gtk2 libXt libXtst libXi libGLU_combined webkitgtk libsoup ];
39+ buildInputs = [ jdk gtk2 libXt libXtst libXi libGLU libGL webkitgtk libsoup ];
4040
4141 NIX_LFLAGS = (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk-pixbuf glib ]) ++
4242 [ "-lX11" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lglib-2.0" ];
pkgs/development/libraries/libagar/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, libtool, perl, bsdbuild, gettext, mandoc
2−, libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU_combined
2+, libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU, libGL
33, libsndfile, portaudio, libmysqlclient, fontconfig
44}:
55
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919 "--enable-nls=yes"
2020 "--with-gettext=${gettext}"
2121 "--with-jpeg=${libjpeg.dev}"
22− "--with-gl=${libGLU_combined}"
22+ "--with-gl=${libGL}"
2323 "--with-mysql=${libmysqlclient}"
2424 "--with-manpages=yes"
2525 ];
@@ -29,7 +29,7 @@ stdenv.mkDerivation {
2929 nativeBuildInputs = [ pkgconfig libtool gettext ];
3030
3131 buildInputs = [
32− bsdbuild perl xlibsWrapper libXinerama SDL libGLU_combined libmysqlclient mandoc
32+ bsdbuild perl xlibsWrapper libXinerama SDL libGL libmysqlclient mandoc
3333 freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
3434 ];
3535
pkgs/development/libraries/libinput/default.nix+1
@@ -40,6 +40,7 @@ stdenv.mkDerivation rec {
4040 (mkFlag documentationSupport "documentation")
4141 (mkFlag eventGUISupport "debug-gui")
4242 (mkFlag testsSupport "tests")
43+ "--sysconfdir=/etc"
4344 "--libexecdir=${placeholder "bin"}/libexec"
4445 ];
4546
pkgs/development/libraries/libnice/default.nix+41−12
@@ -1,4 +1,19 @@
1−{ stdenv, fetchurl, fetchpatch, meson, ninja, pkgconfig, python3, gobject-introspection, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, gupnp-igd, gst_all_1, gnutls }:
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+, meson
5+, ninja
6+, pkgconfig
7+, python3
8+, gobject-introspection
9+, gtk-doc
10+, docbook_xsl
11+, docbook_xml_dtd_412
12+, glib
13+, gupnp-igd
14+, gst_all_1
15+, gnutls
16+}:
217
318stdenv.mkDerivation rec {
419 name = "libnice-0.1.16";
@@ -21,27 +36,40 @@ stdenv.mkDerivation rec {
2136 ];
2237
2338 nativeBuildInputs = [
24− meson ninja pkgconfig python3 gobject-introspection
39+ meson
40+ ninja
41+ pkgconfig
42+ python3
43+ gobject-introspection
44+
45+ # documentation
2546 gtk-doc
26− # Without these, enabling the 'gtk_doc' gives us `FAILED: meson-install`
27− docbook_xsl docbook_xml_dtd_412
47+ docbook_xsl
48+ docbook_xml_dtd_412
49+ ];
50+
51+ buildInputs = [
52+ gst_all_1.gstreamer
53+ gst_all_1.gst-plugins-base
54+ gnutls
55+ gupnp-igd
56+ ];
57+
58+ propagatedBuildInputs = [
59+ glib
2860 ];
29− buildInputs = [ gst_all_1.gstreamer gst_all_1.gst-plugins-base gnutls ];
30− propagatedBuildInputs = [ glib gupnp-igd ];
3161
3262 mesonFlags = [
33− # Enables all features, so that we know when new dependencies are necessary.
34− "-Dauto_features=enabled"
3563 "-Dgtk_doc=enabled" # Disabled by default as of libnice-0.1.15
3664 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
3765 ];
3866
39− # TODO; see #53293 etc.
40− #doCheck = true;
67+ # Tests are flaky
68+ # see https://github.com/NixOS/nixpkgs/pull/53293#issuecomment-453739295
69+ doCheck = false;
4170
4271 meta = with stdenv.lib; {
43− homepage = https://nice.freedesktop.org/wiki/;
44− description = "The GLib ICE implementation";
72+ description = "GLib ICE implementation";
4573 longDescription = ''
4674 Libnice is an implementation of the IETF's Interactice Connectivity
4775 Establishment (ICE) standard (RFC 5245) and the Session Traversal
@@ -49,6 +77,7 @@ stdenv.mkDerivation rec {
4977
5078 It provides a GLib-based library, libnice and a Glib-free library,
5179 libstun as well as GStreamer elements.'';
80+ homepage = "https://nice.freedesktop.org/wiki/";
5281 platforms = platforms.linux;
5382 license = with licenses; [ lgpl21 mpl11 ];
5483 };
pkgs/development/libraries/libpsl/default.nix+35−7
@@ -1,5 +1,16 @@
1−{ stdenv, fetchurl, autoreconfHook, docbook_xsl, docbook_xml_dtd_43, gtk-doc, lzip
2−, libidn2, libunistring, libxslt, pkgconfig, python3, valgrind
1+{ stdenv
2+, fetchurl
3+, autoreconfHook
4+, docbook_xsl
5+, docbook_xml_dtd_43
6+, gtk-doc
7+, lzip
8+, libidn2
9+, libunistring
10+, libxslt
11+, pkgconfig
12+, python3
13+, valgrind
314, publicsuffix-list
415}:
516
@@ -12,9 +23,26 @@ stdenv.mkDerivation rec {
1223 sha256 = "183hadbira0d2zvv8272lspy31dgm9x26z35c61s5axcd5wd9g9i";
1324 };
1425
15− nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_43 gtk-doc lzip pkgconfig python3 valgrind ];
16− buildInputs = [ libidn2 libunistring libxslt ];
17− propagatedBuildInputs = [ publicsuffix-list ];
26+ nativeBuildInputs = [
27+ autoreconfHook
28+ docbook_xsl
29+ docbook_xml_dtd_43
30+ gtk-doc
31+ lzip
32+ pkgconfig
33+ python3
34+ valgrind
35+ ];
36+
37+ buildInputs = [
38+ libidn2
39+ libunistring
40+ libxslt
41+ ];
42+
43+ propagatedBuildInputs = [
44+ publicsuffix-list
45+ ];
1846
1947 postPatch = ''
2048 patchShebangs src/psl-make-dafsa
@@ -25,7 +53,7 @@ stdenv.mkDerivation rec {
2553 '';
2654
2755 configureFlags = [
28−# "--enable-gtk-doc"
56+ # "--enable-gtk-doc"
2957 "--enable-man"
3058 "--enable-valgrind-tests"
3159 "--with-psl-distfile=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
@@ -35,7 +63,7 @@ stdenv.mkDerivation rec {
3563
3664 enableParallelBuilding = true;
3765
38− doCheck = true;
66+ doCheck = !stdenv.isDarwin;
3967
4068 meta = with stdenv.lib; {
4169 description = "C library for the Publix Suffix List";
pkgs/development/libraries/libtcod/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromBitbucket, cmake, SDL, libGLU_combined, upx, zlib }:
1+{ stdenv, fetchFromBitbucket, cmake, SDL, libGLU, libGL, upx, zlib }:
22
33stdenv.mkDerivation {
44
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
2121
2222 cmakeFlags="-DLIBTCOD_SAMPLES=OFF";
2323
24− buildInputs = [ cmake SDL libGLU_combined upx zlib ];
24+ buildInputs = [ cmake SDL libGLU libGL upx zlib ];
2525
2626 meta = {
2727 description = "API for roguelike games";
pkgs/development/libraries/libwebp/default.nix+3−3
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl
22, threadingSupport ? true # multi-threading
3−, openglSupport ? false, freeglut ? null, libGLU_combined ? null # OpenGL (required for vwebp)
3+, openglSupport ? false, freeglut ? null, libGL ? null, libGLU ? null # OpenGL (required for vwebp)
44, pngSupport ? true, libpng ? null # PNG image format
55, jpegSupport ? true, libjpeg ? null # JPEG image format
66, tiffSupport ? true, libtiff ? null # TIFF image format
@@ -14,7 +14,7 @@
1414, libwebpdecoderSupport ? true # Build libwebpdecoder
1515}:
1616
17−assert openglSupport -> ((freeglut != null) && (libGLU_combined != null));
17+assert openglSupport -> freeglut != null && libGL != null && libGLU != null;
1818assert pngSupport -> (libpng != null);
1919assert jpegSupport -> (libjpeg != null);
2020assert tiffSupport -> (libtiff != null);
@@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
5151 ];
5252
5353 buildInputs = [ ]
54− ++ optionals openglSupport [ freeglut libGLU_combined ]
54+ ++ optionals openglSupport [ freeglut libGL libGLU ]
5555 ++ optional pngSupport libpng
5656 ++ optional jpegSupport libjpeg
5757 ++ optional tiffSupport libtiff
pkgs/development/libraries/libxml2/default.nix+8−2
@@ -8,11 +8,11 @@
88
99stdenv.mkDerivation rec {
1010 pname = "libxml2";
11− version = "2.9.9";
11+ version = "2.9.10";
1212
1313 src = fetchurl {
1414 url = "http://xmlsoft.org/sources/${pname}-${version}.tar.gz";
15− sha256 = "0wd881jzvqayx0ihzba29jl80k06xj9ywp16kxacdqs3064p1ywl";
15+ sha256 = "07xynh8hcxb2yb1fs051xrgszjvj37wnxvxgsj10rzmqzy9y3zma";
1616 };
1717 patches = [
1818 # Upstream bugs:
@@ -53,6 +53,12 @@ stdenv.mkDerivation rec {
5353
5454 enableParallelBuilding = true;
5555
56+ # disable test that's problematic with newer pythons: see
57+ # https://mail.gnome.org/archives/xml/2017-August/msg00014.html
58+ preCheck = lib.optionalString (pythonSupport && !(python?pythonOlder && python.pythonOlder "3.5")) ''
59+ echo "" > python/tests/tstLastError.py
60+ '';
61+
5662 doCheck = (stdenv.hostPlatform == stdenv.buildPlatform) && !stdenv.isDarwin &&
5763 stdenv.hostPlatform.libc != "musl";
5864
pkgs/development/libraries/libxslt/default.nix+2−20
@@ -10,31 +10,13 @@ with stdenv.lib;
1010
1111stdenv.mkDerivation rec {
1212 pname = "libxslt";
13− version = "1.1.33";
13+ version = "1.1.34";
1414
1515 src = fetchurl {
1616 url = "http://xmlsoft.org/sources/${pname}-${version}.tar.gz";
17− sha256 = "1j1q1swnsy8jgi9x7mclvkrqhfgn09886gdlr9wzk7a08i8n0dlf";
17+ sha256 = "0zrzz6kjdyavspzik6fbkpvfpbd25r2qg6py5nnjaabrsr3bvccq";
1818 };
1919
20− patches = [
21− (fetchpatch {
22− name = "CVE-2019-11068.patch";
23− url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch";
24− sha256 = "0pkpb4837km15zgg6h57bncp66d5lwrlvkr73h0lanywq7zrwhj8";
25− })
26− (fetchpatch {
27− url = "https://gitlab.gnome.org/GNOME/libxslt/commit/c5eb6cf3aba0af048596106ed839b4ae17ecbcb1.patch";
28− name = "CVE-2019-13117.patch";
29− sha256 = "0ynfq8y5h623cypj1426iiz7796n3mqbjqa24ndvh2am6rl5lw15";
30− })
31− (fetchpatch {
32− url = "https://gitlab.gnome.org/GNOME/libxslt/commit/6ce8de69330783977dd14f6569419489875fb71b.patch";
33− name = "CVE-2019-13118.patch";
34− sha256 = "0bglz9m9sh2vi50qxcm06iqrazw3h45ycgxnp15iankq95z283iq";
35− })
36− ];
37−
3820 outputs = [ "bin" "dev" "out" "man" "doc" ] ++ stdenv.lib.optional pythonSupport "py";
3921
4022 buildInputs = [ libxml2.dev ]
pkgs/development/libraries/liquidfun/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, requireFile, cmake, libGLU_combined, libX11, libXi }:
1+{ stdenv, requireFile, cmake, libGLU, libGL, libX11, libXi }:
22
33let
44 sourceInfo = rec {
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
1616 };
1717
1818 inherit (sourceInfo) name version;
19− buildInputs = [ cmake libGLU_combined libX11 libXi ];
19+ buildInputs = [ cmake libGLU libGL libX11 libXi ];
2020
2121 sourceRoot = "liquidfun/Box2D/";
2222
pkgs/development/libraries/mediastreamer/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
2−, libopus, ffmpeg, libX11, libXv, libGLU_combined, glew, libtheora, libvpx, SDL, libupnp
2+, libopus, ffmpeg, libX11, libXv, libGLU, libGL, glew, libtheora, libvpx, SDL, libupnp
33, ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen
44, python, libXext, libmatroska, fetchpatch
55}:
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828
2929 propagatedBuildInputs = [
3030 alsaLib libpulseaudio speex gsm libopus
31− ffmpeg libX11 libXv libGLU_combined glew libtheora libvpx SDL libupnp
31+ ffmpeg libX11 libXv libGLU libGL glew libtheora libvpx SDL libupnp
3232 ortp libv4l libpcap srtp bctoolbox libXext libmatroska
3333 ];
3434
pkgs/development/libraries/mesa/default.nix+2−2
@@ -27,7 +27,7 @@
2727with stdenv.lib;
2828
2929let
30− version = "19.2.4";
30+ version = "19.2.6";
3131 branch = versions.major version;
3232in
3333
@@ -42,7 +42,7 @@ stdenv.mkDerivation {
4242 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
4343 "https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
4444 ];
45− sha256 = "03z393jrd1cnh68k5h3mm5yap3hi1jzz3a417ccjxn5vgl7hl009";
45+ sha256 = "15vpj2v1j5j065f8syhcsyr6rkjm58250r0ri13v6bf8c3x28ywx";
4646 };
4747
4848 prePatch = "patchShebangs .";
pkgs/development/libraries/mygui/default.nix+3−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, libX11, unzip, cmake, ois, freetype, libuuid,
2− boost, pkgconfig, withOgre ? false, ogre ? null, libGLU_combined ? null } :
2+ boost, pkgconfig, withOgre ? false, ogre ? null, libGL, libGLU ? null } :
33
44let
55 renderSystem = if withOgre then "3" else "4";
@@ -17,7 +17,8 @@ in stdenv.mkDerivation rec {
1717 enableParallelBuilding = true;
1818
1919 nativeBuildInputs = [ pkgconfig ];
20− buildInputs = [ libX11 unzip cmake ois freetype libuuid boost (if withOgre then ogre else libGLU_combined) ];
20+ buildInputs = [ libX11 unzip cmake ois freetype libuuid boost ]
21+ ++ (if withOgre then [ ogre ] else [libGL libGLU]);
2122
2223 # Tools are disabled due to compilation failures.
2324 cmakeFlags = [ "-DMYGUI_BUILD_TOOLS=OFF" "-DMYGUI_BUILD_DEMOS=OFF" "-DMYGUI_RENDERSYSTEM=${renderSystem}" ];
pkgs/development/libraries/ogre/1.10.x.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchurl, stdenv, lib
2−, cmake, libGLU_combined
2+, cmake, libGLU, libGL
33, freetype, freeimage, zziplib, xorgproto, libXrandr
44, libXaw, freeglut, libXt, libpng, boost, ois
55, libX11, libXmu, libSM, pkgconfig
@@ -24,7 +24,7 @@ stdenv.mkDerivation {
2424 enableParallelBuilding = true;
2525
2626 buildInputs =
27− [ cmake libGLU_combined
27+ [ cmake libGLU libGL
2828 freetype freeimage zziplib xorgproto libXrandr
2929 libXaw freeglut libXt libpng boost ois
3030 libX11 libXmu libSM pkgconfig
pkgs/development/libraries/ogre/1.9.x.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchFromGitHub, stdenv, lib
2−, cmake, libGLU_combined
2+, cmake, libGLU, libGL
33, freetype, freeimage, zziplib, xorgproto, libXrandr
44, libXaw, freeglut, libXt, libpng, boost, ois
55, libX11, libXmu, libSM, pkgconfig
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
2727 enableParallelBuilding = true;
2828
2929 buildInputs =
30− [ cmake libGLU_combined
30+ [ cmake libGLU libGL
3131 freetype freeimage zziplib xorgproto libXrandr
3232 libXaw freeglut libXt libpng boost ois
3333 libX11 libXmu libSM pkgconfig
pkgs/development/libraries/ogre/default.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchurl, stdenv, lib
2−, cmake, libGLU_combined
2+, cmake, libGLU, libGL
33, freetype, freeimage, zziplib, xorgproto, libXrandr
44, libXaw, freeglut, libXt, libpng, boost, ois
55, libX11, libXmu, libSM, pkgconfig
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
2626 enableParallelBuilding = true;
2727
2828 buildInputs =
29− [ cmake libGLU_combined
29+ [ cmake libGLU libGL
3030 freetype freeimage zziplib xorgproto libXrandr
3131 libXaw freeglut libXt libpng boost ois
3232 libX11 libXmu libSM pkgconfig
pkgs/development/libraries/opencsg/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, libGLU_combined, freeglut, glew, libXmu, libXext, libX11
1+{stdenv, fetchurl, libGLU, libGL, freeglut, glew, libXmu, libXext, libX11
22, qmake, GLUT, fixDarwinDylibNames }:
33
44stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
1414
1515 buildInputs = [ glew ]
16− ++ stdenv.lib.optionals stdenv.isLinux [ libGLU_combined freeglut libXmu libXext libX11 ]
16+ ++ stdenv.lib.optionals stdenv.isLinux [ libGLU libGL freeglut libXmu libXext libX11 ]
1717 ++ stdenv.lib.optional stdenv.isDarwin GLUT;
1818
1919 doCheck = false;
pkgs/development/libraries/openexrid-unstable/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, libGLU_combined, openexr }:
1+{ stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, libGLU, libGL, openexr }:
22
33stdenv.mkDerivation {
44 pname = "openexrid-unstable";
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
2525 -I${openfx.dev}/include/OpenFX
2626 '';
2727
28− buildInputs = [ unzip re2 openfx zlib ilmbase libGLU_combined openexr ];
28+ buildInputs = [ unzip re2 openfx zlib ilmbase libGLU libGL openexr ];
2929
3030 enableParallelBuilding = true;
3131
pkgs/development/libraries/partio/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, unzip, cmake, freeglut, libGLU_combined, zlib, swig, python, doxygen, xorg }:
1+{ stdenv, fetchFromGitHub, unzip, cmake, freeglut, libGLU, libGL, zlib, swig, python, doxygen, xorg }:
22
33stdenv.mkDerivation {
44 pname = "partio";
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
1414 outputs = [ "dev" "out" "lib" ];
1515
1616 nativeBuildInputs = [ unzip cmake doxygen ];
17− buildInputs = [ freeglut libGLU_combined zlib swig python xorg.libXi xorg.libXmu ];
17+ buildInputs = [ freeglut libGLU libGL zlib swig python xorg.libXi xorg.libXmu ];
1818
1919 enableParallelBuilding = true;
2020
pkgs/development/libraries/phonon/default.nix+15−4
@@ -1,6 +1,16 @@
1−{ stdenv, lib, fetchurl, cmake, libGLU_combined, pkgconfig, libpulseaudio
2−, extra-cmake-modules, qtbase, qttools
3−, debug ? false }:
1+{ stdenv
2+, lib
3+, fetchurl
4+, cmake
5+, libGLU
6+, libGL
7+, pkgconfig
8+, libpulseaudio
9+, extra-cmake-modules
10+, qtbase
11+, qttools
12+, debug ? false
13+}:
414
515with lib;
616
@@ -27,7 +37,8 @@ stdenv.mkDerivation rec {
2737 };
2838
2939 buildInputs = [
30− libGLU_combined
40+ libGLU
41+ libGL
3142 libpulseaudio
3243 qtbase
3344 qttools
pkgs/development/libraries/physics/geant4/default.nix+2−2
@@ -30,7 +30,7 @@
3030, libXpm
3131
3232# For enableQT, enableXM, enableOpenGLX11, enableRaytracerX11.
33−, libGLU_combined
33+, libGLU, libGL
3434, xlibsWrapper
3535, libXmu
3636}:
@@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
6464
6565 enableParallelBuilding = true;
6666 nativeBuildInputs = [ cmake ];
67− buildInputs = [ clhep expat zlib libGLU_combined xlibsWrapper libXmu ]
67+ buildInputs = [ clhep expat zlib libGLU libGL xlibsWrapper libXmu ]
6868 ++ stdenv.lib.optionals enableGDML [ xercesc ]
6969 ++ stdenv.lib.optionals enableXM [ motif ]
7070 ++ stdenv.lib.optionals enableQT [ qtbase ]
pkgs/development/libraries/plib/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchurl, fetchpatch, stdenv, libGLU_combined, freeglut, SDL
1+{ fetchurl, fetchpatch, stdenv, libGLU, libGL, freeglut, SDL
22, libXi, libSM, libXmu, libXext, libX11 }:
33
44stdenv.mkDerivation rec {
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222 ];
2323
2424 propagatedBuildInputs = [
25− libGLU_combined freeglut SDL
25+ libGLU libGL freeglut SDL
2626
2727 # The following libs ought to be propagated build inputs of Mesa.
2828 libXi libSM libXmu libXext libX11
pkgs/development/libraries/qt-3/default.nix+3−3
@@ -8,7 +8,7 @@
88, mysqlSupport ? false, libmysqlclient ? null
99, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
1010, openglSupport ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
11−, libGLU_combined ? null, libXmu ? null
11+, libGL ? null, libGLU ? null, libXmu ? null
1212, xlibsWrapper, xorgproto, zlib, libjpeg, libpng, which
1313}:
1414
@@ -17,7 +17,7 @@ assert xrenderSupport -> xftSupport && libXrender != null;
1717assert xrandrSupport -> libXrandr != null;
1818assert cursorSupport -> libXcursor != null;
1919assert mysqlSupport -> libmysqlclient != null;
20−assert openglSupport -> libGLU_combined != null && libXmu != null;
20+assert openglSupport -> libGL != null && libGLU != null && libXmu != null;
2121
2222stdenv.mkDerivation {
2323 name = "qt-3.3.8";
@@ -51,7 +51,7 @@ stdenv.mkDerivation {
5151 (mk xftSupport "xft")
5252 ] ++ stdenv.lib.optionals openglSupport [
5353 "-dlopen-opengl"
54− "-L${libGLU_combined}/lib" "-I${libGLU_combined}/include"
54+ "-L${libGL}/lib" "-I${libGLU}/include"
5555 "-L${libXmu.out}/lib" "-I${libXmu.dev}/include"
5656 ] ++ stdenv.lib.optionals xrenderSupport [
5757 "-L${libXrender.out}/lib" "-I${libXrender.dev}/include"
pkgs/development/libraries/qt-5/5.11/default.nixdeleted−175
@@ -1,175 +0,0 @@
1−/*
2−
3−# Updates
4−
5−Before a major version update, make a copy of this directory. (We like to
6−keep the old version around for a short time after major updates.) Add a
7−top-level attribute to `top-level/all-packages.nix`.
8−
9−1. Update the URL in `pkgs/development/libraries/qt-5/$VERSION/fetch.sh`.
10−2. From the top of the Nixpkgs tree, run
11− `./maintainers/scripts/fetch-kde-qt.sh > pkgs/development/libraries/qt-5/$VERSION/srcs.nix`.
12−3. Check that the new packages build correctly.
13−4. Commit the changes and open a pull request.
14−
15−*/
16−
17−{
18− newScope,
19− stdenv, fetchurl, fetchFromGitHub, fetchpatch, makeSetupHook, makeWrapper,
20− bison, cups ? null, harfbuzz, libGL, perl,
21− gstreamer, gst-plugins-base, gtk3, dconf,
22− llvmPackages_5,
23−
24− # options
25− developerBuild ? false,
26− decryptSslTraffic ? false,
27− debug ? false,
28−}:
29−
30−with stdenv.lib;
31−
32−let
33−
34− qtCompatVersion = srcs.qtbase.version;
35−
36− stdenvActual = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
37−
38− mirror = "https://download.qt.io";
39− srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; } // {
40− # Community port of the now unmaintained upstream qtwebkit.
41− qtwebkit = {
42− src = fetchFromGitHub {
43− owner = "annulen";
44− repo = "webkit";
45− rev = "4ce8ebc4094512b9916bfa5984065e95ac97c9d8";
46− sha256 = "05h1xnxzbf7sp3plw5dndsvpf6iigh0bi4vlj4svx0hkf1giakjf";
47− };
48− version = "5.212-alpha-01-26-2018";
49− };
50− };
51−
52− patches = {
53− qtbase = [
54− ./qtbase.patch
55− ./qtbase-fixguicmake.patch
56− ];
57− qtdeclarative = [ ./qtdeclarative.patch ];
58− qtscript = [
59− ./qtscript.patch
60− # needed due to changes in gcc 8.3, see https://bugreports.qt.io/browse/QTBUG-74196
61− # fixed in qtscript 5.12.2
62− (fetchpatch {
63− url = "https://github.com/qt/qtscript/commit/97ec1d1882a83c23c91f0f7daea48e05858d8c32.diff";
64− sha256 = "0khrapq13xzvxckzc9l7gqyjwibyd98vyqy6gmyhvsbm2kq8n6wi";
65− })
66− ];
67− qtserialport = [ ./qtserialport.patch ];
68− qttools = [ ./qttools.patch ];
69− qtwebengine = [
70− ./qtwebengine-no-build-skip.patch
71− ./qtwebengine-darwin-no-platform-check.patch
72− # https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/707
73− # https://bugreports.qt.io/browse/QTBUG-77037
74− (fetchpatch {
75− name = "fix-build-with-pulseaudio-13.0.patch";
76− url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qtbug-77037-workaround.patch?h=packages/qt5-webengine&id=fc77d6b3d5ec74e421b58f199efceb2593cbf951";
77− sha256 = "1gv733qfdn9746nbqqxzyjx4ijjqkkb7zb71nxax49nna5bri3am";
78− })
79− ];
80− qtwebkit = [ ./qtwebkit.patch ];
81− };
82−
83− qtModule =
84− import ../qtModule.nix
85− {
86− inherit perl;
87− inherit (stdenv) lib;
88− # Use a variant of mkDerivation that does not include wrapQtApplications
89− # to avoid cyclic dependencies between Qt modules.
90− mkDerivation =
91− import ../mkDerivation.nix
92− { inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; }
93− stdenvActual.mkDerivation;
94− }
95− { inherit self srcs patches; };
96−
97− addPackages = self: with self;
98− let
99− callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
100− in {
101−
102− mkDerivationWith =
103− import ../mkDerivation.nix
104− { inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; };
105−
106− mkDerivation = mkDerivationWith stdenvActual.mkDerivation;
107−
108− qtbase = callPackage ../modules/qtbase.nix {
109− inherit (srcs.qtbase) src version;
110− patches = patches.qtbase;
111− inherit bison cups harfbuzz libGL;
112− withGtk3 = true; inherit dconf gtk3;
113− inherit developerBuild decryptSslTraffic;
114− };
115−
116− qtcharts = callPackage ../modules/qtcharts.nix {};
117− qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
118− qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
119− qtdoc = callPackage ../modules/qtdoc.nix {};
120− qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
121− qtimageformats = callPackage ../modules/qtimageformats.nix {};
122− qtlocation = callPackage ../modules/qtlocation.nix { };
123− qtmacextras = callPackage ../modules/qtmacextras.nix {};
124− qtmultimedia = callPackage ../modules/qtmultimedia.nix {
125− inherit gstreamer gst-plugins-base;
126− };
127− qtnetworkauth = callPackage ../modules/qtnetworkauth.nix {};
128− qtquick1 = null;
129− qtquickcontrols = callPackage ../modules/qtquickcontrols.nix {};
130− qtquickcontrols2 = callPackage ../modules/qtquickcontrols2.nix {};
131− qtscript = callPackage ../modules/qtscript.nix {};
132− qtsensors = callPackage ../modules/qtsensors.nix {};
133− qtserialport = callPackage ../modules/qtserialport.nix {};
134− qtspeech = callPackage ../modules/qtspeech.nix {};
135− qtsvg = callPackage ../modules/qtsvg.nix {};
136− qttools = callPackage ../modules/qttools.nix {};
137− qttranslations = callPackage ../modules/qttranslations.nix {};
138− qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {};
139− qtwayland = callPackage ../modules/qtwayland.nix {};
140− qtwebchannel = callPackage ../modules/qtwebchannel.nix {};
141− qtwebengine = callPackage ../modules/qtwebengine.nix {};
142− qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {};
143− qtwebkit = callPackage ../modules/qtwebkit.nix {};
144− qtwebsockets = callPackage ../modules/qtwebsockets.nix {};
145− qtwebview = callPackage ../modules/qtwebview.nix {};
146− qtx11extras = callPackage ../modules/qtx11extras.nix {};
147− qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
148−
149− env = callPackage ../qt-env.nix {};
150− full = env "qt-full-${qtbase.version}" ([
151− qtcharts qtconnectivity qtdeclarative qtdoc qtgraphicaleffects
152− qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2
153− qtscript qtsensors qtserialport qtsvg qttools qttranslations
154− qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets
155− qtwebview qtx11extras qtxmlpatterns
156− ] ++ optional (!stdenv.isDarwin) qtwayland
157− ++ optional (stdenv.isDarwin) qtmacextras);
158−
159− qmake = makeSetupHook {
160− deps = [ self.qtbase.dev ];
161− substitutions = {
162− fix_qmake_libtool = ../hooks/fix-qmake-libtool.sh;
163− };
164− } ../hooks/qmake-hook.sh;
165−
166− wrapQtAppsHook = makeSetupHook {
167− deps =
168− [ self.qtbase.dev makeWrapper ]
169− ++ optional stdenv.isLinux self.qtwayland.dev;
170− } ../hooks/wrap-qt-apps-hook.sh;
171− };
172−
173− self = makeScope newScope addPackages;
174−
175−in self
pkgs/development/libraries/qt-5/5.11/fetch.shdeleted−1
@@ -1 +0,0 @@
1−WGET_ARGS=( http://download.qt.io/official_releases/qt/5.11/5.11.3/submodules/ )
pkgs/development/libraries/qt-5/5.11/qtbase-fixguicmake.patchdeleted−30
@@ -1,30 +0,0 @@
1−diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
2−index 0bbc871..3673634 100644
3−--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
4−+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
5−@@ -286,7 +286,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
6− macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION)
7− set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
8−
9−- set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
10−+ set(imported_location \"${PLUGIN_LOCATION}\")
11− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
12− set_target_properties(Qt5::${Plugin} PROPERTIES
13− \"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
14−diff --git a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
15−index 5baf0fd..3583745 100644
16−--- a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
17−+++ b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
18−@@ -2,10 +2,10 @@
19− add_library(Qt5::$$CMAKE_PLUGIN_NAME MODULE IMPORTED)
20−
21− !!IF !isEmpty(CMAKE_RELEASE_TYPE)
22−-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
23−+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
24− !!ENDIF
25− !!IF !isEmpty(CMAKE_DEBUG_TYPE)
26−-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
27−+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
28− !!ENDIF
29−
30− list(APPEND Qt5$${CMAKE_MODULE_NAME}_PLUGINS Qt5::$$CMAKE_PLUGIN_NAME)
pkgs/development/libraries/qt-5/5.11/qtbase.patchdeleted−1106
@@ -1,1106 +0,0 @@
1−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/common/mac.conf qtbase-everywhere-src-5.11.3/mkspecs/common/mac.conf
2−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/common/mac.conf 2018-11-25 13:51:11.000000000 +0100
3−+++ qtbase-everywhere-src-5.11.3/mkspecs/common/mac.conf 2019-01-31 00:42:55.843577249 +0100
4−@@ -23,7 +23,7 @@
5−
6− QMAKE_FIX_RPATH = install_name_tool -id
7−
8−-QMAKE_LFLAGS_RPATH = -Wl,-rpath,
9−+QMAKE_LFLAGS_RPATH =
10− QMAKE_LFLAGS_GCSECTIONS = -Wl,-dead_strip
11−
12− QMAKE_LFLAGS_REL_RPATH =
13−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/create_cmake.prf qtbase-everywhere-src-5.11.3/mkspecs/features/create_cmake.prf
14−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/create_cmake.prf 2018-11-25 13:51:11.000000000 +0100
15−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/create_cmake.prf 2019-01-31 00:42:55.843577249 +0100
16−@@ -21,7 +21,7 @@
17− # at cmake time whether package has been found via a symlink, and correct
18− # that to an absolute path. This is only done for installations to
19− # the /usr or / prefix.
20−-CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$[QT_INSTALL_LIBS])
21−+CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$NIX_OUTPUT_OUT/lib/)
22− contains(CMAKE_INSTALL_LIBS_DIR, ^(/usr)?/lib(64)?.*): CMAKE_USR_MOVE_WORKAROUND = $$CMAKE_INSTALL_LIBS_DIR
23−
24− CMAKE_OUT_DIR = $$MODULE_BASE_OUTDIR/lib/cmake
25−@@ -51,45 +51,20 @@
26− $$cmake_extra_source_includes.output
27− }
28−
29−-CMAKE_INCLUDE_DIR = $$cmakeRelativePath($$[QT_INSTALL_HEADERS], $$[QT_INSTALL_PREFIX])
30−-contains(CMAKE_INCLUDE_DIR, "^\\.\\./.*") {
31−- CMAKE_INCLUDE_DIR = $$[QT_INSTALL_HEADERS]/
32−- CMAKE_INCLUDE_DIR_IS_ABSOLUTE = True
33−-}
34−+CMAKE_INCLUDE_DIR = $$NIX_OUTPUT_DEV/include/
35−+CMAKE_INCLUDE_DIR_IS_ABSOLUTE = True
36−
37−-CMAKE_LIB_DIR = $$cmakeRelativePath($$[QT_INSTALL_LIBS], $$[QT_INSTALL_PREFIX])
38−-contains(CMAKE_LIB_DIR,"^\\.\\./.*") {
39−- CMAKE_LIB_DIR = $$[QT_INSTALL_LIBS]/
40−- CMAKE_LIB_DIR_IS_ABSOLUTE = True
41−-} else {
42−- CMAKE_RELATIVE_INSTALL_LIBS_DIR = $$cmakeRelativePath($$[QT_INSTALL_PREFIX], $$[QT_INSTALL_LIBS])
43−- # We need to go up another two levels because the CMake files are
44−- # installed in $${CMAKE_LIB_DIR}/cmake/Qt5$${CMAKE_MODULE_NAME}
45−- CMAKE_RELATIVE_INSTALL_DIR = "$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}../../"
46−-}
47−+CMAKE_BIN_DIR = $$NIX_OUTPUT_BIN/bin/
48−+CMAKE_BIN_DIR_IS_ABSOLUTE = True
49−
50−-CMAKE_BIN_DIR = $$cmakeRelativePath($$[QT_HOST_BINS], $$[QT_INSTALL_PREFIX])
51−-contains(CMAKE_BIN_DIR, "^\\.\\./.*") {
52−- CMAKE_BIN_DIR = $$[QT_HOST_BINS]/
53−- CMAKE_BIN_DIR_IS_ABSOLUTE = True
54−-}
55−+CMAKE_LIB_DIR = $$NIX_OUTPUT_OUT/lib/
56−+CMAKE_LIB_DIR_IS_ABSOLUTE = True
57−
58−-CMAKE_PLUGIN_DIR = $$cmakeRelativePath($$[QT_INSTALL_PLUGINS], $$[QT_INSTALL_PREFIX])
59−-contains(CMAKE_PLUGIN_DIR, "^\\.\\./.*") {
60−- CMAKE_PLUGIN_DIR = $$[QT_INSTALL_PLUGINS]/
61−- CMAKE_PLUGIN_DIR_IS_ABSOLUTE = True
62−-}
63−-
64−-win32:!static:!staticlib {
65−- CMAKE_DLL_DIR = $$cmakeRelativePath($$[QT_INSTALL_BINS], $$[QT_INSTALL_PREFIX])
66−- contains(CMAKE_DLL_DIR, "^\\.\\./.*") {
67−- CMAKE_DLL_DIR = $$[QT_INSTALL_BINS]/
68−- CMAKE_DLL_DIR_IS_ABSOLUTE = True
69−- }
70−-} else {
71−- CMAKE_DLL_DIR = $$CMAKE_LIB_DIR
72−- CMAKE_DLL_DIR_IS_ABSOLUTE = $$CMAKE_LIB_DIR_IS_ABSOLUTE
73−-}
74−+CMAKE_PLUGIN_DIR = $$NIX_OUTPUT_PLUGIN/
75−+CMAKE_PLUGIN_DIR_IS_ABSOLUTE = True
76−+
77−+CMAKE_DLL_DIR = $$NIX_OUTPUT_OUT/lib/
78−+CMAKE_DLL_DIR_IS_ABSOLUTE = True
79−
80− static|staticlib:CMAKE_STATIC_TYPE = true
81−
82−@@ -169,7 +144,7 @@
83− cmake_target_file
84−
85− cmake_qt5_plugin_file.files = $$cmake_target_file.output
86−- cmake_qt5_plugin_file.path = $$[QT_INSTALL_LIBS]/cmake/Qt5$${CMAKE_MODULE_NAME}
87−+ cmake_qt5_plugin_file.path = $$NIX_OUTPUT_OUT/lib/cmake/Qt5$${CMAKE_MODULE_NAME}
88− INSTALLS += cmake_qt5_plugin_file
89−
90− return()
91−@@ -316,7 +291,7 @@
92− cmake_qt5_module_files.files += $$cmake_macros_file.output
93− }
94−
95−-cmake_qt5_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5$${CMAKE_MODULE_NAME}
96−+cmake_qt5_module_files.path = $$NIX_OUTPUT_OUT/lib/cmake/Qt5$${CMAKE_MODULE_NAME}
97−
98− # We are generating cmake files. Most developers of Qt are not aware of cmake,
99− # so we require automatic tests to be available. The only module which should
100−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in qtbase-everywhere-src-5.11.3/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
101−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 2018-11-25 13:51:11.000000000 +0100
102−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 2019-01-31 00:42:55.843577249 +0100
103−@@ -3,30 +3,6 @@
104− message(FATAL_ERROR \"Qt 5 $${CMAKE_MODULE_NAME} module requires at least CMake version 3.1.0\")
105− endif()
106−
107−-!!IF !isEmpty(CMAKE_USR_MOVE_WORKAROUND)
108−-!!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
109−-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
110−-!!ELSE
111−-get_filename_component(_IMPORT_PREFIX \"${CMAKE_CURRENT_LIST_FILE}\" PATH)
112−-# Use original install prefix when loaded through a
113−-# cross-prefix symbolic link such as /lib -> /usr/lib.
114−-get_filename_component(_realCurr \"${_IMPORT_PREFIX}\" REALPATH)
115−-get_filename_component(_realOrig \"$$CMAKE_INSTALL_LIBS_DIR/cmake/Qt5$${CMAKE_MODULE_NAME}\" REALPATH)
116−-if(_realCurr STREQUAL _realOrig)
117−- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR/$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}\" ABSOLUTE)
118−-else()
119−- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
120−-endif()
121−-unset(_realOrig)
122−-unset(_realCurr)
123−-unset(_IMPORT_PREFIX)
124−-!!ENDIF
125−-!!ELIF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
126−-get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
127−-!!ELSE
128−-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
129−-!!ENDIF
130−-
131− !!IF !equals(TEMPLATE, aux)
132− # For backwards compatibility only. Use Qt5$${CMAKE_MODULE_NAME}_VERSION instead.
133− set(Qt5$${CMAKE_MODULE_NAME}_VERSION_STRING "$$eval(QT.$${MODULE}.VERSION)")
134−@@ -52,11 +28,7 @@
135− macro(_populate_$${CMAKE_MODULE_NAME}_target_properties Configuration LIB_LOCATION IMPLIB_LOCATION)
136− set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
137−
138−-!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
139−- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
140−-!!ELSE
141− set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
142−-!!ENDIF
143− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
144− set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
145− \"INTERFACE_LINK_LIBRARIES\" \"${_Qt5$${CMAKE_MODULE_NAME}_LIB_DEPENDENCIES}\"
146−@@ -69,11 +41,7 @@
147− )
148−
149− !!IF !isEmpty(CMAKE_WINDOWS_BUILD)
150−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
151−- set(imported_implib \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
152−-!!ELSE
153− set(imported_implib \"IMPORTED_IMPLIB_${Configuration}\" \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
154−-!!ENDIF
155− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_implib})
156− if(NOT \"${IMPLIB_LOCATION}\" STREQUAL \"\")
157− set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
158−@@ -89,24 +57,13 @@
159− !!IF !no_module_headers
160− !!IF !isEmpty(CMAKE_BUILD_IS_FRAMEWORK)
161− set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS
162−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework\"
163−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Headers\"
164−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework\"
165−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Headers\"
166− )
167− !!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
168− set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
169−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/\"
170−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/$${MODULE_INCNAME}\"
171−- )
172−-!!ELSE
173−- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
174−-!!ENDIF
175−-!!ELSE
176−-!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
177−- set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR\" \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}\")
178−-!!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
179−- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
180−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION\"
181−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION/$${MODULE_INCNAME}\"
182−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/\"
183−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/$${MODULE_INCNAME}\"
184− )
185− !!ELSE
186− set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
187−@@ -122,7 +79,6 @@
188− set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
189− !!ENDIF
190− !!ENDIF
191−-!!ENDIF
192− !!IF !isEmpty(CMAKE_ADD_SOURCE_INCLUDE_DIRS)
193− include(\"${CMAKE_CURRENT_LIST_DIR}/ExtraSourceIncludes.cmake\" OPTIONAL)
194− !!ENDIF
195−@@ -269,25 +225,13 @@
196− !!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
197− !!IF isEmpty(CMAKE_DEBUG_TYPE)
198− !!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
199−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
200−- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
201−-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
202− if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
203−-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
204− _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" \"\" )
205− !!ELSE // CMAKE_STATIC_WINDOWS_BUILD
206− if (EXISTS
207−-!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
208−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
209−-!!ELSE
210− \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
211−-!!ENDIF
212− AND EXISTS
213−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
214−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
215−-!!ELSE
216− \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
217−-!!ENDIF
218− _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
219− !!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
220− endif()
221−@@ -306,25 +250,13 @@
222− !!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
223− !!IF isEmpty(CMAKE_RELEASE_TYPE)
224− !!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
225−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
226−- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
227−-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
228− if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
229−-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
230− _populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" \"\" )
231− !!ELSE // CMAKE_STATIC_WINDOWS_BUILD
232− if (EXISTS
233−-!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
234−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
235−-!!ELSE
236− \"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
237−-!!ENDIF
238− AND EXISTS
239−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
240−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
241−-!!ELSE
242− \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
243−-!!ENDIF
244− _populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
245− !!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
246− endif()
247−@@ -343,11 +275,7 @@
248− macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION)
249− set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
250−
251−-!!IF isEmpty(CMAKE_PLUGIN_DIR_IS_ABSOLUTE)
252−- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
253−-!!ELSE
254− set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
255−-!!ENDIF
256− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
257− set_target_properties(Qt5::${Plugin} PROPERTIES
258− \"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
259−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/mac/default_post.prf qtbase-everywhere-src-5.11.3/mkspecs/features/mac/default_post.prf
260−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/mac/default_post.prf 2018-11-25 13:51:11.000000000 +0100
261−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/mac/default_post.prf 2019-01-31 00:45:14.585621324 +0100
262−@@ -62,199 +62,3 @@
263− }
264− }
265− }
266−-
267−-# Add the same default rpaths as Xcode does for new projects.
268−-# This is especially important for iOS/tvOS/watchOS where no other option is possible.
269−-!no_default_rpath {
270−- QMAKE_RPATHDIR += @executable_path/Frameworks
271−- equals(TEMPLATE, lib):!plugin:lib_bundle: QMAKE_RPATHDIR += @loader_path/Frameworks
272−-}
273−-
274−-# Don't pass -headerpad_max_install_names when using Bitcode.
275−-# In that case the linker emits a warning stating that the flag is ignored when
276−-# used with bitcode, for reasons that cannot be determined (rdar://problem/20748962).
277−-# Using this flag is also unnecessary in practice on UIKit platforms since they
278−-# are sandboxed, and only UIKit platforms support bitcode to begin with.
279−-!bitcode: QMAKE_LFLAGS += $$QMAKE_LFLAGS_HEADERPAD
280−-
281−-app_extension_api_only {
282−- QMAKE_CFLAGS += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
283−- QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
284−- QMAKE_CXXFLAGS_PRECOMPILE += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
285−- QMAKE_LFLAGS += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
286−-}
287−-
288−-macx-xcode {
289−- qmake_pkginfo_typeinfo.name = QMAKE_PKGINFO_TYPEINFO
290−- !isEmpty(QMAKE_PKGINFO_TYPEINFO): \
291−- qmake_pkginfo_typeinfo.value = $$QMAKE_PKGINFO_TYPEINFO
292−- else: \
293−- qmake_pkginfo_typeinfo.value = "????"
294−- QMAKE_MAC_XCODE_SETTINGS += qmake_pkginfo_typeinfo
295−-
296−- !isEmpty(VERSION) {
297−- l = $$split(VERSION, '.') 0 0 # make sure there are at least three
298−- VER_MAJ = $$member(l, 0, 0)
299−- VER_MIN = $$member(l, 1, 1)
300−- VER_PAT = $$member(l, 2, 2)
301−- unset(l)
302−-
303−- qmake_full_version.name = QMAKE_FULL_VERSION
304−- qmake_full_version.value = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}
305−- QMAKE_MAC_XCODE_SETTINGS += qmake_full_version
306−-
307−- qmake_short_version.name = QMAKE_SHORT_VERSION
308−- qmake_short_version.value = $${VER_MAJ}.$${VER_MIN}
309−- QMAKE_MAC_XCODE_SETTINGS += qmake_short_version
310−- }
311−-
312−- !isEmpty(QMAKE_XCODE_DEBUG_INFORMATION_FORMAT) {
313−- debug_information_format.name = DEBUG_INFORMATION_FORMAT
314−- debug_information_format.value = $$QMAKE_XCODE_DEBUG_INFORMATION_FORMAT
315−- debug_information_format.build = debug
316−- QMAKE_MAC_XCODE_SETTINGS += debug_information_format
317−- }
318−-
319−- QMAKE_XCODE_ARCHS =
320−-
321−- arch_device.name = "ARCHS[sdk=$${device.sdk}*]"
322−- arch_device.value = $$QMAKE_APPLE_DEVICE_ARCHS
323−- QMAKE_XCODE_ARCHS += $$QMAKE_APPLE_DEVICE_ARCHS
324−- QMAKE_MAC_XCODE_SETTINGS += arch_device
325−-
326−- simulator {
327−- arch_simulator.name = "ARCHS[sdk=$${simulator.sdk}*]"
328−- arch_simulator.value = $$QMAKE_APPLE_SIMULATOR_ARCHS
329−- QMAKE_XCODE_ARCHS += $$QMAKE_APPLE_SIMULATOR_ARCHS
330−- QMAKE_MAC_XCODE_SETTINGS += arch_simulator
331−- }
332−-
333−- only_active_arch.name = ONLY_ACTIVE_ARCH
334−- only_active_arch.value = YES
335−- only_active_arch.build = debug
336−- QMAKE_MAC_XCODE_SETTINGS += only_active_arch
337−-} else {
338−- device|!simulator: VALID_DEVICE_ARCHS = $$QMAKE_APPLE_DEVICE_ARCHS
339−- simulator: VALID_SIMULATOR_ARCHS = $$QMAKE_APPLE_SIMULATOR_ARCHS
340−- VALID_ARCHS = $$VALID_DEVICE_ARCHS $$VALID_SIMULATOR_ARCHS
341−-
342−- isEmpty(VALID_ARCHS): \
343−- error("QMAKE_APPLE_DEVICE_ARCHS or QMAKE_APPLE_SIMULATOR_ARCHS must contain at least one architecture")
344−-
345−- single_arch: VALID_ARCHS = $$first(VALID_ARCHS)
346−-
347−- ACTIVE_ARCHS = $(filter $(EXPORT_VALID_ARCHS), $(ARCHS))
348−- ARCH_ARGS = $(foreach arch, $(if $(EXPORT_ACTIVE_ARCHS), $(EXPORT_ACTIVE_ARCHS), $(EXPORT_VALID_ARCHS)), -arch $(arch))
349−-
350−- QMAKE_EXTRA_VARIABLES += VALID_ARCHS ACTIVE_ARCHS ARCH_ARGS
351−-
352−- arch_flags = $(EXPORT_ARCH_ARGS)
353−-
354−- QMAKE_CFLAGS += $$arch_flags
355−- QMAKE_CXXFLAGS += $$arch_flags
356−- QMAKE_LFLAGS += $$arch_flags
357−-
358−- QMAKE_PCH_ARCHS = $$VALID_ARCHS
359−-
360−- macos: deployment_target = $$QMAKE_MACOSX_DEPLOYMENT_TARGET
361−- ios: deployment_target = $$QMAKE_IOS_DEPLOYMENT_TARGET
362−- tvos: deployment_target = $$QMAKE_TVOS_DEPLOYMENT_TARGET
363−- watchos: deployment_target = $$QMAKE_WATCHOS_DEPLOYMENT_TARGET
364−-
365−- # If we're doing a simulator and device build, device and simulator
366−- # architectures use different paths and flags for the sysroot and
367−- # deployment target switch, so we must multiplex them across multiple
368−- # architectures using -Xarch. Otherwise we fall back to the simple path.
369−- # This is not strictly necessary, but results in cleaner command lines
370−- # and makes it easier for people to override EXPORT_VALID_ARCHS to limit
371−- # individual rules to a different set of architecture(s) from the overall
372−- # build (such as machtest in QtCore).
373−- simulator:device {
374−- QMAKE_XARCH_CFLAGS =
375−- QMAKE_XARCH_LFLAGS =
376−- QMAKE_EXTRA_VARIABLES += QMAKE_XARCH_CFLAGS QMAKE_XARCH_LFLAGS
377−-
378−- for (arch, VALID_ARCHS) {
379−- contains(VALID_SIMULATOR_ARCHS, $$arch) {
380−- sdk = $$simulator.sdk
381−- version_identifier = $$simulator.deployment_identifier
382−- } else {
383−- sdk = $$device.sdk
384−- version_identifier = $$device.deployment_identifier
385−- }
386−-
387−- version_min_flags = \
388−- -Xarch_$${arch} \
389−- -m$${version_identifier}-version-min=$$deployment_target
390−- QMAKE_XARCH_CFLAGS_$${arch} = $$version_min_flags \
391−- -Xarch_$${arch} \
392−- -isysroot$$xcodeSDKInfo(Path, $$sdk)
393−- QMAKE_XARCH_LFLAGS_$${arch} = $$version_min_flags \
394−- -Xarch_$${arch} \
395−- -Wl,-syslibroot,$$xcodeSDKInfo(Path, $$sdk)
396−-
397−- QMAKE_XARCH_CFLAGS += $(EXPORT_QMAKE_XARCH_CFLAGS_$${arch})
398−- QMAKE_XARCH_LFLAGS += $(EXPORT_QMAKE_XARCH_LFLAGS_$${arch})
399−-
400−- QMAKE_EXTRA_VARIABLES += \
401−- QMAKE_XARCH_CFLAGS_$${arch} \
402−- QMAKE_XARCH_LFLAGS_$${arch}
403−- }
404−-
405−- QMAKE_CFLAGS += $(EXPORT_QMAKE_XARCH_CFLAGS)
406−- QMAKE_CXXFLAGS += $(EXPORT_QMAKE_XARCH_CFLAGS)
407−- QMAKE_LFLAGS += $(EXPORT_QMAKE_XARCH_LFLAGS)
408−- } else {
409−- simulator: \
410−- version_identifier = $$simulator.deployment_identifier
411−- else: \
412−- version_identifier = $$device.deployment_identifier
413−- version_min_flag = -m$${version_identifier}-version-min=$$deployment_target
414−- QMAKE_CFLAGS += -isysroot $$QMAKE_MAC_SDK_PATH $$version_min_flag
415−- QMAKE_CXXFLAGS += -isysroot $$QMAKE_MAC_SDK_PATH $$version_min_flag
416−- QMAKE_LFLAGS += -Wl,-syslibroot,$$QMAKE_MAC_SDK_PATH $$version_min_flag
417−- }
418−-
419−- # Enable precompiled headers for multiple architectures
420−- QMAKE_CFLAGS_USE_PRECOMPILE =
421−- for (arch, VALID_ARCHS) {
422−- icc_pch_style: \
423−- use_flag = "-pch-use "
424−- else: \
425−- use_flag = -include
426−-
427−- # Only use Xarch with multi-arch, as the option confuses ccache
428−- count(VALID_ARCHS, 1, greaterThan): \
429−- QMAKE_CFLAGS_USE_PRECOMPILE += \
430−- -Xarch_$${arch}
431−-
432−- QMAKE_CFLAGS_USE_PRECOMPILE += \
433−- $${use_flag}${QMAKE_PCH_OUTPUT_$${arch}}
434−- }
435−- icc_pch_style {
436−- QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE -include ${QMAKE_PCH_INPUT}
437−- QMAKE_CFLAGS_USE_PRECOMPILE =
438−- } else {
439−- QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
440−- QMAKE_OBJCFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
441−- QMAKE_OBJCXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
442−- }
443−-
444−- QMAKE_PCH_OUTPUT_EXT = _${QMAKE_PCH_ARCH}$${QMAKE_PCH_OUTPUT_EXT}
445−-}
446−-
447−-cache(QMAKE_XCODE_DEVELOPER_PATH, stash)
448−-!isEmpty(QMAKE_XCODE_VERSION): \
449−- cache(QMAKE_XCODE_VERSION, stash)
450−-
451−-QMAKE_XCODE_LIBRARY_SUFFIX = $$qtPlatformTargetSuffix()
452−-
453−-xcode_product_bundle_identifier_setting.name = PRODUCT_BUNDLE_IDENTIFIER
454−-xcode_product_bundle_identifier_setting.value = $$QMAKE_TARGET_BUNDLE_PREFIX
455−-isEmpty(xcode_product_bundle_identifier_setting.value): \
456−- xcode_product_bundle_identifier_setting.value = "com.yourcompany"
457−-xcode_product_bundle_target = $$QMAKE_BUNDLE
458−-isEmpty(xcode_product_bundle_target): \
459−- xcode_product_bundle_target = ${PRODUCT_NAME:rfc1034identifier}
460−-xcode_product_bundle_identifier_setting.value = "$${xcode_product_bundle_identifier_setting.value}.$${xcode_product_bundle_target}"
461−-QMAKE_MAC_XCODE_SETTINGS += xcode_product_bundle_identifier_setting
462−Only in qtbase-everywhere-src-5.11.3/mkspecs/features/mac: default_post.prf.orig
463−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/mac/default_pre.prf qtbase-everywhere-src-5.11.3/mkspecs/features/mac/default_pre.prf
464−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/mac/default_pre.prf 2018-11-25 13:51:11.000000000 +0100
465−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/mac/default_pre.prf 2019-01-31 00:42:55.843577249 +0100
466−@@ -1,60 +1,2 @@
467− CONFIG = asset_catalogs rez $$CONFIG
468− load(default_pre)
469−-
470−-isEmpty(QMAKE_XCODE_DEVELOPER_PATH) {
471−- # Get path of Xcode's Developer directory
472−- QMAKE_XCODE_DEVELOPER_PATH = $$system("/usr/bin/xcode-select --print-path 2>/dev/null")
473−- isEmpty(QMAKE_XCODE_DEVELOPER_PATH): \
474−- error("Xcode path is not set. Please use xcode-select to choose Xcode installation path.")
475−-
476−- # Make sure Xcode path is valid
477−- !exists($$QMAKE_XCODE_DEVELOPER_PATH): \
478−- error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.")
479−-}
480−-
481−-isEmpty(QMAKE_XCODEBUILD_PATH): \
482−- QMAKE_XCODEBUILD_PATH = $$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")
483−-
484−-!isEmpty(QMAKE_XCODEBUILD_PATH) {
485−- # Make sure Xcode is set up properly
486−- !system("/usr/bin/xcrun xcodebuild -license check 2>/dev/null"): \
487−- error("Xcode not set up properly. You need to confirm the license agreement by running 'sudo xcrun xcodebuild -license accept'.")
488−-
489−- isEmpty(QMAKE_XCODE_VERSION) {
490−- # Extract Xcode version using xcodebuild
491−- xcode_version = $$system("/usr/bin/xcrun xcodebuild -version")
492−- QMAKE_XCODE_VERSION = $$member(xcode_version, 1)
493−- isEmpty(QMAKE_XCODE_VERSION): error("Could not resolve Xcode version.")
494−- unset(xcode_version)
495−- }
496−-}
497−-
498−-isEmpty(QMAKE_TARGET_BUNDLE_PREFIX) {
499−- QMAKE_XCODE_PREFERENCES_FILE = $$(HOME)/Library/Preferences/com.apple.dt.Xcode.plist
500−- exists($$QMAKE_XCODE_PREFERENCES_FILE): \
501−- QMAKE_TARGET_BUNDLE_PREFIX = $$system("/usr/libexec/PlistBuddy -c 'print IDETemplateOptions:bundleIdentifierPrefix' $$QMAKE_XCODE_PREFERENCES_FILE 2>/dev/null")
502−-
503−- !isEmpty(_QMAKE_CACHE_):!isEmpty(QMAKE_TARGET_BUNDLE_PREFIX): \
504−- cache(QMAKE_TARGET_BUNDLE_PREFIX)
505−-}
506−-
507−-QMAKE_ASSET_CATALOGS_APP_ICON = AppIcon
508−-
509−-# Make the default debug info format for static debug builds
510−-# DWARF instead of DWARF with dSYM. This cuts down build times
511−-# for application debug builds significantly, as Xcode doesn't
512−-# have to pull out all the DWARF info from the Qt static libs
513−-# and put it into a dSYM file. We don't need that dSYM file in
514−-# the first place, since the information is available in the
515−-# object files inside the archives (static libraries).
516−-macx-xcode:qtConfig(static): \
517−- QMAKE_XCODE_DEBUG_INFORMATION_FORMAT = dwarf
518−-
519−-# This variable is used by the xcode_dynamic_library_suffix
520−-# feature, which allows Xcode to choose the Qt libraries to link to
521−-# at build time, depending on the current Xcode SDK and configuration.
522−-QMAKE_XCODE_LIBRARY_SUFFIX_SETTING = QT_LIBRARY_SUFFIX
523−-
524−-xcode_copy_phase_strip_setting.name = COPY_PHASE_STRIP
525−-xcode_copy_phase_strip_setting.value = NO
526−-QMAKE_MAC_XCODE_SETTINGS += xcode_copy_phase_strip_setting
527−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/mac/sdk.prf qtbase-everywhere-src-5.11.3/mkspecs/features/mac/sdk.prf
528−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/mac/sdk.prf 2018-11-25 13:51:11.000000000 +0100
529−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/mac/sdk.prf 2019-01-31 00:42:55.843577249 +0100
530−@@ -1,58 +1 @@
531−
532−-isEmpty(QMAKE_MAC_SDK): \
533−- error("QMAKE_MAC_SDK must be set when using CONFIG += sdk.")
534−-
535−-contains(QMAKE_MAC_SDK, .*/.*): \
536−- error("QMAKE_MAC_SDK can only contain short-form SDK names (eg. macosx, iphoneos)")
537−-
538−-defineReplace(xcodeSDKInfo) {
539−- info = $$1
540−- equals(info, "Path"): \
541−- infoarg = --show-sdk-path
542−- equals(info, "PlatformPath"): \
543−- infoarg = --show-sdk-platform-path
544−- equals(info, "SDKVersion"): \
545−- infoarg = --show-sdk-version
546−- sdk = $$2
547−- isEmpty(sdk): \
548−- sdk = $$QMAKE_MAC_SDK
549−-
550−- isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}) {
551−- QMAKE_MAC_SDK.$${sdk}.$${info} = $$system("/usr/bin/xcrun --sdk $$sdk $$infoarg 2>/dev/null")
552−- # --show-sdk-platform-path won't work for Command Line Tools; this is fine
553−- # only used by the XCTest backend to testlib
554−- isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}):if(!isEmpty(QMAKE_XCODEBUILD_PATH)|!equals(infoarg, "--show-sdk-platform-path")): \
555−- error("Could not resolve SDK $$info for \'$$sdk\' using $$infoarg")
556−- cache(QMAKE_MAC_SDK.$${sdk}.$${info}, set stash, QMAKE_MAC_SDK.$${sdk}.$${info})
557−- }
558−-
559−- return($$eval(QMAKE_MAC_SDK.$${sdk}.$${info}))
560−-}
561−-
562−-QMAKE_MAC_SDK_PATH = $$xcodeSDKInfo(Path)
563−-QMAKE_MAC_SDK_PLATFORM_PATH = $$xcodeSDKInfo(PlatformPath)
564−-QMAKE_MAC_SDK_VERSION = $$xcodeSDKInfo(SDKVersion)
565−-
566−-sysrootified =
567−-for(val, QMAKE_INCDIR_OPENGL): sysrootified += $${QMAKE_MAC_SDK_PATH}$$val
568−-QMAKE_INCDIR_OPENGL = $$sysrootified
569−-
570−-QMAKESPEC_NAME = $$basename(QMAKESPEC)
571−-
572−-# Resolve SDK version of various tools
573−-for(tool, $$list(QMAKE_CC QMAKE_CXX QMAKE_FIX_RPATH QMAKE_AR QMAKE_RANLIB QMAKE_LINK QMAKE_LINK_SHLIB QMAKE_ACTOOL QMAKE_LINK_C QMAKE_LINK_C_SHLIB)) {
574−- tool_variable = QMAKE_MAC_SDK.$${QMAKESPEC_NAME}.$${QMAKE_MAC_SDK}.$${tool}
575−- !isEmpty($$tool_variable) {
576−- $$tool = $$eval($$tool_variable)
577−- next()
578−- }
579−-
580−- value = $$eval($$tool)
581−- isEmpty(value): next()
582−-
583−- sysrooted = $$system("/usr/bin/xcrun -sdk $$QMAKE_MAC_SDK -find $$first(value) 2>/dev/null")
584−- isEmpty(sysrooted): next()
585−-
586−- $$tool = $$sysrooted $$member(value, 1, -1)
587−- cache($$tool_variable, set stash, $$tool)
588−-}
589−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qml_module.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qml_module.prf
590−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qml_module.prf 2018-11-25 13:51:11.000000000 +0100
591−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qml_module.prf 2019-01-31 00:42:55.843577249 +0100
592−@@ -23,13 +23,8 @@
593−
594− load(qt_build_paths)
595−
596−-qml1_target {
597−- DESTDIR = $$MODULE_BASE_OUTDIR/imports/$$TARGETPATH
598−- instbase = $$[QT_INSTALL_IMPORTS]
599−-} else {
600−- DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
601−- instbase = $$[QT_INSTALL_QML]
602−-}
603−+DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
604−+instbase = $$NIX_OUTPUT_QML
605−
606− !qml1_target:static: CONFIG += builtin_resources
607−
608−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qml_plugin.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qml_plugin.prf
609−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qml_plugin.prf 2018-11-25 13:51:11.000000000 +0100
610−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qml_plugin.prf 2019-01-31 00:42:55.844577264 +0100
611−@@ -48,13 +48,8 @@
612−
613− load(qt_build_paths)
614−
615−-qml1_target {
616−- DESTDIR = $$MODULE_BASE_OUTDIR/imports/$$TARGETPATH
617−- instbase = $$[QT_INSTALL_IMPORTS]
618−-} else {
619−- DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
620−- instbase = $$[QT_INSTALL_QML]
621−-}
622−+DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
623−+instbase = $$NIX_OUTPUT_QML
624−
625− target.path = $$instbase/$$TARGETPATH
626− INSTALLS += target
627−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_app.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_app.prf
628−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_app.prf 2018-11-25 13:51:11.000000000 +0100
629−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_app.prf 2019-01-31 00:42:55.844577264 +0100
630−@@ -33,7 +33,7 @@
631− target.path = $$[QT_HOST_BINS]
632− } else {
633− !build_pass:qtConfig(debug_and_release): CONFIG += release
634−- target.path = $$[QT_INSTALL_BINS]
635−+ target.path = $$NIX_OUTPUT_BIN/bin
636− CONFIG += relative_qt_rpath # Qt's tools and apps should be relocatable
637− }
638− INSTALLS += target
639−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_build_paths.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_build_paths.prf
640−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_build_paths.prf 2018-11-25 13:51:11.000000000 +0100
641−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_build_paths.prf 2019-01-31 00:42:55.844577264 +0100
642−@@ -24,6 +24,6 @@
643− !force_independent {
644− # If the module is not built independently, everything ends up in qtbase.
645− # This is the case in non-prefix builds, except for selected modules.
646−- MODULE_BASE_OUTDIR = $$[QT_HOST_PREFIX]
647−- MODULE_QMAKE_OUTDIR = $$[QT_HOST_PREFIX]
648−+ MODULE_BASE_OUTDIR = $$NIX_OUTPUT_OUT
649−+ MODULE_QMAKE_OUTDIR = $$NIX_OUTPUT_OUT
650− }
651−Only in qtbase-everywhere-src-5.11.3/mkspecs/features: qt_build_paths.prf.orig
652−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_common.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_common.prf
653−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_common.prf 2018-11-25 13:51:11.000000000 +0100
654−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_common.prf 2019-01-31 00:42:55.844577264 +0100
655−@@ -32,8 +32,8 @@
656− qqt_libdir = \$\$\$\$[QT_HOST_LIBS]
657− qt_libdir = $$[QT_HOST_LIBS]
658− } else {
659−- qqt_libdir = \$\$\$\$[QT_INSTALL_LIBS]
660−- qt_libdir = $$[QT_INSTALL_LIBS]
661−+ qqt_libdir = \$\$\$\$NIX_OUTPUT_OUT/lib
662−+ qt_libdir = $$NIX_OUTPUT_OUT/lib
663− }
664− contains(QMAKE_DEFAULT_LIBDIRS, $$qt_libdir) {
665− lib_replace.match = "[^ ']*$$rplbase/lib"
666−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_docs.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_docs.prf
667−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_docs.prf 2018-11-25 13:51:11.000000000 +0100
668−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_docs.prf 2019-01-31 00:42:55.844577264 +0100
669−@@ -45,7 +45,7 @@
670−
671− QDOC += -outputdir $$shell_quote($$QMAKE_DOCS_OUTPUTDIR)
672− !build_online_docs: \
673−- QDOC += -installdir $$shell_quote($$[QT_INSTALL_DOCS])
674−+ QDOC += -installdir $$shell_quote($$NIX_OUTPUT_DOC)
675− PREP_DOC_INDEXES =
676− DOC_INDEXES =
677− !isEmpty(QTREPOS) {
678−@@ -64,8 +64,8 @@
679− DOC_INDEXES += -indexdir $$shell_quote($$qrep/doc)
680− } else {
681− prepare_docs: \
682−- PREP_DOC_INDEXES += -indexdir $$shell_quote($$[QT_INSTALL_DOCS/get])
683−- DOC_INDEXES += -indexdir $$shell_quote($$[QT_INSTALL_DOCS/get])
684−+ PREP_DOC_INDEXES += -indexdir $$shell_quote($$NIX_OUTPUT_DOC)
685−+ DOC_INDEXES += -indexdir $$shell_quote($$NIX_OUTPUT_DOC)
686− }
687−
688− qtattributionsscanner.target = qtattributionsscanner
689−@@ -88,12 +88,12 @@
690− qch_docs.commands = $$QHELPGENERATOR $$shell_quote($$QMAKE_DOCS_OUTPUTDIR/$${QMAKE_DOCS_TARGET}.qhp) -o $$shell_quote($$QMAKE_DOCS_BASE_OUTDIR/$${QMAKE_DOCS_TARGET}.qch)
691−
692− inst_html_docs.files = $$QMAKE_DOCS_OUTPUTDIR
693−- inst_html_docs.path = $$[QT_INSTALL_DOCS]
694−+ inst_html_docs.path = $$NIX_OUTPUT_DOC
695− inst_html_docs.CONFIG += no_check_exist directory no_default_install no_build
696− INSTALLS += inst_html_docs
697−
698− inst_qch_docs.files = $$QMAKE_DOCS_BASE_OUTDIR/$${QMAKE_DOCS_TARGET}.qch
699−- inst_qch_docs.path = $$[QT_INSTALL_DOCS]
700−+ inst_qch_docs.path = $$NIX_OUTPUT_DOC
701− inst_qch_docs.CONFIG += no_check_exist no_default_install no_build
702− INSTALLS += inst_qch_docs
703−
704−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_example_installs.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_example_installs.prf
705−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_example_installs.prf 2018-11-25 13:51:11.000000000 +0100
706−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_example_installs.prf 2019-01-31 00:42:55.844577264 +0100
707−@@ -88,7 +88,7 @@
708− $$SOURCES $$HEADERS $$FORMS $$RESOURCES $$TRANSLATIONS \
709− $$DBUS_ADAPTORS $$DBUS_INTERFACES
710− addInstallFiles(sources.files, $$sourcefiles)
711−-sources.path = $$[QT_INSTALL_EXAMPLES]/$$probase
712−+sources.path = $$NIX_OUTPUT_DEV/share/examples/$$probase
713− INSTALLS += sources
714−
715− check_examples {
716−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_functions.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_functions.prf
717−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_functions.prf 2018-11-25 13:51:11.000000000 +0100
718−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_functions.prf 2019-01-31 00:42:55.844577264 +0100
719−@@ -69,7 +69,7 @@
720− defineTest(qtPrepareTool) {
721− cmd = $$eval(QT_TOOL.$${2}.binary)
722− isEmpty(cmd) {
723−- cmd = $$[QT_HOST_BINS]/$$2
724−+ cmd = $$system("command -v $$2")
725− exists($${cmd}.pl) {
726− $${1}_EXE = $${cmd}.pl
727− cmd = perl -w $$system_path($${cmd}.pl)
728−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_installs.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_installs.prf
729−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_installs.prf 2018-11-25 13:51:11.000000000 +0100
730−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_installs.prf 2019-01-31 00:42:55.844577264 +0100
731−@@ -12,16 +12,10 @@
732− #library
733− !qt_no_install_library {
734− win32 {
735−- host_build: \
736−- dlltarget.path = $$[QT_HOST_BINS]
737−- else: \
738−- dlltarget.path = $$[QT_INSTALL_BINS]
739−+ dlltarget.path = $$NIX_OUTPUT_BIN/bin
740− INSTALLS += dlltarget
741− }
742−- host_build: \
743−- target.path = $$[QT_HOST_LIBS]
744−- else: \
745−- target.path = $$[QT_INSTALL_LIBS]
746−+ target.path = $$NIX_OUTPUT_OUT/lib
747− !static: target.CONFIG = no_dll
748− INSTALLS += target
749− }
750−@@ -29,33 +23,33 @@
751− #headers
752− qt_install_headers {
753− gen_headers.files = $$SYNCQT.GENERATED_HEADER_FILES
754−- gen_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME
755−+ gen_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME
756− INSTALLS += gen_headers
757−
758− targ_headers.files = $$SYNCQT.HEADER_FILES $$SYNCQT.INJECTED_HEADER_FILES
759−- targ_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME
760−+ targ_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME
761− INSTALLS += targ_headers
762−
763− private_headers.files = $$SYNCQT.PRIVATE_HEADER_FILES $$SYNCQT.INJECTED_PRIVATE_HEADER_FILES
764−- private_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/private
765−+ private_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/private
766− INSTALLS += private_headers
767−
768− qpa_headers.files = $$SYNCQT.QPA_HEADER_FILES
769−- qpa_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/qpa
770−+ qpa_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/qpa
771− INSTALLS += qpa_headers
772− }
773−
774− #module
775− qt_install_module {
776− !isEmpty(MODULE_PRI) {
777−- pritarget.path = $$[QT_HOST_DATA]/mkspecs/modules
778−+ pritarget.path = $$NIX_OUTPUT_DEV/mkspecs/modules
779− pritarget.files = $$MODULE_PRI
780− INSTALLS += pritarget
781− } else: isEmpty(MODULE_PRIVATE_PRI) {
782− warning("Project $$basename(_PRO_FILE_) is a module, but has not defined MODULE_PRI, which is required for Qt to expose the module to other projects.")
783− }
784− !isEmpty(MODULE_PRIVATE_PRI) {
785−- privpritarget.path = $$[QT_HOST_DATA]/mkspecs/modules
786−+ privpritarget.path = $$NIX_OUTPUT_DEV/mkspecs/modules
787− privpritarget.files = $$MODULE_PRIVATE_PRI
788− INSTALLS += privpritarget
789− }
790−diff -ur qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_plugin.prf qtbase-everywhere-src-5.11.3/mkspecs/features/qt_plugin.prf
791−--- qtbase-everywhere-src-5.11.3-orig/mkspecs/features/qt_plugin.prf 2018-11-25 13:51:11.000000000 +0100
792−+++ qtbase-everywhere-src-5.11.3/mkspecs/features/qt_plugin.prf 2019-01-31 00:42:55.844577264 +0100
793−@@ -88,7 +88,7 @@
794− }
795− }
796−
797−-target.path = $$[QT_INSTALL_PLUGINS]/$$PLUGIN_TYPE
798−+target.path = $$NIX_OUTPUT_PLUGIN/$$PLUGIN_TYPE
799− INSTALLS += target
800−
801− TARGET = $$qt5LibraryTarget($$TARGET)
802−diff -ur qtbase-everywhere-src-5.11.3-orig/src/corelib/kernel/qcoreapplication.cpp qtbase-everywhere-src-5.11.3/src/corelib/kernel/qcoreapplication.cpp
803−--- qtbase-everywhere-src-5.11.3-orig/src/corelib/kernel/qcoreapplication.cpp 2018-11-25 13:51:11.000000000 +0100
804−+++ qtbase-everywhere-src-5.11.3/src/corelib/kernel/qcoreapplication.cpp 2019-01-31 00:42:55.845577279 +0100
805−@@ -2612,6 +2612,15 @@
806− QStringList *app_libpaths = new QStringList;
807− coreappdata()->app_libpaths.reset(app_libpaths);
808−
809−+ // Add library paths derived from PATH
810−+ const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
811−+ const QString plugindir = QStringLiteral("../" NIXPKGS_QT_PLUGIN_PREFIX);
812−+ for (const QString &path: paths) {
813−+ if (!path.isEmpty()) {
814−+ app_libpaths->append(QDir::cleanPath(path + QDir::separator() + plugindir));
815−+ }
816−+ }
817−+
818− const QByteArray libPathEnv = qgetenv("QT_PLUGIN_PATH");
819− if (!libPathEnv.isEmpty()) {
820− QStringList paths = QFile::decodeName(libPathEnv).split(QDir::listSeparator(), QString::SkipEmptyParts);
821−Only in qtbase-everywhere-src-5.11.3/src/corelib/kernel: qcoreapplication.cpp.orig
822−diff -ur qtbase-everywhere-src-5.11.3-orig/src/corelib/Qt5CoreConfigExtras.cmake.in qtbase-everywhere-src-5.11.3/src/corelib/Qt5CoreConfigExtras.cmake.in
823−--- qtbase-everywhere-src-5.11.3-orig/src/corelib/Qt5CoreConfigExtras.cmake.in 2018-11-25 13:51:11.000000000 +0100
824−+++ qtbase-everywhere-src-5.11.3/src/corelib/Qt5CoreConfigExtras.cmake.in 2019-01-31 00:42:55.844577264 +0100
825−@@ -3,7 +3,7 @@
826− add_executable(Qt5::qmake IMPORTED)
827−
828− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
829−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
830−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
831− !!ELSE
832− set(imported_location \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
833− !!ENDIF
834−@@ -18,7 +18,7 @@
835− add_executable(Qt5::moc IMPORTED)
836−
837− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
838−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
839−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
840− !!ELSE
841− set(imported_location \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
842− !!ENDIF
843−@@ -35,7 +35,7 @@
844− add_executable(Qt5::rcc IMPORTED)
845−
846− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
847−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
848−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
849− !!ELSE
850− set(imported_location \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
851− !!ENDIF
852−@@ -116,7 +116,7 @@
853− !!IF !isEmpty(CMAKE_RELEASE_TYPE)
854− set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
855− !!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
856−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
857−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
858− !!ELSE
859− set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
860− !!ENDIF
861−@@ -130,7 +130,7 @@
862− set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
863−
864− !!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
865−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
866−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
867− !!ELSE
868− set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
869− !!ENDIF
870−diff -ur qtbase-everywhere-src-5.11.3-orig/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in qtbase-everywhere-src-5.11.3/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
871−--- qtbase-everywhere-src-5.11.3-orig/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in 2018-11-25 13:51:11.000000000 +0100
872−+++ qtbase-everywhere-src-5.11.3/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in 2019-01-31 00:42:55.844577264 +0100
873−@@ -1,6 +1,6 @@
874−
875− !!IF isEmpty(CMAKE_HOST_DATA_DIR_IS_ABSOLUTE)
876−-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
877−+set(_qt5_corelib_extra_includes \"$$NIX_OUTPUT_DEV/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
878− !!ELSE
879− set(_qt5_corelib_extra_includes \"$${CMAKE_HOST_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
880− !!ENDIF
881−diff -ur qtbase-everywhere-src-5.11.3-orig/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in qtbase-everywhere-src-5.11.3/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
882−--- qtbase-everywhere-src-5.11.3-orig/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in 2018-11-25 13:51:11.000000000 +0100
883−+++ qtbase-everywhere-src-5.11.3/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in 2019-01-31 00:42:55.844577264 +0100
884−@@ -1,6 +1,6 @@
885−
886− !!IF isEmpty(CMAKE_INSTALL_DATA_DIR_IS_ABSOLUTE)
887−-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
888−+set(_qt5_corelib_extra_includes \"$$NIX_OUTPUT_DEV/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
889− !!ELSE
890− set(_qt5_corelib_extra_includes \"$${CMAKE_INSTALL_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
891− !!ENDIF
892−diff -ur qtbase-everywhere-src-5.11.3-orig/src/corelib/tools/qtimezoneprivate_tz.cpp qtbase-everywhere-src-5.11.3/src/corelib/tools/qtimezoneprivate_tz.cpp
893−--- qtbase-everywhere-src-5.11.3-orig/src/corelib/tools/qtimezoneprivate_tz.cpp 2018-11-25 13:51:11.000000000 +0100
894−+++ qtbase-everywhere-src-5.11.3/src/corelib/tools/qtimezoneprivate_tz.cpp 2019-01-31 00:42:55.845577279 +0100
895−@@ -70,7 +70,11 @@
896− // Parse zone.tab table, assume lists all installed zones, if not will need to read directories
897− static QTzTimeZoneHash loadTzTimeZones()
898− {
899−- QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab");
900−+ // Try TZDIR first, in case we're running on NixOS.
901−+ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab");
902−+ // Fallback to traditional paths in case we are not on NixOS.
903−+ if (!QFile::exists(path))
904−+ path = QStringLiteral("/usr/share/zoneinfo/zone.tab");
905− if (!QFile::exists(path))
906− path = QStringLiteral("/usr/lib/zoneinfo/zone.tab");
907−
908−@@ -644,12 +648,16 @@
909− if (!tzif.open(QIODevice::ReadOnly))
910− return;
911− } else {
912−- // Open named tz, try modern path first, if fails try legacy path
913−- tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId));
914−+ // Try TZDIR first, in case we're running on NixOS
915−+ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId));
916− if (!tzif.open(QIODevice::ReadOnly)) {
917−- tzif.setFileName(QLatin1String("/usr/lib/zoneinfo/") + QString::fromLocal8Bit(ianaId));
918−- if (!tzif.open(QIODevice::ReadOnly))
919−- return;
920−+ // Open named tz, try modern path first, if fails try legacy path
921−+ tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId));
922−+ if (!tzif.open(QIODevice::ReadOnly)) {
923−+ tzif.setFileName(QLatin1String("/usr/lib/zoneinfo/") + QString::fromLocal8Bit(ianaId));
924−+ if (!tzif.open(QIODevice::ReadOnly))
925−+ return;
926−+ }
927− }
928− }
929−
930−diff -ur qtbase-everywhere-src-5.11.3-orig/src/dbus/Qt5DBusConfigExtras.cmake.in qtbase-everywhere-src-5.11.3/src/dbus/Qt5DBusConfigExtras.cmake.in
931−--- qtbase-everywhere-src-5.11.3-orig/src/dbus/Qt5DBusConfigExtras.cmake.in 2018-11-25 13:51:11.000000000 +0100
932−+++ qtbase-everywhere-src-5.11.3/src/dbus/Qt5DBusConfigExtras.cmake.in 2019-01-31 00:42:55.845577279 +0100
933−@@ -2,11 +2,7 @@
934− if (NOT TARGET Qt5::qdbuscpp2xml)
935− add_executable(Qt5::qdbuscpp2xml IMPORTED)
936−
937−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
938−- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
939−-!!ELSE
940−- set(imported_location \"$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
941−-!!ENDIF
942−+ set(imported_location \"$$NIX_OUTPUT_DEV/bin/qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
943− _qt5_DBus_check_file_exists(${imported_location})
944−
945− set_target_properties(Qt5::qdbuscpp2xml PROPERTIES
946−@@ -17,11 +13,7 @@
947− if (NOT TARGET Qt5::qdbusxml2cpp)
948− add_executable(Qt5::qdbusxml2cpp IMPORTED)
949−
950−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
951−- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
952−-!!ELSE
953−- set(imported_location \"$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
954−-!!ENDIF
955−+ set(imported_location \"$$NIX_OUTPUT_DEV/bin/qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
956− _qt5_DBus_check_file_exists(${imported_location})
957−
958− set_target_properties(Qt5::qdbusxml2cpp PROPERTIES
959−diff -ur qtbase-everywhere-src-5.11.3-orig/src/gui/Qt5GuiConfigExtras.cmake.in qtbase-everywhere-src-5.11.3/src/gui/Qt5GuiConfigExtras.cmake.in
960−--- qtbase-everywhere-src-5.11.3-orig/src/gui/Qt5GuiConfigExtras.cmake.in 2018-11-25 13:51:11.000000000 +0100
961−+++ qtbase-everywhere-src-5.11.3/src/gui/Qt5GuiConfigExtras.cmake.in 2019-01-31 00:42:55.845577279 +0100
962−@@ -2,7 +2,7 @@
963− !!IF !isEmpty(CMAKE_ANGLE_EGL_DLL_RELEASE)
964−
965− !!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
966−-set(Qt5Gui_EGL_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR/QtANGLE\")
967−+set(Qt5Gui_EGL_INCLUDE_DIRS \"$$NIX_OUTPUT_DEV/$$CMAKE_INCLUDE_DIR/QtANGLE\")
968− !!ELSE
969− set(Qt5Gui_EGL_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR/QtANGLE\")
970− !!ENDIF
971−@@ -17,13 +17,13 @@
972− set_property(TARGET Qt5::${TargetName} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
973−
974− !!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
975−- set(imported_location \"${_qt5Gui_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
976−+ set(imported_location \"$$NIX_OUTPUT_OUT/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
977− !!ELSE
978− set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
979− !!ENDIF
980−
981− !!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
982−- set(imported_implib \"${_qt5Gui_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
983−+ set(imported_implib \"$$NIX_OUTPUT_OUT/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
984− !!ELSE
985− set(imported_implib \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
986− !!ENDIF
987−diff -ur qtbase-everywhere-src-5.11.3-orig/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp qtbase-everywhere-src-5.11.3/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
988−--- qtbase-everywhere-src-5.11.3-orig/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp 2018-11-25 13:51:11.000000000 +0100
989−+++ qtbase-everywhere-src-5.11.3/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp 2019-01-31 00:42:55.845577279 +0100
990−@@ -265,12 +265,9 @@
991− m_possibleLocations.reserve(7);
992− if (qEnvironmentVariableIsSet("QTCOMPOSE"))
993− m_possibleLocations.append(QString::fromLocal8Bit(qgetenv("QTCOMPOSE")));
994−- m_possibleLocations.append(QStringLiteral("/usr/share/X11/locale"));
995−- m_possibleLocations.append(QStringLiteral("/usr/local/share/X11/locale"));
996−- m_possibleLocations.append(QStringLiteral("/usr/lib/X11/locale"));
997−- m_possibleLocations.append(QStringLiteral("/usr/local/lib/X11/locale"));
998− m_possibleLocations.append(QStringLiteral(X11_PREFIX "/share/X11/locale"));
999− m_possibleLocations.append(QStringLiteral(X11_PREFIX "/lib/X11/locale"));
1000−+ m_possibleLocations.append(QLatin1String(NIXPKGS_QTCOMPOSE));
1001− }
1002−
1003− QString TableGenerator::findComposeFile()
1004−diff -ur qtbase-everywhere-src-5.11.3-orig/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp qtbase-everywhere-src-5.11.3/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
1005−--- qtbase-everywhere-src-5.11.3-orig/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp 2018-11-25 13:51:11.000000000 +0100
1006−+++ qtbase-everywhere-src-5.11.3/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp 2019-01-31 00:42:55.845577279 +0100
1007−@@ -650,9 +650,14 @@
1008− #if QT_CONFIG(library)
1009− extern const QString qt_gl_library_name();
1010− // QLibrary lib(qt_gl_library_name());
1011−+ // Check system library paths first
1012− QLibrary lib(QLatin1String("GL"));
1013−- if (!lib.load())
1014−- lib.setFileNameAndVersion(QLatin1String("GL"), 1);
1015−+#ifdef NIXPKGS_MESA_GL
1016−+ if (!lib.load()) {
1017−+ // Fallback to Mesa driver
1018−+ lib.setFileName(QLatin1String(NIXPKGS_MESA_GL));
1019−+ }
1020−+#endif // NIXPKGS_MESA_GL
1021− glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
1022− #endif
1023− }
1024−Only in qtbase-everywhere-src-5.11.3/src/plugins/platforms/xcb/gl_integrations/xcb_glx: qglxintegration.cpp.orig
1025−diff -ur qtbase-everywhere-src-5.11.3-orig/src/plugins/platforms/xcb/qxcbcursor.cpp qtbase-everywhere-src-5.11.3/src/plugins/platforms/xcb/qxcbcursor.cpp
1026−--- qtbase-everywhere-src-5.11.3-orig/src/plugins/platforms/xcb/qxcbcursor.cpp 2018-11-25 13:51:11.000000000 +0100
1027−+++ qtbase-everywhere-src-5.11.3/src/plugins/platforms/xcb/qxcbcursor.cpp 2019-01-31 00:42:55.846577295 +0100
1028−@@ -316,10 +316,10 @@
1029− #if QT_CONFIG(xcb_xlib) && QT_CONFIG(library)
1030− static bool function_ptrs_not_initialized = true;
1031− if (function_ptrs_not_initialized) {
1032−- QLibrary xcursorLib(QLatin1String("Xcursor"), 1);
1033−+ QLibrary xcursorLib(QLatin1String(NIXPKGS_LIBXCURSOR), 1);
1034− bool xcursorFound = xcursorLib.load();
1035− if (!xcursorFound) { // try without the version number
1036−- xcursorLib.setFileName(QLatin1String("Xcursor"));
1037−+ xcursorLib.setFileName(QLatin1String(NIXPKGS_LIBXCURSOR));
1038− xcursorFound = xcursorLib.load();
1039− }
1040− if (xcursorFound) {
1041−diff -ur qtbase-everywhere-src-5.11.3-orig/src/plugins/platformthemes/gtk3/main.cpp qtbase-everywhere-src-5.11.3/src/plugins/platformthemes/gtk3/main.cpp
1042−--- qtbase-everywhere-src-5.11.3-orig/src/plugins/platformthemes/gtk3/main.cpp 2018-11-25 13:51:11.000000000 +0100
1043−+++ qtbase-everywhere-src-5.11.3/src/plugins/platformthemes/gtk3/main.cpp 2019-01-31 00:42:55.846577295 +0100
1044−@@ -39,6 +39,7 @@
1045−
1046− #include <qpa/qplatformthemeplugin.h>
1047− #include "qgtk3theme.h"
1048−+#include <QFile>
1049−
1050− QT_BEGIN_NAMESPACE
1051−
1052−@@ -54,8 +55,22 @@
1053− QPlatformTheme *QGtk3ThemePlugin::create(const QString &key, const QStringList &params)
1054− {
1055− Q_UNUSED(params);
1056−- if (!key.compare(QLatin1String(QGtk3Theme::name), Qt::CaseInsensitive))
1057−+ if (!key.compare(QLatin1String(QGtk3Theme::name), Qt::CaseInsensitive)) {
1058−+
1059−+#ifdef NIXPKGS_QGTK3_XDG_DATA_DIRS
1060−+ QStringList XDG_DATA_DIRS = QFile::decodeName(qgetenv("XDG_DATA_DIRS")).split(':');
1061−+ XDG_DATA_DIRS << QLatin1String(NIXPKGS_QGTK3_XDG_DATA_DIRS);
1062−+ qputenv("XDG_DATA_DIRS", QFile::encodeName(XDG_DATA_DIRS.join(':')));
1063−+#endif
1064−+
1065−+#ifdef NIXPKGS_QGTK3_GIO_EXTRA_MODULES
1066−+ QStringList GIO_EXTRA_MODULES = QFile::decodeName(qgetenv("GIO_EXTRA_MODULES")).split(':');
1067−+ GIO_EXTRA_MODULES << QLatin1String(NIXPKGS_QGTK3_GIO_EXTRA_MODULES);
1068−+ qputenv("GIO_EXTRA_MODULES", QFile::encodeName(GIO_EXTRA_MODULES.join(':')));
1069−+#endif
1070−+
1071− return new QGtk3Theme;
1072−+ }
1073−
1074− return 0;
1075− }
1076−diff -ur qtbase-everywhere-src-5.11.3-orig/src/testlib/qtestassert.h qtbase-everywhere-src-5.11.3/src/testlib/qtestassert.h
1077−--- qtbase-everywhere-src-5.11.3-orig/src/testlib/qtestassert.h 2018-11-25 13:51:11.000000000 +0100
1078−+++ qtbase-everywhere-src-5.11.3/src/testlib/qtestassert.h 2019-01-31 00:42:55.846577295 +0100
1079−@@ -44,10 +44,13 @@
1080−
1081− QT_BEGIN_NAMESPACE
1082−
1083−-
1084−+#if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
1085−+#define QTEST_ASSERT(cond) do { } while ((false) && (cond))
1086−+#define QTEST_ASSERT_X(cond, where, what) do { } while ((false) && (cond))
1087−+#else
1088− #define QTEST_ASSERT(cond) do { if (!(cond)) qt_assert(#cond,__FILE__,__LINE__); } while (false)
1089−-
1090− #define QTEST_ASSERT_X(cond, where, what) do { if (!(cond)) qt_assert_x(where, what,__FILE__,__LINE__); } while (false)
1091−+#endif
1092−
1093− QT_END_NAMESPACE
1094−
1095−diff -ur qtbase-everywhere-src-5.11.3-orig/src/widgets/Qt5WidgetsConfigExtras.cmake.in qtbase-everywhere-src-5.11.3/src/widgets/Qt5WidgetsConfigExtras.cmake.in
1096−--- qtbase-everywhere-src-5.11.3-orig/src/widgets/Qt5WidgetsConfigExtras.cmake.in 2018-11-25 13:51:11.000000000 +0100
1097−+++ qtbase-everywhere-src-5.11.3/src/widgets/Qt5WidgetsConfigExtras.cmake.in 2019-01-31 00:42:55.846577295 +0100
1098−@@ -3,7 +3,7 @@
1099− add_executable(Qt5::uic IMPORTED)
1100−
1101− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
1102−- set(imported_location \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
1103−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
1104− !!ELSE
1105− set(imported_location \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
1106− !!ENDIF
pkgs/development/libraries/qt-5/5.11/qtdeclarative.patchdeleted−46
@@ -1,46 +0,0 @@
1−diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
2−index 005db4248..685c5b1b2 100644
3−--- a/src/qml/qml/qqmlimport.cpp
4−+++ b/src/qml/qml/qqmlimport.cpp
5−@@ -1760,6 +1760,15 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
6− QString installImportsPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
7− addImportPath(installImportsPath);
8−
9−+ // Add import paths derived from PATH
10−+ const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
11−+ const QString qmldir = QStringLiteral("../" NIXPKGS_QML2_IMPORT_PREFIX);
12−+ for (const QString &path: paths) {
13−+ if (!path.isEmpty()) {
14−+ addImportPath(QDir::cleanPath(path + QDir::separator() + qmldir));
15−+ }
16−+ }
17−+
18− // env import paths
19− if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QML2_IMPORT_PATH"))) {
20− const QString envImportPath = qEnvironmentVariable("QML2_IMPORT_PATH");
21−diff --git a/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake b/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake
22−index 56cb3fb55..74509d601 100644
23−--- a/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake
24−+++ b/tools/qmlcachegen/Qt5QuickCompilerConfig.cmake
25−@@ -17,7 +17,7 @@ function(QTQUICK_COMPILER_ADD_RESOURCES outfiles)
26−
27− find_package(Qt5 COMPONENTS Qml Core)
28−
29−- set(compiler_path "${_qt5Core_install_prefix}/bin/qmlcachegen")
30−+ set(compiler_path "qmlcachegen")
31−
32− get_target_property(rcc_path ${Qt5Core_RCC_EXECUTABLE} IMPORTED_LOCATION)
33−
34−diff --git a/tools/qmlcachegen/qmlcache.prf b/tools/qmlcachegen/qmlcache.prf
35−index 537eaf62e..e21de58f6 100644
36−--- a/tools/qmlcachegen/qmlcache.prf
37−+++ b/tools/qmlcachegen/qmlcache.prf
38−@@ -26,7 +26,7 @@ defineReplace(qmlCacheOutputFileName) {
39− }
40−
41− qmlcacheinst.base = $$QMLCACHE_DESTDIR
42−-qmlcacheinst.path = $$[QT_INSTALL_QML]/$$TARGETPATH
43−+qmlcacheinst.path = $$NIX_OUTPUT_QML/$$TARGETPATH
44− qmlcacheinst.CONFIG = no_check_exist
45−
46− qmlcachegen.input = CACHEGEN_FILES
pkgs/development/libraries/qt-5/5.11/qtscript.patchdeleted−13
@@ -1,13 +0,0 @@
1−diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
2−index 1f6d25e..087c3fb 100644
3−--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
4−+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
5−@@ -81,7 +81,7 @@
6− #include <pthread.h>
7− #elif PLATFORM(GTK)
8− #include <wtf/gtk/GOwnPtr.h>
9−-typedef struct _GMutex GMutex;
10−+typedef union _GMutex GMutex;
11− typedef struct _GCond GCond;
12− #endif
13−
pkgs/development/libraries/qt-5/5.11/qtserialport.patchdeleted−22
@@ -1,22 +0,0 @@
1−diff --git a/src/serialport/qtudev_p.h b/src/serialport/qtudev_p.h
2−index af2dab2..8e17f64 100644
3−--- a/src/serialport/qtudev_p.h
4−+++ b/src/serialport/qtudev_p.h
5−@@ -111,9 +111,17 @@ inline QFunctionPointer resolveSymbol(QLibrary *udevLibrary, const char *symbolN
6− inline bool resolveSymbols(QLibrary *udevLibrary)
7− {
8− if (!udevLibrary->isLoaded()) {
9−+#ifdef NIXPKGS_LIBUDEV
10−+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 1);
11−+#else
12− udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 1);
13−+#endif
14− if (!udevLibrary->load()) {
15−+#ifdef NIXPKGS_LIBUDEV
16−+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 0);
17−+#else
18− udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 0);
19−+#endif
20− if (!udevLibrary->load()) {
21− qWarning("Failed to load the library: %s, supported version(s): %i and %i", qPrintable(udevLibrary->fileName()), 1, 0);
22− return false;
pkgs/development/libraries/qt-5/5.11/qttools.patchdeleted−86
@@ -1,86 +0,0 @@
1−diff --git a/src/assistant/help/Qt5HelpConfigExtras.cmake.in b/src/assistant/help/Qt5HelpConfigExtras.cmake.in
2−index 3b97923a..63336bd5 100644
3−--- a/src/assistant/help/Qt5HelpConfigExtras.cmake.in
4−+++ b/src/assistant/help/Qt5HelpConfigExtras.cmake.in
5−@@ -2,11 +2,10 @@
6− if (NOT TARGET Qt5::qcollectiongenerator)
7− add_executable(Qt5::qcollectiongenerator IMPORTED)
8−
9−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
10−- set(imported_location \"${_qt5Help_install_prefix}/$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
11−-!!ELSE
12− set(imported_location \"$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
13−-!!ENDIF
14−+ if(NOT EXISTS \"${imported_location}\")
15−+ set(imported_location \"$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
16−+ endif()
17− _qt5_Help_check_file_exists(${imported_location})
18−
19− set_target_properties(Qt5::qcollectiongenerator PROPERTIES
20−@@ -17,11 +16,7 @@ endif()
21− if (NOT TARGET Qt5::qhelpgenerator)
22− add_executable(Qt5::qhelpgenerator IMPORTED)
23−
24−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
25−- set(imported_location \"${_qt5Help_install_prefix}/$${CMAKE_BIN_DIR}qhelpgenerator$$CMAKE_BIN_SUFFIX\")
26−-!!ELSE
27− set(imported_location \"$${CMAKE_BIN_DIR}qhelpgenerator$$CMAKE_BIN_SUFFIX\")
28−-!!ENDIF
29− _qt5_Help_check_file_exists(${imported_location})
30−
31− set_target_properties(Qt5::qhelpgenerator PROPERTIES
32−diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in
33−index 4318b16f..d60db4ff 100644
34−--- a/src/linguist/Qt5LinguistToolsConfig.cmake.in
35−+++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in
36−@@ -44,11 +44,7 @@ endmacro()
37− if (NOT TARGET Qt5::lrelease)
38− add_executable(Qt5::lrelease IMPORTED)
39−
40−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
41−- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
42−-!!ELSE
43− set(imported_location \"$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
44−-!!ENDIF
45− _qt5_LinguistTools_check_file_exists(${imported_location})
46−
47− set_target_properties(Qt5::lrelease PROPERTIES
48−@@ -59,11 +55,7 @@ endif()
49− if (NOT TARGET Qt5::lupdate)
50− add_executable(Qt5::lupdate IMPORTED)
51−
52−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
53−- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
54−-!!ELSE
55− set(imported_location \"$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
56−-!!ENDIF
57− _qt5_LinguistTools_check_file_exists(${imported_location})
58−
59− set_target_properties(Qt5::lupdate PROPERTIES
60−@@ -74,11 +66,7 @@ endif()
61− if (NOT TARGET Qt5::lconvert)
62− add_executable(Qt5::lconvert IMPORTED)
63−
64−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
65−- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
66−-!!ELSE
67− set(imported_location \"$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
68−-!!ENDIF
69− _qt5_LinguistTools_check_file_exists(${imported_location})
70−
71− set_target_properties(Qt5::lconvert PROPERTIES
72−--- a/src/macdeployqt/shared/shared.cpp
73−+++ b/src/macdeployqt/shared/shared.cpp
74−@@ -1241,6 +1241,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
75− if (!QFile(qmlImportScannerPath).exists())
76− qmlImportScannerPath = QCoreApplication::applicationDirPath() + "/qmlimportscanner";
77−
78−+#ifdef NIXPKGS_QMLIMPORTSCANNER
79−+ // Fallback: Nixpkgs hardcoded path
80−+ if (!QFile(qmlImportScannerPath).exists())
81−+ qmlImportScannerPath = NIXPKGS_QMLIMPORTSCANNER;
82−+#endif
83−+
84− // Verify that we found a qmlimportscanner binary
85− if (!QFile(qmlImportScannerPath).exists()) {
86− LogError() << "qmlimportscanner not found at" << qmlImportScannerPath;
pkgs/development/libraries/qt-5/5.11/qtwebengine-darwin-no-platform-check.patchdeleted−37
@@ -1,37 +0,0 @@
1−diff --git a/mkspecs/features/platform.prf b/mkspecs/features/platform.prf
2−--- a/mkspecs/features/platform.prf
3−+++ b/mkspecs/features/platform.prf
4−@@ -38,10 +38,6 @@ defineTest(isPlatformSupported) {
5− return(false)
6− }
7− } else:osx {
8−- !isMinXcodeVersion(7, 3) {
9−- skipBuild("Using Xcode version $$QMAKE_XCODE_VERSION, but at least version 7.3 is required to build Qt WebEngine.")
10−- return(false)
11−- }
12− !clang|intel_icc {
13− skipBuild("Qt WebEngine on macOS requires Clang.")
14− return(false)
15−@@ -52,10 +48,6 @@ defineTest(isPlatformSupported) {
16− skipBuild("Building Qt WebEngine requires macOS version 10.11 or newer.")
17− return(false)
18− }
19−- !isMinOSXSDKVersion(10, 10): {
20−- skipBuild("Building Qt WebEngine requires a macOS SDK version of 10.11 or newer. Current version is $${WEBENGINE_OSX_SDK_PRODUCT_VERSION}.")
21−- return(false)
22−- }
23− } else {
24− skipBuild("Unknown platform. Qt WebEngine only supports Linux, Windows, and macOS.")
25− return(false)
26−diff --git a/src/core/config/mac_osx.pri b/src/core/config/mac_osx.pri
27−--- a/src/core/config/mac_osx.pri
28−+++ b/src/core/config/mac_osx.pri
29−@@ -5,8 +5,6 @@ load(functions)
30− # otherwise query for it.
31− QMAKE_MAC_SDK_VERSION = $$eval(QMAKE_MAC_SDK.$${QMAKE_MAC_SDK}.SDKVersion)
32− isEmpty(QMAKE_MAC_SDK_VERSION) {
33−- QMAKE_MAC_SDK_VERSION = $$system("/usr/bin/xcodebuild -sdk $${QMAKE_MAC_SDK} -version SDKVersion 2>/dev/null")
34−- isEmpty(QMAKE_MAC_SDK_VERSION): error("Could not resolve SDK version for \'$${QMAKE_MAC_SDK}\'")
35− }
36−
37− QMAKE_CLANG_DIR = "/usr"
pkgs/development/libraries/qt-5/5.11/qtwebengine-no-build-skip.patchdeleted−12
@@ -1,12 +0,0 @@
1−diff --git a/qtwebengine.pro b/qtwebengine.pro
2−--- a/qtwebengine.pro
3−+++ b/qtwebengine.pro
4−@@ -5,7 +5,7 @@ runConfigure()
5−
6− !isEmpty(skipBuildReason) {
7− SUBDIRS =
8−- log($${skipBuildReason}$${EOL})
9−+ error($${skipBuildReason}$${EOL})
10− log(QtWebEngine will not be built.$${EOL})
11− }
12−
pkgs/development/libraries/qt-5/5.11/qtwebkit.patchdeleted−12
@@ -1,12 +0,0 @@
1−diff --git a/Source/WebKit2/PlatformQt.cmake b/Source/WebKit2/PlatformQt.cmake
2−--- a/Source/WebKit2/PlatformQt.cmake
3−+++ b/Source/WebKit2/PlatformQt.cmake
4−@@ -261,6 +261,7 @@
5− list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
6− ${GLIB_INCLUDE_DIRS}
7− ${GSTREAMER_INCLUDE_DIRS}
8−+ ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
9− ${Qt5Quick_INCLUDE_DIRS}
10− ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
11− ${SQLITE_INCLUDE_DIR}
12−
pkgs/development/libraries/qt-5/5.11/srcs.nixdeleted−325
@@ -1,325 +0,0 @@
1−# DO NOT EDIT! This file is generated automatically by fetch-kde-qt.sh
2−{ fetchurl, mirror }:
3−
4−{
5− qt3d = {
6− version = "5.11.3";
7− src = fetchurl {
8− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qt3d-everywhere-src-5.11.3.tar.xz";
9− sha256 = "1awyv40jgbb30yp5zxf6j9wq96nmk8zyhbh4fpn9gn35ychmr984";
10− name = "qt3d-everywhere-src-5.11.3.tar.xz";
11− };
12− };
13− qtactiveqt = {
14− version = "5.11.3";
15− src = fetchurl {
16− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtactiveqt-everywhere-src-5.11.3.tar.xz";
17− sha256 = "0g35yhp01c34m91fp5vzzq0d2kzz0yswpjjk5cg36j0ddnfcsh4d";
18− name = "qtactiveqt-everywhere-src-5.11.3.tar.xz";
19− };
20− };
21− qtandroidextras = {
22− version = "5.11.3";
23− src = fetchurl {
24− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtandroidextras-everywhere-src-5.11.3.tar.xz";
25− sha256 = "0clqz10ry70f0v8hbw37fhlwrsr5jddg99yjsk9db250dwbqzq27";
26− name = "qtandroidextras-everywhere-src-5.11.3.tar.xz";
27− };
28− };
29− qtbase = {
30− version = "5.11.3";
31− src = fetchurl {
32− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtbase-everywhere-src-5.11.3.tar.xz";
33− sha256 = "071yc9iz14qs4s8yvrwllyfdzp5yjxsdpvbjxdrf0g5q69vqigy6";
34− name = "qtbase-everywhere-src-5.11.3.tar.xz";
35− };
36− };
37− qtcanvas3d = {
38− version = "5.11.3";
39− src = fetchurl {
40− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtcanvas3d-everywhere-src-5.11.3.tar.xz";
41− sha256 = "0f110z7cmkzns9k00aa5zhzq2fpybfxkd7gdlwzcbhc8hn20986m";
42− name = "qtcanvas3d-everywhere-src-5.11.3.tar.xz";
43− };
44− };
45− qtcharts = {
46− version = "5.11.3";
47− src = fetchurl {
48− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtcharts-everywhere-src-5.11.3.tar.xz";
49− sha256 = "1p4m1nkbbxlkwmbmasx5r83skzssmlcgfzyvj30x2dyrqkmz7627";
50− name = "qtcharts-everywhere-src-5.11.3.tar.xz";
51− };
52− };
53− qtconnectivity = {
54− version = "5.11.3";
55− src = fetchurl {
56− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtconnectivity-everywhere-src-5.11.3.tar.xz";
57− sha256 = "0amks3qad31i7cha85kvcaxvlmmgkc3gm4jdkw2p02ixxfygr30l";
58− name = "qtconnectivity-everywhere-src-5.11.3.tar.xz";
59− };
60− };
61− qtdatavis3d = {
62− version = "5.11.3";
63− src = fetchurl {
64− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtdatavis3d-everywhere-src-5.11.3.tar.xz";
65− sha256 = "1kqwr3avcvcyy4i28vjgxk1bsjj9011zr668hsk1zrjxnnwjwdl3";
66− name = "qtdatavis3d-everywhere-src-5.11.3.tar.xz";
67− };
68− };
69− qtdeclarative = {
70− version = "5.11.3";
71− src = fetchurl {
72− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtdeclarative-everywhere-src-5.11.3.tar.xz";
73− sha256 = "1rhsf9bma2zwwpixk2fsg31x7c1pmsk144npypgc9w86swhkc9lf";
74− name = "qtdeclarative-everywhere-src-5.11.3.tar.xz";
75− };
76− };
77− qtdoc = {
78− version = "5.11.3";
79− src = fetchurl {
80− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtdoc-everywhere-src-5.11.3.tar.xz";
81− sha256 = "06nl8lzrilj8yify5qy4fm9la6dh71aamg19jhvvi657cshiclsq";
82− name = "qtdoc-everywhere-src-5.11.3.tar.xz";
83− };
84− };
85− qtgamepad = {
86− version = "5.11.3";
87− src = fetchurl {
88− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtgamepad-everywhere-src-5.11.3.tar.xz";
89− sha256 = "1k222cx18zq48sfna91hmy427qzk2n2xz3dlyz59iyz72k6915g9";
90− name = "qtgamepad-everywhere-src-5.11.3.tar.xz";
91− };
92− };
93− qtgraphicaleffects = {
94− version = "5.11.3";
95− src = fetchurl {
96− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtgraphicaleffects-everywhere-src-5.11.3.tar.xz";
97− sha256 = "1qjpdzkamf27cg5n1wsf0zk939lcgppgydfjzap9s4fxzj1nkn0l";
98− name = "qtgraphicaleffects-everywhere-src-5.11.3.tar.xz";
99− };
100− };
101− qtimageformats = {
102− version = "5.11.3";
103− src = fetchurl {
104− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtimageformats-everywhere-src-5.11.3.tar.xz";
105− sha256 = "0zq8igsjyyhxsjr43vpaasrqjw3x0g6rwqf8kaz7y9vs7ny63ch4";
106− name = "qtimageformats-everywhere-src-5.11.3.tar.xz";
107− };
108− };
109− qtlocation = {
110− version = "5.11.3";
111− src = fetchurl {
112− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtlocation-everywhere-src-5.11.3.tar.xz";
113− sha256 = "1sq0f41jwmsimv9a1wl2nk5nifjppm5j92rr4n4s7qwnnjjrir2q";
114− name = "qtlocation-everywhere-src-5.11.3.tar.xz";
115− };
116− };
117− qtmacextras = {
118− version = "5.11.3";
119− src = fetchurl {
120− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtmacextras-everywhere-src-5.11.3.tar.xz";
121− sha256 = "1j9sqmcwswr8v9z8mcbm10bj7nz8nv9mir0xsc5123ik1gw2c3lk";
122− name = "qtmacextras-everywhere-src-5.11.3.tar.xz";
123− };
124− };
125− qtmultimedia = {
126− version = "5.11.3";
127− src = fetchurl {
128− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtmultimedia-everywhere-src-5.11.3.tar.xz";
129− sha256 = "0h9wx86zj20n4xc3qnml0i360x2dc1yd2z2af1flj8fwyzppi03j";
130− name = "qtmultimedia-everywhere-src-5.11.3.tar.xz";
131− };
132− };
133− qtnetworkauth = {
134− version = "5.11.3";
135− src = fetchurl {
136− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtnetworkauth-everywhere-src-5.11.3.tar.xz";
137− sha256 = "0dd35698wzg89975vi2ijl2lym495fjizsl03mjixsjnvb1x0q50";
138− name = "qtnetworkauth-everywhere-src-5.11.3.tar.xz";
139− };
140− };
141− qtpurchasing = {
142− version = "5.11.3";
143− src = fetchurl {
144− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtpurchasing-everywhere-src-5.11.3.tar.xz";
145− sha256 = "1fd0gxdj5mrh81iwimq1243i3n47sqv9ik8nslahfh0q3dsx7k8n";
146− name = "qtpurchasing-everywhere-src-5.11.3.tar.xz";
147− };
148− };
149− qtquickcontrols = {
150− version = "5.11.3";
151− src = fetchurl {
152− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtquickcontrols-everywhere-src-5.11.3.tar.xz";
153− sha256 = "0dvmy31qbl76yy0j5y8m7mvnmqyg2c01fmlkn0snvc5h5ah5skjf";
154− name = "qtquickcontrols-everywhere-src-5.11.3.tar.xz";
155− };
156− };
157− qtquickcontrols2 = {
158− version = "5.11.3";
159− src = fetchurl {
160− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtquickcontrols2-everywhere-src-5.11.3.tar.xz";
161− sha256 = "11nhpb0xckv5jjkqj5szr94c2rvyjwr89ch58hh64nsqaav30mpl";
162− name = "qtquickcontrols2-everywhere-src-5.11.3.tar.xz";
163− };
164− };
165− qtremoteobjects = {
166− version = "5.11.3";
167− src = fetchurl {
168− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtremoteobjects-everywhere-src-5.11.3.tar.xz";
169− sha256 = "1d3jzsxfyjhgb6wj9iv1388bv7j6pi08346nmkm1c1a4iykhc0zp";
170− name = "qtremoteobjects-everywhere-src-5.11.3.tar.xz";
171− };
172− };
173− qtscript = {
174− version = "5.11.3";
175− src = fetchurl {
176− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtscript-everywhere-src-5.11.3.tar.xz";
177− sha256 = "027cvggbcvwyz76cn1bl1zvqg0nq7iica1b7yx7xyy0hb36g715v";
178− name = "qtscript-everywhere-src-5.11.3.tar.xz";
179− };
180− };
181− qtscxml = {
182− version = "5.11.3";
183− src = fetchurl {
184− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtscxml-everywhere-src-5.11.3.tar.xz";
185− sha256 = "1mv8mz36v34dckrzy5r41mq3sqznbalrhndk3avz2154xmkjf5qk";
186− name = "qtscxml-everywhere-src-5.11.3.tar.xz";
187− };
188− };
189− qtsensors = {
190− version = "5.11.3";
191− src = fetchurl {
192− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtsensors-everywhere-src-5.11.3.tar.xz";
193− sha256 = "0n88c8xi9pbyh7q1pcqv4yjv6nx62abflj8qgfr4qzb0sp8m6mx7";
194− name = "qtsensors-everywhere-src-5.11.3.tar.xz";
195− };
196− };
197− qtserialbus = {
198− version = "5.11.3";
199− src = fetchurl {
200− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtserialbus-everywhere-src-5.11.3.tar.xz";
201− sha256 = "0vf12jk1ma0v0dlpliw1x9i04iaik1kjkiaby7gaxm2abprxwr2n";
202− name = "qtserialbus-everywhere-src-5.11.3.tar.xz";
203− };
204− };
205− qtserialport = {
206− version = "5.11.3";
207− src = fetchurl {
208− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtserialport-everywhere-src-5.11.3.tar.xz";
209− sha256 = "1nkbfsxzgicwns3k11hhzjxy2hgrigj8xcw2by0jc1j71mnmxi4n";
210− name = "qtserialport-everywhere-src-5.11.3.tar.xz";
211− };
212− };
213− qtspeech = {
214− version = "5.11.3";
215− src = fetchurl {
216− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtspeech-everywhere-src-5.11.3.tar.xz";
217− sha256 = "158p7zqd0vg55gf88jzc3d4f7649ihh80k0m1q46m2yp6fpdjbxr";
218− name = "qtspeech-everywhere-src-5.11.3.tar.xz";
219− };
220− };
221− qtsvg = {
222− version = "5.11.3";
223− src = fetchurl {
224− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtsvg-everywhere-src-5.11.3.tar.xz";
225− sha256 = "14a4rprbj9f9rhixbk7143xdz34d7d39xh9v2sc1w43q9sf2rsi1";
226− name = "qtsvg-everywhere-src-5.11.3.tar.xz";
227− };
228− };
229− qttools = {
230− version = "5.11.3";
231− src = fetchurl {
232− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qttools-everywhere-src-5.11.3.tar.xz";
233− sha256 = "13lzdxxi02yhvx4mflhisl6aqv2fiss5m804cqccd1wvp8dyh1f2";
234− name = "qttools-everywhere-src-5.11.3.tar.xz";
235− };
236− };
237− qttranslations = {
238− version = "5.11.3";
239− src = fetchurl {
240− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qttranslations-everywhere-src-5.11.3.tar.xz";
241− sha256 = "0j8i2kabz22vqb0qj41pkjv848zblqxs71sydc3xcd5av22b517s";
242− name = "qttranslations-everywhere-src-5.11.3.tar.xz";
243− };
244− };
245− qtvirtualkeyboard = {
246− version = "5.11.3";
247− src = fetchurl {
248− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtvirtualkeyboard-everywhere-src-5.11.3.tar.xz";
249− sha256 = "17jb7cbfy5c19fr9frql6q22in3ra3a4fbff0kjykllxb8j40p4c";
250− name = "qtvirtualkeyboard-everywhere-src-5.11.3.tar.xz";
251− };
252− };
253− qtwayland = {
254− version = "5.11.3";
255− src = fetchurl {
256− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwayland-everywhere-src-5.11.3.tar.xz";
257− sha256 = "1chz4wchgkzd45h143i5hkqg0whcgdbj37gkg7j4kj31whllzjb2";
258− name = "qtwayland-everywhere-src-5.11.3.tar.xz";
259− };
260− };
261− qtwebchannel = {
262− version = "5.11.3";
263− src = fetchurl {
264− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwebchannel-everywhere-src-5.11.3.tar.xz";
265− sha256 = "1wrdawlqvcw84h8q52mvbjhp1vkd6fhz6c8ijlg9rw0s3fj4y99w";
266− name = "qtwebchannel-everywhere-src-5.11.3.tar.xz";
267− };
268− };
269− qtwebengine = {
270− version = "5.11.3";
271− src = fetchurl {
272− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwebengine-everywhere-src-5.11.3.tar.xz";
273− sha256 = "1zmqsdais85cdfh2jh8h4a5jcamp1mzdk3vgqm6xnldqf6nrxd2v";
274− name = "qtwebengine-everywhere-src-5.11.3.tar.xz";
275− };
276− };
277− qtwebglplugin = {
278− version = "5.11.3";
279− src = fetchurl {
280− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwebglplugin-everywhere-src-5.11.3.tar.xz";
281− sha256 = "0wqz8lycmi7pffzy0pz5960w109lbk4mkbw0l1lh64avl6clq7b9";
282− name = "qtwebglplugin-everywhere-src-5.11.3.tar.xz";
283− };
284− };
285− qtwebsockets = {
286− version = "5.11.3";
287− src = fetchurl {
288− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwebsockets-everywhere-src-5.11.3.tar.xz";
289− sha256 = "1ffmapfy68xwwbxbg19ng6b5h8v42cf78s21j7rgq49gm70r0402";
290− name = "qtwebsockets-everywhere-src-5.11.3.tar.xz";
291− };
292− };
293− qtwebview = {
294− version = "5.11.3";
295− src = fetchurl {
296− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwebview-everywhere-src-5.11.3.tar.xz";
297− sha256 = "1njmn1n03dp4md8cz58cq2z6bsxd8nwlw0238zmavh7px3jzc9kh";
298− name = "qtwebview-everywhere-src-5.11.3.tar.xz";
299− };
300− };
301− qtwinextras = {
302− version = "5.11.3";
303− src = fetchurl {
304− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtwinextras-everywhere-src-5.11.3.tar.xz";
305− sha256 = "1xf9gc0wqk9jz2ayx29vx0vmm72x9h4qxp2fvgpclns621wyhw72";
306− name = "qtwinextras-everywhere-src-5.11.3.tar.xz";
307− };
308− };
309− qtx11extras = {
310− version = "5.11.3";
311− src = fetchurl {
312− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtx11extras-everywhere-src-5.11.3.tar.xz";
313− sha256 = "11fd2mc20qmnyv1vqhaqad2q6m0i4lmkr432rmqvpkgphpkfp7pr";
314− name = "qtx11extras-everywhere-src-5.11.3.tar.xz";
315− };
316− };
317− qtxmlpatterns = {
318− version = "5.11.3";
319− src = fetchurl {
320− url = "${mirror}/official_releases/qt/5.11/5.11.3/submodules/qtxmlpatterns-everywhere-src-5.11.3.tar.xz";
321− sha256 = "1vhfvgi39miqsx3iq7c9sii2sykq0yfng69b70i0smr20zihpl4b";
322− name = "qtxmlpatterns-everywhere-src-5.11.3.tar.xz";
323− };
324− };
325−}
pkgs/development/libraries/qt-5/5.12/default.nix−9
@@ -80,15 +80,6 @@ let
8080 url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qtbug-77037-workaround.patch?h=packages/qt5-webengine&id=fc77d6b3d5ec74e421b58f199efceb2593cbf951";
8181 sha256 = "1gv733qfdn9746nbqqxzyjx4ijjqkkb7zb71nxax49nna5bri3am";
8282 })
83− # patch for CVE-2019-13720, can be removed when it is included in the next upstream release
84− # https://bugreports.qt.io/browse/QTBUG-1019226
85− (fetchpatch {
86− name = "qtwebengine-CVE-2019-13720.patch";
87− url = "https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=d6e5fc10";
88− sha256 = "0ywc12m196pr6xn7l5xbascihygkjj4pbcgcn9wxvi5ssdr6z46z";
89− extraPrefix = "src/3rdparty/";
90− stripLen = 1;
91− })
9283 ]
9384 ++ optional stdenv.isDarwin ./qtwebengine-darwin-no-platform-check.patch;
9485 qtwebkit = [ ./qtwebkit.patch ]
pkgs/development/libraries/qt-5/5.12/fetch.sh+1−1
@@ -1 +1 @@
1−WGET_ARGS=( http://download.qt.io/official_releases/qt/5.12/5.12.5/submodules/ )
1+WGET_ARGS=( http://download.qt.io/official_releases/qt/5.12/5.12.6/submodules/ )
pkgs/development/libraries/qt-5/5.12/srcs.nix+160−160
@@ -3,323 +3,323 @@
33
44{
55 qt3d = {
6− version = "5.12.5";
6+ version = "5.12.6";
77 src = fetchurl {
8− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qt3d-everywhere-src-5.12.5.tar.xz";
9− sha256 = "2a35b144768c7ad8a9265d16a04f038d9bc51016bd2c4b2b516e374f81ff29c4";
10− name = "qt3d-everywhere-src-5.12.5.tar.xz";
8+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qt3d-everywhere-src-5.12.6.tar.xz";
9+ sha256 = "cf34ce99a2592270abbf32a13fa824d99c76412fc493a3f1c37e37892b198baf";
10+ name = "qt3d-everywhere-src-5.12.6.tar.xz";
1111 };
1212 };
1313 qtactiveqt = {
14− version = "5.12.5";
14+ version = "5.12.6";
1515 src = fetchurl {
16− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtactiveqt-everywhere-src-5.12.5.tar.xz";
17− sha256 = "d673a1269dd900c78dbfe88eb16e086e36d236571722712a64401cdec7b73a40";
18− name = "qtactiveqt-everywhere-src-5.12.5.tar.xz";
16+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtactiveqt-everywhere-src-5.12.6.tar.xz";
17+ sha256 = "c50f082588bf7dad2091a5b67c426791bf36d7d1503c56dc79b9e26444931f09";
18+ name = "qtactiveqt-everywhere-src-5.12.6.tar.xz";
1919 };
2020 };
2121 qtandroidextras = {
22− version = "5.12.5";
22+ version = "5.12.6";
2323 src = fetchurl {
24− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtandroidextras-everywhere-src-5.12.5.tar.xz";
25− sha256 = "f115ccef1e808da7c5d0348f3e245952a2973966f34d18b935f9e3eb16062eab";
26− name = "qtandroidextras-everywhere-src-5.12.5.tar.xz";
24+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtandroidextras-everywhere-src-5.12.6.tar.xz";
25+ sha256 = "a0f15a4ba29abe90de2b2c221efd22ecfb6793590ff9610f85e6e6b6562784fe";
26+ name = "qtandroidextras-everywhere-src-5.12.6.tar.xz";
2727 };
2828 };
2929 qtbase = {
30− version = "5.12.5";
30+ version = "5.12.6";
3131 src = fetchurl {
32− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtbase-everywhere-src-5.12.5.tar.xz";
33− sha256 = "fc8abffbbda9da3e593d8d62b56bc17dbaab13ff71b72915ddda11dabde4d625";
34− name = "qtbase-everywhere-src-5.12.5.tar.xz";
32+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtbase-everywhere-src-5.12.6.tar.xz";
33+ sha256 = "6ab52649d74d7c1728cf4a6cf335d1142b3bf617d476e2857eb7961ef43f9f27";
34+ name = "qtbase-everywhere-src-5.12.6.tar.xz";
3535 };
3636 };
3737 qtcanvas3d = {
38− version = "5.12.5";
38+ version = "5.12.6";
3939 src = fetchurl {
40− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtcanvas3d-everywhere-src-5.12.5.tar.xz";
41− sha256 = "1553e06ce3cc5afb36aed3698b85c00e734eac07f7f41895426bebd84216d80c";
42− name = "qtcanvas3d-everywhere-src-5.12.5.tar.xz";
40+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtcanvas3d-everywhere-src-5.12.6.tar.xz";
41+ sha256 = "2d33e6c944e5a2eed7528fdfe9deadfb1b7a0fcf17bab1f8b83988b1327d9d08";
42+ name = "qtcanvas3d-everywhere-src-5.12.6.tar.xz";
4343 };
4444 };
4545 qtcharts = {
46− version = "5.12.5";
46+ version = "5.12.6";
4747 src = fetchurl {
48− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtcharts-everywhere-src-5.12.5.tar.xz";
49− sha256 = "4c7c30a916ba0100a1635b89f48bc5a8af4cdedac79c3fc18456af54dc0a6608";
50− name = "qtcharts-everywhere-src-5.12.5.tar.xz";
48+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtcharts-everywhere-src-5.12.6.tar.xz";
49+ sha256 = "14dbdb5bb18d774e3b7ac3042a3f349080ab42c2588527ff04123df1c9ccaa3d";
50+ name = "qtcharts-everywhere-src-5.12.6.tar.xz";
5151 };
5252 };
5353 qtconnectivity = {
54− version = "5.12.5";
54+ version = "5.12.6";
5555 src = fetchurl {
56− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtconnectivity-everywhere-src-5.12.5.tar.xz";
57− sha256 = "bdf62c72d689f47c4d17ecdde934d9f85a1164091e58fce02873de259e8de88b";
58− name = "qtconnectivity-everywhere-src-5.12.5.tar.xz";
56+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtconnectivity-everywhere-src-5.12.6.tar.xz";
57+ sha256 = "10f1c6727aedc375a1bfab4bb33fd2111bf2c1dfc19049e361c0f58608ea22da";
58+ name = "qtconnectivity-everywhere-src-5.12.6.tar.xz";
5959 };
6060 };
6161 qtdatavis3d = {
62− version = "5.12.5";
62+ version = "5.12.6";
6363 src = fetchurl {
64− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtdatavis3d-everywhere-src-5.12.5.tar.xz";
65− sha256 = "1de165bf5330c7fb18c6fbb8c0e5cda47fa19c2eaba657b3792fd75e653444f3";
66− name = "qtdatavis3d-everywhere-src-5.12.5.tar.xz";
64+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtdatavis3d-everywhere-src-5.12.6.tar.xz";
65+ sha256 = "414d91aae5e7d3404a0b526f944961871b1abf1fda51f0861d19cb28a2eba4fe";
66+ name = "qtdatavis3d-everywhere-src-5.12.6.tar.xz";
6767 };
6868 };
6969 qtdeclarative = {
70− version = "5.12.5";
70+ version = "5.12.6";
7171 src = fetchurl {
72− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtdeclarative-everywhere-src-5.12.5.tar.xz";
73− sha256 = "22c5323d4b01259e6e352eef1b54129d6dfee00a406f0312905fa7db322b9190";
74− name = "qtdeclarative-everywhere-src-5.12.5.tar.xz";
72+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtdeclarative-everywhere-src-5.12.6.tar.xz";
73+ sha256 = "34b1d1ae5562f1d433e22c255ac1a37a2fb030ef05bf6123d4b9496644b686d3";
74+ name = "qtdeclarative-everywhere-src-5.12.6.tar.xz";
7575 };
7676 };
7777 qtdoc = {
78− version = "5.12.5";
78+ version = "5.12.6";
7979 src = fetchurl {
80− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtdoc-everywhere-src-5.12.5.tar.xz";
81− sha256 = "f1de30227b8854c284e9c23e9c0c44d9fe768880aef826b0f880a44dd7c7538d";
82− name = "qtdoc-everywhere-src-5.12.5.tar.xz";
80+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtdoc-everywhere-src-5.12.6.tar.xz";
81+ sha256 = "82549278120236ece0e02f9bab351319e4469c242ce97b05f269964aee924aac";
82+ name = "qtdoc-everywhere-src-5.12.6.tar.xz";
8383 };
8484 };
8585 qtgamepad = {
86− version = "5.12.5";
86+ version = "5.12.6";
8787 src = fetchurl {
88− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtgamepad-everywhere-src-5.12.5.tar.xz";
89− sha256 = "de88f01d47f7cc5d54a1af783c5fae9f2b0101948ff33b8290f71b2657aded33";
90− name = "qtgamepad-everywhere-src-5.12.5.tar.xz";
88+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtgamepad-everywhere-src-5.12.6.tar.xz";
89+ sha256 = "e1ebc5f3593c5234724663106790fbf1831d4ac8ea50a9d9805d2dd0a1c5b3b3";
90+ name = "qtgamepad-everywhere-src-5.12.6.tar.xz";
9191 };
9292 };
9393 qtgraphicaleffects = {
94− version = "5.12.5";
94+ version = "5.12.6";
9595 src = fetchurl {
96− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtgraphicaleffects-everywhere-src-5.12.5.tar.xz";
97− sha256 = "bdbddba7e0e0d041809a98d97c07da8be8936ec48537335cbaea9b0049c646ad";
98− name = "qtgraphicaleffects-everywhere-src-5.12.5.tar.xz";
96+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtgraphicaleffects-everywhere-src-5.12.6.tar.xz";
97+ sha256 = "ded0327624a13bf7fab07e5fe762473194ed898b0442ef9325498e41c8c077ef";
98+ name = "qtgraphicaleffects-everywhere-src-5.12.6.tar.xz";
9999 };
100100 };
101101 qtimageformats = {
102− version = "5.12.5";
102+ version = "5.12.6";
103103 src = fetchurl {
104− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtimageformats-everywhere-src-5.12.5.tar.xz";
105− sha256 = "9f19394830542fb9e6bde6806b6216b7207f96bff674b91e8e8a8f89699e1f0a";
106− name = "qtimageformats-everywhere-src-5.12.5.tar.xz";
104+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtimageformats-everywhere-src-5.12.6.tar.xz";
105+ sha256 = "330d1c29a135c44bb36b5ffc2ba4f8915dbc446d5d75563523ebcfd373617858";
106+ name = "qtimageformats-everywhere-src-5.12.6.tar.xz";
107107 };
108108 };
109109 qtlocation = {
110− version = "5.12.5";
110+ version = "5.12.6";
111111 src = fetchurl {
112− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtlocation-everywhere-src-5.12.5.tar.xz";
113− sha256 = "12c8b59755abc4ca56e135e8ae3db7c6ba1bd95c779060f10a01393ae1040122";
114− name = "qtlocation-everywhere-src-5.12.5.tar.xz";
112+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtlocation-everywhere-src-5.12.6.tar.xz";
113+ sha256 = "7ae231ca4de3c0915e92bb95440b0ddc7113790b1acb536c9394472e8dde2278";
114+ name = "qtlocation-everywhere-src-5.12.6.tar.xz";
115115 };
116116 };
117117 qtmacextras = {
118− version = "5.12.5";
118+ version = "5.12.6";
119119 src = fetchurl {
120− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtmacextras-everywhere-src-5.12.5.tar.xz";
121− sha256 = "984c3c95834aaa6fd85234ab1987a79662911c510e419611ce88fb4756313194";
122− name = "qtmacextras-everywhere-src-5.12.5.tar.xz";
120+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtmacextras-everywhere-src-5.12.6.tar.xz";
121+ sha256 = "eae25b8858fef348667b938f5c88a014ee78945c419e4e6d856d4a6adc5e43a3";
122+ name = "qtmacextras-everywhere-src-5.12.6.tar.xz";
123123 };
124124 };
125125 qtmultimedia = {
126− version = "5.12.5";
126+ version = "5.12.6";
127127 src = fetchurl {
128− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtmultimedia-everywhere-src-5.12.5.tar.xz";
129− sha256 = "d5a0a4fddc5ef14d641160a1fc0011b190ff8d9f19009498d586516b8ee3479c";
130− name = "qtmultimedia-everywhere-src-5.12.5.tar.xz";
128+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtmultimedia-everywhere-src-5.12.6.tar.xz";
129+ sha256 = "9f580e8962ca6a09608570e77b38d7c3f71d344ff6de1c39bc6905226b679570";
130+ name = "qtmultimedia-everywhere-src-5.12.6.tar.xz";
131131 };
132132 };
133133 qtnetworkauth = {
134− version = "5.12.5";
134+ version = "5.12.6";
135135 src = fetchurl {
136− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtnetworkauth-everywhere-src-5.12.5.tar.xz";
137− sha256 = "0933475a2d30550c70ce4026c72678cbfdac73211593c78d442e038ef531a9f1";
138− name = "qtnetworkauth-everywhere-src-5.12.5.tar.xz";
136+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtnetworkauth-everywhere-src-5.12.6.tar.xz";
137+ sha256 = "ea122d86a960863bbe0e0f4b5a12f0a376455beed3c26f1b61926e065b366abd";
138+ name = "qtnetworkauth-everywhere-src-5.12.6.tar.xz";
139139 };
140140 };
141141 qtpurchasing = {
142− version = "5.12.5";
142+ version = "5.12.6";
143143 src = fetchurl {
144− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtpurchasing-everywhere-src-5.12.5.tar.xz";
145− sha256 = "7bcebc4985d387f3fa4ffcc19eada1f4f0f000ed0fd3e1d1dc37eb1db0be615b";
146− name = "qtpurchasing-everywhere-src-5.12.5.tar.xz";
144+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtpurchasing-everywhere-src-5.12.6.tar.xz";
145+ sha256 = "1fa0b7e3da4755b64559177f507718320c1aa9e66ec49e17595e04c3f3af70cd";
146+ name = "qtpurchasing-everywhere-src-5.12.6.tar.xz";
147147 };
148148 };
149149 qtquickcontrols = {
150− version = "5.12.5";
150+ version = "5.12.6";
151151 src = fetchurl {
152− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtquickcontrols-everywhere-src-5.12.5.tar.xz";
153− sha256 = "46deaefbdac3daa576c748e807956f5f82b2318923b1a36e434a3ff32d1d2559";
154− name = "qtquickcontrols-everywhere-src-5.12.5.tar.xz";
152+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtquickcontrols-everywhere-src-5.12.6.tar.xz";
153+ sha256 = "c48d96a187ff924f1ae4b4abe9cc073adeb06a6c2b07c4191aa595ad22df2c99";
154+ name = "qtquickcontrols-everywhere-src-5.12.6.tar.xz";
155155 };
156156 };
157157 qtquickcontrols2 = {
158− version = "5.12.5";
158+ version = "5.12.6";
159159 src = fetchurl {
160− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtquickcontrols2-everywhere-src-5.12.5.tar.xz";
161− sha256 = "d744bdc492486db6cb521b1d4891e2358719399825ca1cf2a50968a80f6acb8f";
162− name = "qtquickcontrols2-everywhere-src-5.12.5.tar.xz";
160+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtquickcontrols2-everywhere-src-5.12.6.tar.xz";
161+ sha256 = "5cab0712f946405db269851b96cca02ef8ba98f3ee2c4fa9c0877dba3808a970";
162+ name = "qtquickcontrols2-everywhere-src-5.12.6.tar.xz";
163163 };
164164 };
165165 qtremoteobjects = {
166− version = "5.12.5";
166+ version = "5.12.6";
167167 src = fetchurl {
168− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtremoteobjects-everywhere-src-5.12.5.tar.xz";
169− sha256 = "acf131af93dd1fefbf30c7e03e29b8a1da3180e00c49f95c14a1cb6158cfeacd";
170− name = "qtremoteobjects-everywhere-src-5.12.5.tar.xz";
168+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtremoteobjects-everywhere-src-5.12.6.tar.xz";
169+ sha256 = "49b5353d020fb6ab9bdf90c941a4b3acc6b036266f6c68a42fc44a7ac151d699";
170+ name = "qtremoteobjects-everywhere-src-5.12.6.tar.xz";
171171 };
172172 };
173173 qtscript = {
174− version = "5.12.5";
174+ version = "5.12.6";
175175 src = fetchurl {
176− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtscript-everywhere-src-5.12.5.tar.xz";
177− sha256 = "0083734ae827840334b774decb15de37f1b4ea5c88e442e2f485c530f24f1df4";
178− name = "qtscript-everywhere-src-5.12.5.tar.xz";
176+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtscript-everywhere-src-5.12.6.tar.xz";
177+ sha256 = "a18082ad338e2378cccab932045804ad3077ec924fed2efc59d4b726d622777c";
178+ name = "qtscript-everywhere-src-5.12.6.tar.xz";
179179 };
180180 };
181181 qtscxml = {
182− version = "5.12.5";
182+ version = "5.12.6";
183183 src = fetchurl {
184− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtscxml-everywhere-src-5.12.5.tar.xz";
185− sha256 = "6f1ec74100cdb2e7dfc3535e09d356fc53ba42e61b32fc3b93d5a7efed49960c";
186− name = "qtscxml-everywhere-src-5.12.5.tar.xz";
184+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtscxml-everywhere-src-5.12.6.tar.xz";
185+ sha256 = "53d7837c8b5b1f9beb26cb64ea4334211218533e0126167e4e7e75238f7ac68b";
186+ name = "qtscxml-everywhere-src-5.12.6.tar.xz";
187187 };
188188 };
189189 qtsensors = {
190− version = "5.12.5";
190+ version = "5.12.6";
191191 src = fetchurl {
192− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtsensors-everywhere-src-5.12.5.tar.xz";
193− sha256 = "e3a86a706f475bb23fc874de56026482de223ebd24f8cb4e94a28d1985ca0b85";
194− name = "qtsensors-everywhere-src-5.12.5.tar.xz";
192+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtsensors-everywhere-src-5.12.6.tar.xz";
193+ sha256 = "59dba4c0bc72846d938e0862f14d8064fb664d893f270a41d3abf4e871290ef5";
194+ name = "qtsensors-everywhere-src-5.12.6.tar.xz";
195195 };
196196 };
197197 qtserialbus = {
198− version = "5.12.5";
198+ version = "5.12.6";
199199 src = fetchurl {
200− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtserialbus-everywhere-src-5.12.5.tar.xz";
201− sha256 = "8474ae61a703c56e327ae0755c27643f2eafe0d915e8c6afb21728548dc02c22";
202− name = "qtserialbus-everywhere-src-5.12.5.tar.xz";
200+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtserialbus-everywhere-src-5.12.6.tar.xz";
201+ sha256 = "071b421282118c507a996e3cee4070f2c545335dfd891a44bf54100935cff5de";
202+ name = "qtserialbus-everywhere-src-5.12.6.tar.xz";
203203 };
204204 };
205205 qtserialport = {
206− version = "5.12.5";
206+ version = "5.12.6";
207207 src = fetchurl {
208− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtserialport-everywhere-src-5.12.5.tar.xz";
209− sha256 = "f8ef0321a59ecfe2c72adc2ee220e0047403439a3c7b9efb719b1476af1fb862";
210− name = "qtserialport-everywhere-src-5.12.5.tar.xz";
208+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtserialport-everywhere-src-5.12.6.tar.xz";
209+ sha256 = "77d0def93078fb5d9de6faa9ccff05cce5b934899e856b04bcf7f721a4e190be";
210+ name = "qtserialport-everywhere-src-5.12.6.tar.xz";
211211 };
212212 };
213213 qtspeech = {
214− version = "5.12.5";
214+ version = "5.12.6";
215215 src = fetchurl {
216− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtspeech-everywhere-src-5.12.5.tar.xz";
217− sha256 = "f94c0cd7236d1a20d97d314d2c17c45c967cd7f24b869c43f5f46253f436f25b";
218− name = "qtspeech-everywhere-src-5.12.5.tar.xz";
216+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtspeech-everywhere-src-5.12.6.tar.xz";
217+ sha256 = "27ae7b2c7073377a617f32b0f4adfc1807774f02d13469ed4bcd282799cf878a";
218+ name = "qtspeech-everywhere-src-5.12.6.tar.xz";
219219 };
220220 };
221221 qtsvg = {
222− version = "5.12.5";
222+ version = "5.12.6";
223223 src = fetchurl {
224− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtsvg-everywhere-src-5.12.5.tar.xz";
225− sha256 = "75a791cf749f671d7ea9090b403ca513f745795018db512e7eecbf418b679840";
226− name = "qtsvg-everywhere-src-5.12.5.tar.xz";
224+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtsvg-everywhere-src-5.12.6.tar.xz";
225+ sha256 = "46243e6c425827ab4e91fbe31567f683ff14cb01d12f9f7543a83a571228ef8f";
226+ name = "qtsvg-everywhere-src-5.12.6.tar.xz";
227227 };
228228 };
229229 qttools = {
230− version = "5.12.5";
230+ version = "5.12.6";
231231 src = fetchurl {
232− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qttools-everywhere-src-5.12.5.tar.xz";
233− sha256 = "28e095047b4985437dd66120cbcb49ac091bf4f12576ecad7ebc781b7dd44025";
234− name = "qttools-everywhere-src-5.12.5.tar.xz";
232+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qttools-everywhere-src-5.12.6.tar.xz";
233+ sha256 = "e94991c7885c2650cefd71189873e45b1d64d6042e439a0a0d9652c191d3c777";
234+ name = "qttools-everywhere-src-5.12.6.tar.xz";
235235 };
236236 };
237237 qttranslations = {
238− version = "5.12.5";
238+ version = "5.12.6";
239239 src = fetchurl {
240− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qttranslations-everywhere-src-5.12.5.tar.xz";
241− sha256 = "72eb6317190fdcc3f8de37996adc646ab8772988766bacaab60a5bcc7d6a3f2a";
242− name = "qttranslations-everywhere-src-5.12.5.tar.xz";
240+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qttranslations-everywhere-src-5.12.6.tar.xz";
241+ sha256 = "798ac44414206898d0192653118de3f115c59016e2bf82ad0c659f9f8c864768";
242+ name = "qttranslations-everywhere-src-5.12.6.tar.xz";
243243 };
244244 };
245245 qtvirtualkeyboard = {
246− version = "5.12.5";
246+ version = "5.12.6";
247247 src = fetchurl {
248− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtvirtualkeyboard-everywhere-src-5.12.5.tar.xz";
249− sha256 = "786d745b34b1f145073488d492325e98bcde81b07ab984032ea5eb2fb52e6e5e";
250− name = "qtvirtualkeyboard-everywhere-src-5.12.5.tar.xz";
248+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtvirtualkeyboard-everywhere-src-5.12.6.tar.xz";
249+ sha256 = "04699888d6e1e8e04db8043a37212fa3b1fcb1b23aef41c2f3ae7a4278e34d2c";
250+ name = "qtvirtualkeyboard-everywhere-src-5.12.6.tar.xz";
251251 };
252252 };
253253 qtwayland = {
254− version = "5.12.5";
254+ version = "5.12.6";
255255 src = fetchurl {
256− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwayland-everywhere-src-5.12.5.tar.xz";
257− sha256 = "29fd31267149451f93faa15f031e0a14506e704086033f70d51479522c6f3846";
258− name = "qtwayland-everywhere-src-5.12.5.tar.xz";
256+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwayland-everywhere-src-5.12.6.tar.xz";
257+ sha256 = "fa9c6aa84ddc0334b44f0f47d69569e496e5d9f3a1ed67aab42214854d2351c4";
258+ name = "qtwayland-everywhere-src-5.12.6.tar.xz";
259259 };
260260 };
261261 qtwebchannel = {
262− version = "5.12.5";
262+ version = "5.12.6";
263263 src = fetchurl {
264− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwebchannel-everywhere-src-5.12.5.tar.xz";
265− sha256 = "9f1d1ac20722ee053ecf071d4ec0070a45a765cb67b6e31add61004fb4b3c5e8";
266− name = "qtwebchannel-everywhere-src-5.12.5.tar.xz";
264+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwebchannel-everywhere-src-5.12.6.tar.xz";
265+ sha256 = "2745d1703de1a749405727a74786184c950ba7465dc5d02e2f39f51635dbc8d7";
266+ name = "qtwebchannel-everywhere-src-5.12.6.tar.xz";
267267 };
268268 };
269269 qtwebengine = {
270− version = "5.12.5";
270+ version = "5.12.6";
271271 src = fetchurl {
272− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwebengine-everywhere-src-5.12.5.tar.xz";
273− sha256 = "31881130e69eb8336e9480f9f33cd5a93e86de8d7323c0ae1893e1a72ce70743";
274− name = "qtwebengine-everywhere-src-5.12.5.tar.xz";
272+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwebengine-everywhere-src-5.12.6.tar.xz";
273+ sha256 = "caa5f257c3bc33c1d2fcb9b7cd414fd5c46e8eee8a103231ab28d592a0058621";
274+ name = "qtwebengine-everywhere-src-5.12.6.tar.xz";
275275 };
276276 };
277277 qtwebglplugin = {
278− version = "5.12.5";
278+ version = "5.12.6";
279279 src = fetchurl {
280− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwebglplugin-everywhere-src-5.12.5.tar.xz";
281− sha256 = "aac3b2b2e5b6f26dd7abba6eab616777fecbb4d06de05ddab68c1296652bc4f7";
282− name = "qtwebglplugin-everywhere-src-5.12.5.tar.xz";
280+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwebglplugin-everywhere-src-5.12.6.tar.xz";
281+ sha256 = "21d88852f69f0f06c5899e61fe76b2cefc2b65be4ed3c334ec01431ba16f50dd";
282+ name = "qtwebglplugin-everywhere-src-5.12.6.tar.xz";
283283 };
284284 };
285285 qtwebsockets = {
286− version = "5.12.5";
286+ version = "5.12.6";
287287 src = fetchurl {
288− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwebsockets-everywhere-src-5.12.5.tar.xz";
289− sha256 = "5d58e697c49c0ea19a8299deba84b5360dca8c336a1636d38de0351757293262";
290− name = "qtwebsockets-everywhere-src-5.12.5.tar.xz";
288+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwebsockets-everywhere-src-5.12.6.tar.xz";
289+ sha256 = "f00bfbaa73e60a4c3371e729167d7acb465cbb2db32535d745982cab21fed61e";
290+ name = "qtwebsockets-everywhere-src-5.12.6.tar.xz";
291291 };
292292 };
293293 qtwebview = {
294− version = "5.12.5";
294+ version = "5.12.6";
295295 src = fetchurl {
296− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwebview-everywhere-src-5.12.5.tar.xz";
297− sha256 = "a6d4d8c335cd6838f4638874fcd67655e80db569ed567a774a84f6bf7d332f26";
298− name = "qtwebview-everywhere-src-5.12.5.tar.xz";
296+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwebview-everywhere-src-5.12.6.tar.xz";
297+ sha256 = "42c0623c1c066620ab1afc3736a4a5f42115f9c190dafdf643e16ccec6e7727a";
298+ name = "qtwebview-everywhere-src-5.12.6.tar.xz";
299299 };
300300 };
301301 qtwinextras = {
302− version = "5.12.5";
302+ version = "5.12.6";
303303 src = fetchurl {
304− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtwinextras-everywhere-src-5.12.5.tar.xz";
305− sha256 = "7ee2fc73bc95c5e36e8ed2d02fc89822d56c406c540fbfa52bb0e3929ff2f93d";
306− name = "qtwinextras-everywhere-src-5.12.5.tar.xz";
304+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtwinextras-everywhere-src-5.12.6.tar.xz";
305+ sha256 = "02c2b2393073a22498a5645faed34040428ace9cf09f18e2f12e75e31be54bea";
306+ name = "qtwinextras-everywhere-src-5.12.6.tar.xz";
307307 };
308308 };
309309 qtx11extras = {
310− version = "5.12.5";
310+ version = "5.12.6";
311311 src = fetchurl {
312− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtx11extras-everywhere-src-5.12.5.tar.xz";
313− sha256 = "89425af3e48b040878c6a64ace58c17a83b87c9330e6366b09a41d6797062a68";
314− name = "qtx11extras-everywhere-src-5.12.5.tar.xz";
312+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtx11extras-everywhere-src-5.12.6.tar.xz";
313+ sha256 = "5f3991f557116034731ed059895e73b5d34e1b22e85536a8eb6e92350b3a1d6b";
314+ name = "qtx11extras-everywhere-src-5.12.6.tar.xz";
315315 };
316316 };
317317 qtxmlpatterns = {
318− version = "5.12.5";
318+ version = "5.12.6";
319319 src = fetchurl {
320− url = "${mirror}/official_releases/qt/5.12/5.12.5/submodules/qtxmlpatterns-everywhere-src-5.12.5.tar.xz";
321− sha256 = "b905d9107f87798ef0f142942fc45c0f63fc113522ab041e791d3cb744a8babd";
322− name = "qtxmlpatterns-everywhere-src-5.12.5.tar.xz";
320+ url = "${mirror}/official_releases/qt/5.12/5.12.6/submodules/qtxmlpatterns-everywhere-src-5.12.6.tar.xz";
321+ sha256 = "76977bc834e6c6118ae2bab31e68ae54843358936b03e432d919ad15cd2184d0";
322+ name = "qtxmlpatterns-everywhere-src-5.12.6.tar.xz";
323323 };
324324 };
325325}
pkgs/development/libraries/qt-5/5.9/default.nixdeleted−179
@@ -1,179 +0,0 @@
1−/*
2−
3−# Updates
4−
5−Before a major version update, make a copy of this directory. (We like to
6−keep the old version around for a short time after major updates.) Add a
7−top-level attribute to `top-level/all-packages.nix`.
8−
9−1. Update the URL in `pkgs/development/libraries/qt-5/$VERSION/fetch.sh`.
10−2. From the top of the Nixpkgs tree, run
11− `./maintainers/scripts/fetch-kde-qt.sh > pkgs/development/libraries/qt-5/$VERSION/srcs.nix`.
12−3. Check that the new packages build correctly.
13−4. Commit the changes and open a pull request.
14−
15−*/
16−
17−{
18− newScope,
19− stdenv, fetchurl, fetchpatch, makeSetupHook, makeWrapper,
20− bison, cups ? null, harfbuzz, libGL, perl,
21− gstreamer, gst-plugins-base, gtk3, dconf,
22−
23− # options
24− developerBuild ? false,
25− decryptSslTraffic ? false,
26− debug ? false,
27−}:
28−
29−with stdenv.lib;
30−
31−let
32−
33− qtCompatVersion = srcs.qtbase.version;
34−
35− mirror = "http://download.qt.io";
36− srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
37−
38− patches = {
39− qtbase = [
40− ./qtbase.patch
41− ./qtbase-fixguicmake.patch
42− ./qtbase-openssl_1_1.patch
43− ];
44− qtdeclarative = [ ./qtdeclarative.patch ];
45− qtscript = [
46− ./qtscript.patch
47− # needed due to changes in gcc 8.3, see https://bugreports.qt.io/browse/QTBUG-74196
48− # fixed in qtscript 5.12.2
49− (fetchpatch {
50− url = "https://github.com/qt/qtscript/commit/97ec1d1882a83c23c91f0f7daea48e05858d8c32.diff";
51− sha256 = "0khrapq13xzvxckzc9l7gqyjwibyd98vyqy6gmyhvsbm2kq8n6wi";
52− })
53− ];
54− qtserialport = [ ./qtserialport.patch ];
55− qttools = [ ./qttools.patch ];
56− qtwebengine = [
57− ./qtwebengine-no-build-skip.patch
58− # https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/707
59− # https://bugreports.qt.io/browse/QTBUG-77037
60− (fetchpatch {
61− name = "fix-build-with-pulseaudio-13.0.patch";
62− url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qtbug-77037-workaround.patch?h=packages/qt5-webengine&id=fc77d6b3d5ec74e421b58f199efceb2593cbf951";
63− sha256 = "1gv733qfdn9746nbqqxzyjx4ijjqkkb7zb71nxax49nna5bri3am";
64− })
65− ] ++ optional stdenv.cc.isClang ./qtwebengine-clang-fix.patch
66− ++ optional stdenv.isDarwin ./qtwebengine-darwin-no-platform-check.patch;
67−
68− qtwebkit = [ ./qtwebkit.patch ];
69− qtvirtualkeyboard = [
70− (fetchpatch {
71− name = "CVE-2018-19865-A.patch";
72− url = "https://codereview.qt-project.org/gitweb?p=qt/qtvirtualkeyboard.git;a=patch;h=61780a113f02b3c62fb14516fe8ea47d91f9ed9a";
73− sha256 = "0jd4nzaz9ndm9ryvrkav7kjs437l661288diklhbmgh249f8gki0";
74− })
75− (fetchpatch {
76− name = "CVE-2018-19865-B.patch";
77− url = "https://codereview.qt-project.org/gitweb?p=qt/qtvirtualkeyboard.git;a=patch;h=c0ac7a4c684e2fed60a72ceee53da89eea3f95a7";
78− sha256 = "0yvxrx5vx6845vgnq8ml3q93y61py5j0bvhqj7nqvpbmyj1wy1p3";
79−
80− })
81− (fetchpatch {
82− name = "CVE-2018-19865-C.patch";
83− url = "https://codereview.qt-project.org/gitweb?p=qt/qtvirtualkeyboard.git;a=patch;h=a2e7b8412f56841e12ed20a39f4a38e32d3c1e30";
84− sha256 = "1yijysa9gy5xbxndx5ri0dkfrjqja0d1bsx52qz4mhzi4pkbib02";
85− })
86− ];
87−
88− };
89−
90− qtModule =
91− import ../qtModule.nix
92− {
93− inherit perl;
94− inherit (stdenv) lib;
95− # Use a variant of mkDerivation that does not include wrapQtApplications
96− # to avoid cyclic dependencies between Qt modules.
97− mkDerivation =
98− import ../mkDerivation.nix
99− { inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; }
100− stdenv.mkDerivation;
101− }
102− { inherit self srcs patches; };
103−
104− addPackages = self: with self;
105− let
106− callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
107− in {
108−
109− mkDerivationWith =
110− import ../mkDerivation.nix
111− { inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; };
112−
113− mkDerivation = mkDerivationWith stdenv.mkDerivation;
114−
115− qtbase = callPackage ../modules/qtbase.nix {
116− inherit (srcs.qtbase) src version;
117− patches = patches.qtbase;
118− inherit bison cups harfbuzz libGL;
119− withGtk3 = true; inherit dconf gtk3;
120− inherit developerBuild decryptSslTraffic;
121− };
122−
123− qtcharts = callPackage ../modules/qtcharts.nix {};
124− qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
125− qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
126− qtdoc = callPackage ../modules/qtdoc.nix {};
127− qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
128− qtimageformats = callPackage ../modules/qtimageformats.nix {};
129− qtlocation = callPackage ../modules/qtlocation.nix {};
130− qtmacextras = callPackage ../modules/qtmacextras.nix {};
131− qtmultimedia = callPackage ../modules/qtmultimedia.nix {
132− inherit gstreamer gst-plugins-base;
133− };
134− qtnetworkauth = callPackage ../modules/qtnetworkauth.nix {};
135− qtquick1 = null;
136− qtquickcontrols = callPackage ../modules/qtquickcontrols.nix {};
137− qtquickcontrols2 = callPackage ../modules/qtquickcontrols2.nix {};
138− qtscript = callPackage ../modules/qtscript.nix {};
139− qtsensors = callPackage ../modules/qtsensors.nix {};
140− qtserialport = callPackage ../modules/qtserialport.nix {};
141− qtsvg = callPackage ../modules/qtsvg.nix {};
142− qttools = callPackage ../modules/qttools.nix {};
143− qttranslations = callPackage ../modules/qttranslations.nix {};
144− qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {};
145− qtwayland = callPackage ../modules/qtwayland.nix {};
146− qtwebchannel = callPackage ../modules/qtwebchannel.nix {};
147− qtwebengine = callPackage ../modules/qtwebengine.nix {};
148− qtwebkit = callPackage ../modules/qtwebkit.nix {};
149− qtwebsockets = callPackage ../modules/qtwebsockets.nix {};
150− qtx11extras = callPackage ../modules/qtx11extras.nix {};
151− qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
152−
153− env = callPackage ../qt-env.nix {};
154− full = env "qt-full-${qtbase.version}" ([
155− qtcharts qtconnectivity qtdeclarative qtdoc qtgraphicaleffects
156− qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2
157− qtscript qtsensors qtserialport qtsvg qttools qttranslations
158− qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets
159− qtx11extras qtxmlpatterns
160− ] ++ optional (!stdenv.isDarwin) qtwayland
161− ++ optional (stdenv.isDarwin) qtmacextras);
162−
163− qmake = makeSetupHook {
164− deps = [ self.qtbase.dev ];
165− substitutions = {
166− fix_qmake_libtool = ../hooks/fix-qmake-libtool.sh;
167− };
168− } ../hooks/qmake-hook.sh;
169−
170− wrapQtAppsHook = makeSetupHook {
171− deps =
172− [ self.qtbase.dev makeWrapper ]
173− ++ optional stdenv.isLinux self.qtwayland.dev;
174− } ../hooks/wrap-qt-apps-hook.sh;
175− };
176−
177− self = makeScope newScope addPackages;
178−
179−in self
pkgs/development/libraries/qt-5/5.9/fetch.shdeleted−1
@@ -1 +0,0 @@
1−WGET_ARGS=( http://download.qt.io/official_releases/qt/5.9/5.9.7/submodules/ )
pkgs/development/libraries/qt-5/5.9/qtbase-fixguicmake.patchdeleted−30
@@ -1,30 +0,0 @@
1−diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
2−index 0bbc871..3673634 100644
3−--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
4−+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
5−@@ -286,7 +286,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
6− macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION)
7− set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
8−
9−- set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
10−+ set(imported_location \"${PLUGIN_LOCATION}\")
11− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
12− set_target_properties(Qt5::${Plugin} PROPERTIES
13− \"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
14−diff --git a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
15−index 5baf0fd..3583745 100644
16−--- a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
17−+++ b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
18−@@ -2,10 +2,10 @@
19− add_library(Qt5::$$CMAKE_PLUGIN_NAME MODULE IMPORTED)
20−
21− !!IF !isEmpty(CMAKE_RELEASE_TYPE)
22−-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
23−+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
24− !!ENDIF
25− !!IF !isEmpty(CMAKE_DEBUG_TYPE)
26−-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
27−+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
28− !!ENDIF
29−
30− list(APPEND Qt5$${CMAKE_MODULE_NAME}_PLUGINS Qt5::$$CMAKE_PLUGIN_NAME)
pkgs/development/libraries/qt-5/5.9/qtbase-openssl_1_1.patchdeleted−3985
@@ -1,3985 +0,0 @@
1−commit 2d88fc0ce4ac76924a65ffd797183de9422ba672
2−Author: Andreas Rammhold <andreas@rammhold.de>
3−Date: Wed Mar 6 00:18:51 2019 +0100
4−
5− openssl1.1 compat
6−
7−diff --git a/config.tests/openssl/openssl.cpp b/config.tests/openssl/openssl.cpp
8−index 6c8a9e8f19..d33b62389c 100644
9−--- a/config.tests/openssl/openssl.cpp
10−+++ b/config.tests/openssl/openssl.cpp
11−@@ -39,8 +39,8 @@
12−
13− #include <openssl/opensslv.h>
14−
15−-#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x0090700fL || OPENSSL_VERSION_NUMBER-0 >= 0x10100000L
16−-# error "OpenSSL >= 0.9.7, and < 1.1.0 is required"
17−+#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x0090700fL
18−+# error "OpenSSL >= 0.9.7 is required"
19− #endif
20−
21− #include <openssl/ssl.h>
22−diff --git a/config.tests/openssl11/openssl.cpp b/config.tests/openssl11/openssl.cpp
23−new file mode 100644
24−index 0000000000..c20cc59deb
25−--- /dev/null
26−+++ b/config.tests/openssl11/openssl.cpp
27−@@ -0,0 +1,48 @@
28−+/****************************************************************************
29−+**
30−+** Copyright (C) 2017 The Qt Company Ltd.
31−+** Contact: https://www.qt.io/licensing/
32−+**
33−+** This file is part of the config.tests of the Qt Toolkit.
34−+**
35−+** $QT_BEGIN_LICENSE:LGPL$
36−+** Commercial License Usage
37−+** Licensees holding valid commercial Qt licenses may use this file in
38−+** accordance with the commercial license agreement provided with the
39−+** Software or, alternatively, in accordance with the terms contained in
40−+** a written agreement between you and The Qt Company. For licensing terms
41−+** and conditions see https://www.qt.io/terms-conditions. For further
42−+** information use the contact form at https://www.qt.io/contact-us.
43−+**
44−+** GNU Lesser General Public License Usage
45−+** Alternatively, this file may be used under the terms of the GNU Lesser
46−+** General Public License version 3 as published by the Free Software
47−+** Foundation and appearing in the file LICENSE.LGPL3 included in the
48−+** packaging of this file. Please review the following information to
49−+** ensure the GNU Lesser General Public License version 3 requirements
50−+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
51−+**
52−+** GNU General Public License Usage
53−+** Alternatively, this file may be used under the terms of the GNU
54−+** General Public License version 2.0 or (at your option) the GNU General
55−+** Public license version 3 or any later version approved by the KDE Free
56−+** Qt Foundation. The licenses are as published by the Free Software
57−+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
58−+** included in the packaging of this file. Please review the following
59−+** information to ensure the GNU General Public License requirements will
60−+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
61−+** https://www.gnu.org/licenses/gpl-3.0.html.
62−+**
63−+** $QT_END_LICENSE$
64−+**
65−+****************************************************************************/
66−+
67−+#include <openssl/opensslv.h>
68−+
69−+#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10100000L
70−+# error "OpenSSL >= 1.1 is required"
71−+#endif
72−+
73−+int main()
74−+{
75−+}
76−diff --git a/config.tests/openssl11/openssl11.pro b/config.tests/openssl11/openssl11.pro
77−new file mode 100644
78−index 0000000000..a023aee4aa
79−--- /dev/null
80−+++ b/config.tests/openssl11/openssl11.pro
81−@@ -0,0 +1,2 @@
82−+SOURCES = openssl.cpp
83−+CONFIG -= x11 qt
84−diff --git a/src/network/configure.json b/src/network/configure.json
85−index 2cf90ed94b..a021c0734b 100644
86−--- a/src/network/configure.json
87−+++ b/src/network/configure.json
88−@@ -77,6 +77,17 @@
89− },
90− { "libs": "-lssl -lcrypto", "condition": "!config.win32" }
91− ]
92−+ },
93−+ "openssl11": {
94−+ "label": "OpenSSL v. 1.1 support",
95−+ "type": "compile",
96−+ "test": "openssl11",
97−+ "sources": [
98−+ {
99−+ "comment": "placeholder for OPENSSL_PATH",
100−+ "libs": ""
101−+ }
102−+ ]
103− }
104− },
105−
106−@@ -182,7 +193,7 @@
107− "enable": "input.openssl == 'yes' || input.openssl == 'linked' || input.openssl == 'runtime'",
108− "disable": "input.openssl == 'no' || input.ssl == 'no'",
109− "autoDetect": "!config.winrt",
110−- "condition": "!features.securetransport && (features.openssl-linked || libs.openssl_headers)",
111−+ "condition": "!features.securetransport && (features.openssl-linked || libs.openssl_headers || feature.opensslv11)",
112− "output": [
113− "privateFeature",
114− { "type": "publicQtConfig", "condition": "!features.openssl-linked" },
115−@@ -193,7 +204,7 @@
116− "label": " Qt directly linked to OpenSSL",
117− "enable": "input.openssl == 'linked'",
118− "disable": "input.openssl != 'linked'",
119−- "condition": "!features.securetransport && libs.openssl",
120−+ "condition": "!features.securetransport && (libs.openssl || feature.opensslv11)",
121− "output": [
122− "privateFeature",
123− { "type": "define", "name": "QT_LINKED_OPENSSL" }
124−@@ -213,6 +224,11 @@
125− "condition": "config.winrt || features.securetransport || features.openssl",
126− "output": [ "publicFeature", "feature" ]
127− },
128−+ "opensslv11": {
129−+ "label": "OpenSSL v. 1.1",
130−+ "condition": "libs.openssl11",
131−+ "output": ["publicFeature", "feature"]
132−+ },
133− "sctp": {
134− "label": "SCTP",
135− "autoDetect": false,
136−diff --git a/src/network/ssl/qsslcertificate_openssl.cpp b/src/network/ssl/qsslcertificate_openssl.cpp
137−index 28b7eda54a..71e514a025 100644
138−--- a/src/network/ssl/qsslcertificate_openssl.cpp
139−+++ b/src/network/ssl/qsslcertificate_openssl.cpp
140−@@ -1,6 +1,7 @@
141− /****************************************************************************
142− **
143−-** Copyright (C) 2016 The Qt Company Ltd.
144−+** Copyright (C) 2017 The Qt Company Ltd.
145−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
146− ** Contact: https://www.qt.io/licensing/
147− **
148− ** This file is part of the QtNetwork module of the Qt Toolkit.
149−@@ -64,12 +65,14 @@ bool QSslCertificate::operator==(const QSslCertificate &other) const
150− uint qHash(const QSslCertificate &key, uint seed) Q_DECL_NOTHROW
151− {
152− if (X509 * const x509 = key.d->x509) {
153−- (void)q_X509_cmp(x509, x509); // populate x509->sha1_hash
154−- // (if someone knows a better way...)
155−- return qHashBits(x509->sha1_hash, SHA_DIGEST_LENGTH, seed);
156−- } else {
157−- return seed;
158−+ const EVP_MD *sha1 = q_EVP_sha1();
159−+ unsigned int len = 0;
160−+ unsigned char md[EVP_MAX_MD_SIZE];
161−+ q_X509_digest(x509, sha1, md, &len);
162−+ return qHashBits(md, len, seed);
163− }
164−+
165−+ return seed;
166− }
167−
168− bool QSslCertificate::isNull() const
169−@@ -89,8 +92,7 @@ QByteArray QSslCertificate::version() const
170− {
171− QMutexLocker lock(QMutexPool::globalInstanceGet(d.data()));
172− if (d->versionString.isEmpty() && d->x509)
173−- d->versionString =
174−- QByteArray::number(qlonglong(q_ASN1_INTEGER_get(d->x509->cert_info->version)) + 1);
175−+ d->versionString = QByteArray::number(qlonglong(q_X509_get_version(d->x509)) + 1);
176−
177− return d->versionString;
178− }
179−@@ -99,7 +101,7 @@ QByteArray QSslCertificate::serialNumber() const
180− {
181− QMutexLocker lock(QMutexPool::globalInstanceGet(d.data()));
182− if (d->serialNumberString.isEmpty() && d->x509) {
183−- ASN1_INTEGER *serialNumber = d->x509->cert_info->serialNumber;
184−+ ASN1_INTEGER *serialNumber = q_X509_get_serialNumber(d->x509);
185− QByteArray hexString;
186− hexString.reserve(serialNumber->length * 3);
187− for (int a = 0; a < serialNumber->length; ++a) {
188−@@ -199,14 +201,15 @@ QMultiMap<QSsl::AlternativeNameEntryType, QString> QSslCertificate::subjectAlter
189− continue;
190− }
191−
192−- const char *altNameStr = reinterpret_cast<const char *>(q_ASN1_STRING_data(genName->d.ia5));
193−+ const char *altNameStr = reinterpret_cast<const char *>(q_ASN1_STRING_get0_data(genName->d.ia5));
194− const QString altName = QString::fromLatin1(altNameStr, len);
195− if (genName->type == GEN_DNS)
196− result.insert(QSsl::DnsEntry, altName);
197− else if (genName->type == GEN_EMAIL)
198− result.insert(QSsl::EmailEntry, altName);
199− }
200−- q_sk_pop_free((STACK*)altNames, reinterpret_cast<void(*)(void*)>(q_sk_free));
201−+
202−+ q_OPENSSL_sk_pop_free((OPENSSL_STACK*)altNames, reinterpret_cast<void(*)(void*)>(q_OPENSSL_sk_free));
203− }
204−
205− return result;
206−@@ -235,25 +238,26 @@ QSslKey QSslCertificate::publicKey() const
207− QSslKey key;
208−
209− key.d->type = QSsl::PublicKey;
210−- X509_PUBKEY *xkey = d->x509->cert_info->key;
211−- EVP_PKEY *pkey = q_X509_PUBKEY_get(xkey);
212−+
213−+ EVP_PKEY *pkey = q_X509_get_pubkey(d->x509);
214− Q_ASSERT(pkey);
215−+ const int keyType = q_EVP_PKEY_type(q_EVP_PKEY_base_id(pkey));
216−
217−- if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_RSA) {
218−+ if (keyType == EVP_PKEY_RSA) {
219− key.d->rsa = q_EVP_PKEY_get1_RSA(pkey);
220− key.d->algorithm = QSsl::Rsa;
221− key.d->isNull = false;
222−- } else if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_DSA) {
223−+ } else if (keyType == EVP_PKEY_DSA) {
224− key.d->dsa = q_EVP_PKEY_get1_DSA(pkey);
225− key.d->algorithm = QSsl::Dsa;
226− key.d->isNull = false;
227− #ifndef OPENSSL_NO_EC
228−- } else if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_EC) {
229−+ } else if (keyType == EVP_PKEY_EC) {
230− key.d->ec = q_EVP_PKEY_get1_EC_KEY(pkey);
231− key.d->algorithm = QSsl::Ec;
232− key.d->isNull = false;
233− #endif
234−- } else if (q_EVP_PKEY_type(pkey->type) == EVP_PKEY_DH) {
235−+ } else if (keyType == EVP_PKEY_DH) {
236− // DH unsupported
237− } else {
238− // error?
239−@@ -275,7 +279,7 @@ static QVariant x509UnknownExtensionToValue(X509_EXTENSION *ext)
240− X509V3_EXT_METHOD *meth = const_cast<X509V3_EXT_METHOD *>(q_X509V3_EXT_get(ext));
241− if (!meth) {
242− ASN1_OCTET_STRING *value = q_X509_EXTENSION_get_data(ext);
243−- QByteArray result( reinterpret_cast<const char *>(q_ASN1_STRING_data(value)),
244−+ QByteArray result( reinterpret_cast<const char *>(q_ASN1_STRING_get0_data(value)),
245− q_ASN1_STRING_length(value));
246− return result;
247− }
248−@@ -371,7 +375,7 @@ static QVariant x509ExtensionToValue(X509_EXTENSION *ext)
249− continue;
250− }
251−
252−- const char *uriStr = reinterpret_cast<const char *>(q_ASN1_STRING_data(name->d.uniformResourceIdentifier));
253−+ const char *uriStr = reinterpret_cast<const char *>(q_ASN1_STRING_get0_data(name->d.uniformResourceIdentifier));
254− const QString uri = QString::fromUtf8(uriStr, len);
255−
256− result[QString::fromUtf8(QSslCertificatePrivate::asn1ObjectName(ad->method))] = uri;
257−@@ -380,11 +384,7 @@ static QVariant x509ExtensionToValue(X509_EXTENSION *ext)
258− }
259− }
260−
261−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
262−- q_sk_pop_free((_STACK*)info, reinterpret_cast<void(*)(void*)>(q_sk_free));
263−-#else
264−- q_sk_pop_free((STACK*)info, reinterpret_cast<void(*)(void*)>(q_sk_free));
265−-#endif
266−+ q_OPENSSL_sk_pop_free((OPENSSL_STACK*)info, reinterpret_cast<void(*)(void *)>(q_OPENSSL_sk_free));
267− return result;
268− }
269− break;
270−@@ -607,7 +607,11 @@ static QMap<QByteArray, QString> _q_mapFromX509Name(X509_NAME *name)
271− unsigned char *data = 0;
272− int size = q_ASN1_STRING_to_UTF8(&data, q_X509_NAME_ENTRY_get_data(e));
273− info.insertMulti(name, QString::fromUtf8((char*)data, size));
274−+#if QT_CONFIG(opensslv11)
275−+ q_CRYPTO_free(data, 0, 0);
276−+#else
277− q_CRYPTO_free(data);
278−+#endif
279− }
280−
281− return info;
282−@@ -619,8 +623,9 @@ QSslCertificate QSslCertificatePrivate::QSslCertificate_from_X509(X509 *x509)
283− if (!x509 || !QSslSocket::supportsSsl())
284− return certificate;
285−
286−- ASN1_TIME *nbef = q_X509_get_notBefore(x509);
287−- ASN1_TIME *naft = q_X509_get_notAfter(x509);
288−+ ASN1_TIME *nbef = q_X509_getm_notBefore(x509);
289−+ ASN1_TIME *naft = q_X509_getm_notAfter(x509);
290−+
291− certificate.d->notValidBefore = q_getTimeFromASN1(nbef);
292− certificate.d->notValidAfter = q_getTimeFromASN1(naft);
293− certificate.d->null = false;
294−diff --git a/src/network/ssl/qsslcontext_openssl.cpp b/src/network/ssl/qsslcontext_openssl.cpp
295−index c92d8fc3f8..cef503710c 100644
296−--- a/src/network/ssl/qsslcontext_openssl.cpp
297−+++ b/src/network/ssl/qsslcontext_openssl.cpp
298−@@ -1,6 +1,6 @@
299− /****************************************************************************
300− **
301−-** Copyright (C) 2016 The Qt Company Ltd.
302−+** Copyright (C) 2017 The Qt Company Ltd.
303− ** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
304− ** Copyright (C) 2014 Governikus GmbH & Co. KG.
305− ** Contact: https://www.qt.io/licensing/
306−@@ -41,22 +41,14 @@
307−
308−
309− #include <QtNetwork/qsslsocket.h>
310−-#include <QtNetwork/qssldiffiehellmanparameters.h>
311−-#include <QtCore/qmutex.h>
312−
313− #include "private/qssl_p.h"
314− #include "private/qsslcontext_openssl_p.h"
315−-#include "private/qsslsocket_p.h"
316− #include "private/qsslsocket_openssl_p.h"
317− #include "private/qsslsocket_openssl_symbols_p.h"
318−-#include "private/qssldiffiehellmanparameters_p.h"
319−
320− QT_BEGIN_NAMESPACE
321−
322−-// defined in qsslsocket_openssl.cpp:
323−-extern int q_X509Callback(int ok, X509_STORE_CTX *ctx);
324−-extern QString getErrorsFromOpenSsl();
325−-
326− QSslContext::QSslContext()
327− : ctx(0),
328− pkey(0),
329−@@ -78,301 +70,6 @@ QSslContext::~QSslContext()
330− q_SSL_SESSION_free(session);
331− }
332−
333−-static inline QString msgErrorSettingEllipticCurves(const QString &why)
334−-{
335−- return QSslSocket::tr("Error when setting the elliptic curves (%1)").arg(why);
336−-}
337−-
338−-// static
339−-void QSslContext::initSslContext(QSslContext *sslContext, QSslSocket::SslMode mode, const QSslConfiguration &configuration, bool allowRootCertOnDemandLoading)
340−-{
341−- sslContext->sslConfiguration = configuration;
342−- sslContext->errorCode = QSslError::NoError;
343−-
344−- bool client = (mode == QSslSocket::SslClientMode);
345−-
346−- bool reinitialized = false;
347−- bool unsupportedProtocol = false;
348−-init_context:
349−- switch (sslContext->sslConfiguration.protocol()) {
350−- case QSsl::SslV2:
351−-#ifndef OPENSSL_NO_SSL2
352−- sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv2_client_method() : q_SSLv2_server_method());
353−-#else
354−- // SSL 2 not supported by the system, but chosen deliberately -> error
355−- sslContext->ctx = 0;
356−- unsupportedProtocol = true;
357−-#endif
358−- break;
359−- case QSsl::SslV3:
360−-#ifndef OPENSSL_NO_SSL3_METHOD
361−- sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv3_client_method() : q_SSLv3_server_method());
362−-#else
363−- // SSL 3 not supported by the system, but chosen deliberately -> error
364−- sslContext->ctx = 0;
365−- unsupportedProtocol = true;
366−-#endif
367−- break;
368−- case QSsl::SecureProtocols:
369−- // SSLv2 and SSLv3 will be disabled by SSL options
370−- // But we need q_SSLv23_server_method() otherwise AnyProtocol will be unable to connect on Win32.
371−- case QSsl::TlsV1SslV3:
372−- // SSLv2 will will be disabled by SSL options
373−- case QSsl::AnyProtocol:
374−- default:
375−- sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method());
376−- break;
377−- case QSsl::TlsV1_0:
378−- sslContext->ctx = q_SSL_CTX_new(client ? q_TLSv1_client_method() : q_TLSv1_server_method());
379−- break;
380−- case QSsl::TlsV1_1:
381−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
382−- sslContext->ctx = q_SSL_CTX_new(client ? q_TLSv1_1_client_method() : q_TLSv1_1_server_method());
383−-#else
384−- // TLS 1.1 not supported by the system, but chosen deliberately -> error
385−- sslContext->ctx = 0;
386−- unsupportedProtocol = true;
387−-#endif
388−- break;
389−- case QSsl::TlsV1_2:
390−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
391−- sslContext->ctx = q_SSL_CTX_new(client ? q_TLSv1_2_client_method() : q_TLSv1_2_server_method());
392−-#else
393−- // TLS 1.2 not supported by the system, but chosen deliberately -> error
394−- sslContext->ctx = 0;
395−- unsupportedProtocol = true;
396−-#endif
397−- break;
398−- case QSsl::TlsV1_0OrLater:
399−- // Specific protocols will be specified via SSL options.
400−- sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method());
401−- break;
402−- case QSsl::TlsV1_1OrLater:
403−- case QSsl::TlsV1_2OrLater:
404−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
405−- // Specific protocols will be specified via SSL options.
406−- sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method());
407−-#else
408−- // TLS 1.1/1.2 not supported by the system, but chosen deliberately -> error
409−- sslContext->ctx = 0;
410−- unsupportedProtocol = true;
411−-#endif
412−- break;
413−- }
414−-
415−- if (!sslContext->ctx) {
416−- // After stopping Flash 10 the SSL library looses its ciphers. Try re-adding them
417−- // by re-initializing the library.
418−- if (!reinitialized) {
419−- reinitialized = true;
420−- if (q_SSL_library_init() == 1)
421−- goto init_context;
422−- }
423−-
424−- sslContext->errorStr = QSslSocket::tr("Error creating SSL context (%1)").arg(
425−- unsupportedProtocol ? QSslSocket::tr("unsupported protocol") : QSslSocketBackendPrivate::getErrorsFromOpenSsl()
426−- );
427−- sslContext->errorCode = QSslError::UnspecifiedError;
428−- return;
429−- }
430−-
431−- // Enable bug workarounds.
432−- long options = QSslSocketBackendPrivate::setupOpenSslOptions(configuration.protocol(), configuration.d->sslOptions);
433−- q_SSL_CTX_set_options(sslContext->ctx, options);
434−-
435−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
436−- // Tell OpenSSL to release memory early
437−- // http://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html
438−- if (q_SSLeay() >= 0x10000000L)
439−- q_SSL_CTX_set_mode(sslContext->ctx, SSL_MODE_RELEASE_BUFFERS);
440−-#endif
441−-
442−- // Initialize ciphers
443−- QByteArray cipherString;
444−- bool first = true;
445−- QList<QSslCipher> ciphers = sslContext->sslConfiguration.ciphers();
446−- if (ciphers.isEmpty())
447−- ciphers = QSslSocketPrivate::defaultCiphers();
448−- for (const QSslCipher &cipher : qAsConst(ciphers)) {
449−- if (first)
450−- first = false;
451−- else
452−- cipherString.append(':');
453−- cipherString.append(cipher.name().toLatin1());
454−- }
455−-
456−- if (!q_SSL_CTX_set_cipher_list(sslContext->ctx, cipherString.data())) {
457−- sslContext->errorStr = QSslSocket::tr("Invalid or empty cipher list (%1)").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
458−- sslContext->errorCode = QSslError::UnspecifiedError;
459−- return;
460−- }
461−-
462−- const QDateTime now = QDateTime::currentDateTimeUtc();
463−-
464−- // Add all our CAs to this store.
465−- const auto caCertificates = sslContext->sslConfiguration.caCertificates();
466−- for (const QSslCertificate &caCertificate : caCertificates) {
467−- // From https://www.openssl.org/docs/ssl/SSL_CTX_load_verify_locations.html:
468−- //
469−- // If several CA certificates matching the name, key identifier, and
470−- // serial number condition are available, only the first one will be
471−- // examined. This may lead to unexpected results if the same CA
472−- // certificate is available with different expiration dates. If a
473−- // ``certificate expired'' verification error occurs, no other
474−- // certificate will be searched. Make sure to not have expired
475−- // certificates mixed with valid ones.
476−- //
477−- // See also: QSslSocketBackendPrivate::verify()
478−- if (caCertificate.expiryDate() >= now) {
479−- q_X509_STORE_add_cert(q_SSL_CTX_get_cert_store(sslContext->ctx), (X509 *)caCertificate.handle());
480−- }
481−- }
482−-
483−- if (QSslSocketPrivate::s_loadRootCertsOnDemand && allowRootCertOnDemandLoading) {
484−- // tell OpenSSL the directories where to look up the root certs on demand
485−- const QList<QByteArray> unixDirs = QSslSocketPrivate::unixRootCertDirectories();
486−- for (const QByteArray &unixDir : unixDirs)
487−- q_SSL_CTX_load_verify_locations(sslContext->ctx, 0, unixDir.constData());
488−- }
489−-
490−- if (!sslContext->sslConfiguration.localCertificate().isNull()) {
491−- // Require a private key as well.
492−- if (sslContext->sslConfiguration.privateKey().isNull()) {
493−- sslContext->errorStr = QSslSocket::tr("Cannot provide a certificate with no key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
494−- sslContext->errorCode = QSslError::UnspecifiedError;
495−- return;
496−- }
497−-
498−- // Load certificate
499−- if (!q_SSL_CTX_use_certificate(sslContext->ctx, (X509 *)sslContext->sslConfiguration.localCertificate().handle())) {
500−- sslContext->errorStr = QSslSocket::tr("Error loading local certificate, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
501−- sslContext->errorCode = QSslError::UnspecifiedError;
502−- return;
503−- }
504−-
505−- if (configuration.d->privateKey.algorithm() == QSsl::Opaque) {
506−- sslContext->pkey = reinterpret_cast<EVP_PKEY *>(configuration.d->privateKey.handle());
507−- } else {
508−- // Load private key
509−- sslContext->pkey = q_EVP_PKEY_new();
510−- // before we were using EVP_PKEY_assign_R* functions and did not use EVP_PKEY_free.
511−- // this lead to a memory leak. Now we use the *_set1_* functions which do not
512−- // take ownership of the RSA/DSA key instance because the QSslKey already has ownership.
513−- if (configuration.d->privateKey.algorithm() == QSsl::Rsa)
514−- q_EVP_PKEY_set1_RSA(sslContext->pkey, reinterpret_cast<RSA *>(configuration.d->privateKey.handle()));
515−- else if (configuration.d->privateKey.algorithm() == QSsl::Dsa)
516−- q_EVP_PKEY_set1_DSA(sslContext->pkey, reinterpret_cast<DSA *>(configuration.d->privateKey.handle()));
517−-#ifndef OPENSSL_NO_EC
518−- else if (configuration.d->privateKey.algorithm() == QSsl::Ec)
519−- q_EVP_PKEY_set1_EC_KEY(sslContext->pkey, reinterpret_cast<EC_KEY *>(configuration.d->privateKey.handle()));
520−-#endif
521−- }
522−-
523−- if (!q_SSL_CTX_use_PrivateKey(sslContext->ctx, sslContext->pkey)) {
524−- sslContext->errorStr = QSslSocket::tr("Error loading private key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
525−- sslContext->errorCode = QSslError::UnspecifiedError;
526−- return;
527−- }
528−- if (configuration.d->privateKey.algorithm() == QSsl::Opaque)
529−- sslContext->pkey = 0; // Don't free the private key, it belongs to QSslKey
530−-
531−- // Check if the certificate matches the private key.
532−- if (!q_SSL_CTX_check_private_key(sslContext->ctx)) {
533−- sslContext->errorStr = QSslSocket::tr("Private key does not certify public key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
534−- sslContext->errorCode = QSslError::UnspecifiedError;
535−- return;
536−- }
537−-
538−- // If we have any intermediate certificates then we need to add them to our chain
539−- bool first = true;
540−- for (const QSslCertificate &cert : qAsConst(configuration.d->localCertificateChain)) {
541−- if (first) {
542−- first = false;
543−- continue;
544−- }
545−- q_SSL_CTX_ctrl(sslContext->ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0,
546−- q_X509_dup(reinterpret_cast<X509 *>(cert.handle())));
547−- }
548−- }
549−-
550−- // Initialize peer verification.
551−- if (sslContext->sslConfiguration.peerVerifyMode() == QSslSocket::VerifyNone) {
552−- q_SSL_CTX_set_verify(sslContext->ctx, SSL_VERIFY_NONE, 0);
553−- } else {
554−- q_SSL_CTX_set_verify(sslContext->ctx, SSL_VERIFY_PEER, q_X509Callback);
555−- }
556−-
557−- // Set verification depth.
558−- if (sslContext->sslConfiguration.peerVerifyDepth() != 0)
559−- q_SSL_CTX_set_verify_depth(sslContext->ctx, sslContext->sslConfiguration.peerVerifyDepth());
560−-
561−- // set persisted session if the user set it
562−- if (!configuration.sessionTicket().isEmpty())
563−- sslContext->setSessionASN1(configuration.sessionTicket());
564−-
565−- // Set temp DH params
566−- QSslDiffieHellmanParameters dhparams = configuration.diffieHellmanParameters();
567−-
568−- if (!dhparams.isValid()) {
569−- sslContext->errorStr = QSslSocket::tr("Diffie-Hellman parameters are not valid");
570−- sslContext->errorCode = QSslError::UnspecifiedError;
571−- return;
572−- }
573−-
574−- if (!dhparams.isEmpty()) {
575−- const QByteArray &params = dhparams.d->derData;
576−- const char *ptr = params.constData();
577−- DH *dh = q_d2i_DHparams(NULL, reinterpret_cast<const unsigned char **>(&ptr), params.length());
578−- if (dh == NULL)
579−- qFatal("q_d2i_DHparams failed to convert QSslDiffieHellmanParameters to DER form");
580−- q_SSL_CTX_set_tmp_dh(sslContext->ctx, dh);
581−- q_DH_free(dh);
582−- }
583−-
584−-#ifndef OPENSSL_NO_EC
585−-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
586−- if (q_SSLeay() >= 0x10002000L) {
587−- q_SSL_CTX_ctrl(sslContext->ctx, SSL_CTRL_SET_ECDH_AUTO, 1, NULL);
588−- } else
589−-#endif
590−- {
591−- // Set temp ECDH params
592−- EC_KEY *ecdh = 0;
593−- ecdh = q_EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
594−- q_SSL_CTX_set_tmp_ecdh(sslContext->ctx, ecdh);
595−- q_EC_KEY_free(ecdh);
596−- }
597−-#endif // OPENSSL_NO_EC
598−-
599−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
600−- if (!client)
601−- q_SSL_CTX_use_psk_identity_hint(sslContext->ctx, sslContext->sslConfiguration.preSharedKeyIdentityHint().constData());
602−-#endif // OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
603−-
604−- const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
605−- if (!qcurves.isEmpty()) {
606−-#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
607−- // Set the curves to be used
608−- if (q_SSLeay() >= 0x10002000L) {
609−- // SSL_CTX_ctrl wants a non-const pointer as last argument,
610−- // but let's avoid a copy into a temporary array
611−- if (!q_SSL_CTX_ctrl(sslContext->ctx,
612−- SSL_CTRL_SET_CURVES,
613−- qcurves.size(),
614−- const_cast<int *>(reinterpret_cast<const int *>(qcurves.data())))) {
615−- sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
616−- sslContext->errorCode = QSslError::UnspecifiedError;
617−- }
618−- } else
619−-#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
620−- {
621−- // specific curves requested, but not possible to set -> error
622−- sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));
623−- sslContext->errorCode = QSslError::UnspecifiedError;
624−- }
625−- }
626−-}
627−-
628− QSslContext* QSslContext::fromConfiguration(QSslSocket::SslMode mode, const QSslConfiguration &configuration, bool allowRootCertOnDemandLoading)
629− {
630− QSslContext *sslContext = new QSslContext();
631−@@ -463,7 +160,7 @@ SSL* QSslContext::createSsl()
632− m_npnContext.len = m_supportedNPNVersions.count();
633− m_npnContext.status = QSslConfiguration::NextProtocolNegotiationNone;
634− #if OPENSSL_VERSION_NUMBER >= 0x10002000L
635−- if (q_SSLeay() >= 0x10002000L) {
636−+ if (QSslSocket::sslLibraryVersionNumber() >= 0x10002000L) {
637− // Callback's type has a parameter 'const unsigned char ** out'
638− // since it was introduced in 1.0.2. Internally, OpenSSL's own code
639− // (tests/examples) cast it to unsigned char * (since it's 'out').
640−@@ -508,7 +205,7 @@ bool QSslContext::cacheSession(SSL* ssl)
641− unsigned char *data = reinterpret_cast<unsigned char *>(m_sessionASN1.data());
642− if (!q_i2d_SSL_SESSION(session, &data))
643− qCWarning(lcSsl, "could not store persistent version of SSL session");
644−- m_sessionTicketLifeTimeHint = session->tlsext_tick_lifetime_hint;
645−+ m_sessionTicketLifeTimeHint = q_SSL_SESSION_get_ticket_lifetime_hint(session);
646− }
647− }
648−
649−diff --git a/src/network/ssl/qsslcontext_openssl11.cpp b/src/network/ssl/qsslcontext_openssl11.cpp
650−new file mode 100644
651−index 0000000000..787b6ae3f5
652−--- /dev/null
653−+++ b/src/network/ssl/qsslcontext_openssl11.cpp
654−@@ -0,0 +1,277 @@
655−+/****************************************************************************
656−+**
657−+** Copyright (C) 2017 The Qt Company Ltd.
658−+** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
659−+** Copyright (C) 2014 Governikus GmbH & Co. KG.
660−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
661−+** Contact: https://www.qt.io/licensing/
662−+**
663−+** This file is part of the QtNetwork module of the Qt Toolkit.
664−+**
665−+** $QT_BEGIN_LICENSE:LGPL$
666−+** Commercial License Usage
667−+** Licensees holding valid commercial Qt licenses may use this file in
668−+** accordance with the commercial license agreement provided with the
669−+** Software or, alternatively, in accordance with the terms contained in
670−+** a written agreement between you and The Qt Company. For licensing terms
671−+** and conditions see https://www.qt.io/terms-conditions. For further
672−+** information use the contact form at https://www.qt.io/contact-us.
673−+**
674−+** GNU Lesser General Public License Usage
675−+** Alternatively, this file may be used under the terms of the GNU Lesser
676−+** General Public License version 3 as published by the Free Software
677−+** Foundation and appearing in the file LICENSE.LGPL3 included in the
678−+** packaging of this file. Please review the following information to
679−+** ensure the GNU Lesser General Public License version 3 requirements
680−+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
681−+**
682−+** GNU General Public License Usage
683−+** Alternatively, this file may be used under the terms of the GNU
684−+** General Public License version 2.0 or (at your option) the GNU General
685−+** Public license version 3 or any later version approved by the KDE Free
686−+** Qt Foundation. The licenses are as published by the Free Software
687−+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
688−+** included in the packaging of this file. Please review the following
689−+** information to ensure the GNU General Public License requirements will
690−+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
691−+** https://www.gnu.org/licenses/gpl-3.0.html.
692−+**
693−+** $QT_END_LICENSE$
694−+**
695−+****************************************************************************/
696−+
697−+
698−+#include <QtNetwork/qsslsocket.h>
699−+#include <QtNetwork/qssldiffiehellmanparameters.h>
700−+
701−+#include "private/qssl_p.h"
702−+#include "private/qsslcontext_openssl_p.h"
703−+#include "private/qsslsocket_p.h"
704−+#include "private/qsslsocket_openssl_p.h"
705−+#include "private/qsslsocket_openssl_symbols_p.h"
706−+#include "private/qssldiffiehellmanparameters_p.h"
707−+
708−+#include <vector>
709−+
710−+QT_BEGIN_NAMESPACE
711−+
712−+// defined in qsslsocket_openssl.cpp:
713−+extern int q_X509Callback(int ok, X509_STORE_CTX *ctx);
714−+extern QString getErrorsFromOpenSsl();
715−+
716−+static inline QString msgErrorSettingEllipticCurves(const QString &why)
717−+{
718−+ return QSslSocket::tr("Error when setting the elliptic curves (%1)").arg(why);
719−+}
720−+
721−+// static
722−+void QSslContext::initSslContext(QSslContext *sslContext, QSslSocket::SslMode mode, const QSslConfiguration &configuration, bool allowRootCertOnDemandLoading)
723−+{
724−+ sslContext->sslConfiguration = configuration;
725−+ sslContext->errorCode = QSslError::NoError;
726−+
727−+ bool client = (mode == QSslSocket::SslClientMode);
728−+
729−+ bool reinitialized = false;
730−+ bool unsupportedProtocol = false;
731−+init_context:
732−+ if (sslContext->sslConfiguration.protocol() == QSsl::SslV2) {
733−+ // SSL 2 is no longer supported, but chosen deliberately -> error
734−+ sslContext->ctx = nullptr;
735−+ unsupportedProtocol = true;
736−+ } else {
737−+ // The ssl options will actually control the supported methods
738−+ sslContext->ctx = q_SSL_CTX_new(client ? q_TLS_client_method() : q_TLS_server_method());
739−+ }
740−+
741−+ if (!sslContext->ctx) {
742−+ // After stopping Flash 10 the SSL library loses its ciphers. Try re-adding them
743−+ // by re-initializing the library.
744−+ if (!reinitialized) {
745−+ reinitialized = true;
746−+ if (q_OPENSSL_init_ssl(0, nullptr) == 1)
747−+ goto init_context;
748−+ }
749−+
750−+ sslContext->errorStr = QSslSocket::tr("Error creating SSL context (%1)").arg(
751−+ unsupportedProtocol ? QSslSocket::tr("unsupported protocol") : QSslSocketBackendPrivate::getErrorsFromOpenSsl()
752−+ );
753−+ sslContext->errorCode = QSslError::UnspecifiedError;
754−+ return;
755−+ }
756−+
757−+ // Enable bug workarounds.
758−+ long options = QSslSocketBackendPrivate::setupOpenSslOptions(configuration.protocol(), configuration.d->sslOptions);
759−+ q_SSL_CTX_set_options(sslContext->ctx, options);
760−+
761−+ // Tell OpenSSL to release memory early
762−+ // http://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html
763−+ q_SSL_CTX_set_mode(sslContext->ctx, SSL_MODE_RELEASE_BUFFERS);
764−+
765−+ // Initialize ciphers
766−+ QByteArray cipherString;
767−+ bool first = true;
768−+ QList<QSslCipher> ciphers = sslContext->sslConfiguration.ciphers();
769−+ if (ciphers.isEmpty())
770−+ ciphers = QSslSocketPrivate::defaultCiphers();
771−+ for (const QSslCipher &cipher : qAsConst(ciphers)) {
772−+ if (first)
773−+ first = false;
774−+ else
775−+ cipherString.append(':');
776−+ cipherString.append(cipher.name().toLatin1());
777−+ }
778−+
779−+ if (!q_SSL_CTX_set_cipher_list(sslContext->ctx, cipherString.data())) {
780−+ sslContext->errorStr = QSslSocket::tr("Invalid or empty cipher list (%1)").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
781−+ sslContext->errorCode = QSslError::UnspecifiedError;
782−+ return;
783−+ }
784−+
785−+ const QDateTime now = QDateTime::currentDateTimeUtc();
786−+
787−+ // Add all our CAs to this store.
788−+ const auto caCertificates = sslContext->sslConfiguration.caCertificates();
789−+ for (const QSslCertificate &caCertificate : caCertificates) {
790−+ // From https://www.openssl.org/docs/ssl/SSL_CTX_load_verify_locations.html:
791−+ //
792−+ // If several CA certificates matching the name, key identifier, and
793−+ // serial number condition are available, only the first one will be
794−+ // examined. This may lead to unexpected results if the same CA
795−+ // certificate is available with different expiration dates. If a
796−+ // ``certificate expired'' verification error occurs, no other
797−+ // certificate will be searched. Make sure to not have expired
798−+ // certificates mixed with valid ones.
799−+ //
800−+ // See also: QSslSocketBackendPrivate::verify()
801−+ if (caCertificate.expiryDate() >= now) {
802−+ q_X509_STORE_add_cert(q_SSL_CTX_get_cert_store(sslContext->ctx), (X509 *)caCertificate.handle());
803−+ }
804−+ }
805−+
806−+ if (QSslSocketPrivate::s_loadRootCertsOnDemand && allowRootCertOnDemandLoading) {
807−+ // tell OpenSSL the directories where to look up the root certs on demand
808−+ const QList<QByteArray> unixDirs = QSslSocketPrivate::unixRootCertDirectories();
809−+ for (const QByteArray &unixDir : unixDirs)
810−+ q_SSL_CTX_load_verify_locations(sslContext->ctx, nullptr, unixDir.constData());
811−+ }
812−+
813−+ if (!sslContext->sslConfiguration.localCertificate().isNull()) {
814−+ // Require a private key as well.
815−+ if (sslContext->sslConfiguration.privateKey().isNull()) {
816−+ sslContext->errorStr = QSslSocket::tr("Cannot provide a certificate with no key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
817−+ sslContext->errorCode = QSslError::UnspecifiedError;
818−+ return;
819−+ }
820−+
821−+ // Load certificate
822−+ if (!q_SSL_CTX_use_certificate(sslContext->ctx, (X509 *)sslContext->sslConfiguration.localCertificate().handle())) {
823−+ sslContext->errorStr = QSslSocket::tr("Error loading local certificate, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
824−+ sslContext->errorCode = QSslError::UnspecifiedError;
825−+ return;
826−+ }
827−+
828−+ if (configuration.d->privateKey.algorithm() == QSsl::Opaque) {
829−+ sslContext->pkey = reinterpret_cast<EVP_PKEY *>(configuration.d->privateKey.handle());
830−+ } else {
831−+ // Load private key
832−+ sslContext->pkey = q_EVP_PKEY_new();
833−+ // before we were using EVP_PKEY_assign_R* functions and did not use EVP_PKEY_free.
834−+ // this lead to a memory leak. Now we use the *_set1_* functions which do not
835−+ // take ownership of the RSA/DSA key instance because the QSslKey already has ownership.
836−+ if (configuration.d->privateKey.algorithm() == QSsl::Rsa)
837−+ q_EVP_PKEY_set1_RSA(sslContext->pkey, reinterpret_cast<RSA *>(configuration.d->privateKey.handle()));
838−+ else if (configuration.d->privateKey.algorithm() == QSsl::Dsa)
839−+ q_EVP_PKEY_set1_DSA(sslContext->pkey, reinterpret_cast<DSA *>(configuration.d->privateKey.handle()));
840−+#ifndef OPENSSL_NO_EC
841−+ else if (configuration.d->privateKey.algorithm() == QSsl::Ec)
842−+ q_EVP_PKEY_set1_EC_KEY(sslContext->pkey, reinterpret_cast<EC_KEY *>(configuration.d->privateKey.handle()));
843−+#endif
844−+ }
845−+
846−+ if (!q_SSL_CTX_use_PrivateKey(sslContext->ctx, sslContext->pkey)) {
847−+ sslContext->errorStr = QSslSocket::tr("Error loading private key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
848−+ sslContext->errorCode = QSslError::UnspecifiedError;
849−+ return;
850−+ }
851−+ if (configuration.d->privateKey.algorithm() == QSsl::Opaque)
852−+ sslContext->pkey = nullptr; // Don't free the private key, it belongs to QSslKey
853−+
854−+ // Check if the certificate matches the private key.
855−+ if (!q_SSL_CTX_check_private_key(sslContext->ctx)) {
856−+ sslContext->errorStr = QSslSocket::tr("Private key does not certify public key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
857−+ sslContext->errorCode = QSslError::UnspecifiedError;
858−+ return;
859−+ }
860−+
861−+ // If we have any intermediate certificates then we need to add them to our chain
862−+ bool first = true;
863−+ for (const QSslCertificate &cert : qAsConst(configuration.d->localCertificateChain)) {
864−+ if (first) {
865−+ first = false;
866−+ continue;
867−+ }
868−+ q_SSL_CTX_ctrl(sslContext->ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0,
869−+ q_X509_dup(reinterpret_cast<X509 *>(cert.handle())));
870−+ }
871−+ }
872−+
873−+ // Initialize peer verification.
874−+ if (sslContext->sslConfiguration.peerVerifyMode() == QSslSocket::VerifyNone) {
875−+ q_SSL_CTX_set_verify(sslContext->ctx, SSL_VERIFY_NONE, nullptr);
876−+ } else {
877−+ q_SSL_CTX_set_verify(sslContext->ctx, SSL_VERIFY_PEER, q_X509Callback);
878−+ }
879−+
880−+ // Set verification depth.
881−+ if (sslContext->sslConfiguration.peerVerifyDepth() != 0)
882−+ q_SSL_CTX_set_verify_depth(sslContext->ctx, sslContext->sslConfiguration.peerVerifyDepth());
883−+
884−+ // set persisted session if the user set it
885−+ if (!configuration.sessionTicket().isEmpty())
886−+ sslContext->setSessionASN1(configuration.sessionTicket());
887−+
888−+ // Set temp DH params
889−+ QSslDiffieHellmanParameters dhparams = configuration.diffieHellmanParameters();
890−+
891−+ if (!dhparams.isValid()) {
892−+ sslContext->errorStr = QSslSocket::tr("Diffie-Hellman parameters are not valid");
893−+ sslContext->errorCode = QSslError::UnspecifiedError;
894−+ return;
895−+ }
896−+
897−+ if (!dhparams.isEmpty()) {
898−+ const QByteArray &params = dhparams.d->derData;
899−+ const char *ptr = params.constData();
900−+ DH *dh = q_d2i_DHparams(NULL, reinterpret_cast<const unsigned char **>(&ptr), params.length());
901−+ if (dh == NULL)
902−+ qFatal("q_d2i_DHparams failed to convert QSslDiffieHellmanParameters to DER form");
903−+ q_SSL_CTX_set_tmp_dh(sslContext->ctx, dh);
904−+ q_DH_free(dh);
905−+ }
906−+
907−+#ifndef OPENSSL_NO_PSK
908−+ if (!client)
909−+ q_SSL_CTX_use_psk_identity_hint(sslContext->ctx, sslContext->sslConfiguration.preSharedKeyIdentityHint().constData());
910−+#endif // !OPENSSL_NO_PSK
911−+
912−+ const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
913−+ if (!qcurves.isEmpty()) {
914−+#ifdef OPENSSL_NO_EC
915−+ sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version with disabled elliptic curves"));
916−+ sslContext->errorCode = QSslError::UnspecifiedError;
917−+#else
918−+ // Set the curves to be used.
919−+ std::vector<int> curves;
920−+ curves.reserve(qcurves.size());
921−+ for (const auto &sslCurve : qcurves)
922−+ curves.push_back(sslCurve.id);
923−+ if (!q_SSL_CTX_ctrl(sslContext->ctx, SSL_CTRL_SET_CURVES, long(curves.size()), &curves[0])) {
924−+ sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
925−+ sslContext->errorCode = QSslError::UnspecifiedError;
926−+ }
927−+#endif
928−+ }
929−+}
930−+
931−+QT_END_NAMESPACE
932−diff --git a/src/network/ssl/qsslcontext_opensslpre11.cpp b/src/network/ssl/qsslcontext_opensslpre11.cpp
933−new file mode 100644
934−index 0000000000..9c01c2f2dc
935−--- /dev/null
936−+++ b/src/network/ssl/qsslcontext_opensslpre11.cpp
937−@@ -0,0 +1,354 @@
938−+/****************************************************************************
939−+**
940−+** Copyright (C) 2017 The Qt Company Ltd.
941−+** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
942−+** Copyright (C) 2014 Governikus GmbH & Co. KG.
943−+** Contact: https://www.qt.io/licensing/
944−+**
945−+** This file is part of the QtNetwork module of the Qt Toolkit.
946−+**
947−+** $QT_BEGIN_LICENSE:LGPL$
948−+** Commercial License Usage
949−+** Licensees holding valid commercial Qt licenses may use this file in
950−+** accordance with the commercial license agreement provided with the
951−+** Software or, alternatively, in accordance with the terms contained in
952−+** a written agreement between you and The Qt Company. For licensing terms
953−+** and conditions see https://www.qt.io/terms-conditions. For further
954−+** information use the contact form at https://www.qt.io/contact-us.
955−+**
956−+** GNU Lesser General Public License Usage
957−+** Alternatively, this file may be used under the terms of the GNU Lesser
958−+** General Public License version 3 as published by the Free Software
959−+** Foundation and appearing in the file LICENSE.LGPL3 included in the
960−+** packaging of this file. Please review the following information to
961−+** ensure the GNU Lesser General Public License version 3 requirements
962−+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
963−+**
964−+** GNU General Public License Usage
965−+** Alternatively, this file may be used under the terms of the GNU
966−+** General Public License version 2.0 or (at your option) the GNU General
967−+** Public license version 3 or any later version approved by the KDE Free
968−+** Qt Foundation. The licenses are as published by the Free Software
969−+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
970−+** included in the packaging of this file. Please review the following
971−+** information to ensure the GNU General Public License requirements will
972−+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
973−+** https://www.gnu.org/licenses/gpl-3.0.html.
974−+**
975−+** $QT_END_LICENSE$
976−+**
977−+****************************************************************************/
978−+
979−+
980−+#include <QtNetwork/qsslsocket.h>
981−+#include <QtNetwork/qssldiffiehellmanparameters.h>
982−+
983−+#include "private/qssl_p.h"
984−+#include "private/qsslcontext_openssl_p.h"
985−+#include "private/qsslsocket_p.h"
986−+#include "private/qsslsocket_openssl_p.h"
987−+#include "private/qsslsocket_openssl_symbols_p.h"
988−+#include "private/qssldiffiehellmanparameters_p.h"
989−+
990−+QT_BEGIN_NAMESPACE
991−+
992−+// defined in qsslsocket_openssl.cpp:
993−+extern int q_X509Callback(int ok, X509_STORE_CTX *ctx);
994−+extern QString getErrorsFromOpenSsl();
995−+
996−+static inline QString msgErrorSettingEllipticCurves(const QString &why)
997−+{
998−+ return QSslSocket::tr("Error when setting the elliptic curves (%1)").arg(why);
999−+}
1000−+
1001−+// static
1002−+void QSslContext::initSslContext(QSslContext *sslContext, QSslSocket::SslMode mode, const QSslConfiguration &configuration, bool allowRootCertOnDemandLoading)
1003−+{
1004−+ sslContext->sslConfiguration = configuration;
1005−+ sslContext->errorCode = QSslError::NoError;
1006−+
1007−+ bool client = (mode == QSslSocket::SslClientMode);
1008−+
1009−+ bool reinitialized = false;
1010−+ bool unsupportedProtocol = false;
1011−+init_context:
1012−+ switch (sslContext->sslConfiguration.protocol()) {
1013−+ case QSsl::SslV2:
1014−+#ifndef OPENSSL_NO_SSL2
1015−+ sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv2_client_method() : q_SSLv2_server_method());
1016−+#else
1017−+ // SSL 2 not supported by the system, but chosen deliberately -> error
1018−+ sslContext->ctx = 0;
1019−+ unsupportedProtocol = true;
1020−+#endif
1021−+ break;
1022−+ case QSsl::SslV3:
1023−+#ifndef OPENSSL_NO_SSL3_METHOD
1024−+ sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv3_client_method() : q_SSLv3_server_method());
1025−+#else
1026−+ // SSL 3 not supported by the system, but chosen deliberately -> error
1027−+ sslContext->ctx = 0;
1028−+ unsupportedProtocol = true;
1029−+#endif
1030−+ break;
1031−+ case QSsl::SecureProtocols:
1032−+ // SSLv2 and SSLv3 will be disabled by SSL options
1033−+ // But we need q_SSLv23_server_method() otherwise AnyProtocol will be unable to connect on Win32.
1034−+ case QSsl::TlsV1SslV3:
1035−+ // SSLv2 will will be disabled by SSL options
1036−+ case QSsl::AnyProtocol:
1037−+ default:
1038−+ sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method());
1039−+ break;
1040−+ case QSsl::TlsV1_0:
1041−+ sslContext->ctx = q_SSL_CTX_new(client ? q_TLSv1_client_method() : q_TLSv1_server_method());
1042−+ break;
1043−+ case QSsl::TlsV1_1:
1044−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
1045−+ sslContext->ctx = q_SSL_CTX_new(client ? q_TLSv1_1_client_method() : q_TLSv1_1_server_method());
1046−+#else
1047−+ // TLS 1.1 not supported by the system, but chosen deliberately -> error
1048−+ sslContext->ctx = 0;
1049−+ unsupportedProtocol = true;
1050−+#endif
1051−+ break;
1052−+ case QSsl::TlsV1_2:
1053−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
1054−+ sslContext->ctx = q_SSL_CTX_new(client ? q_TLSv1_2_client_method() : q_TLSv1_2_server_method());
1055−+#else
1056−+ // TLS 1.2 not supported by the system, but chosen deliberately -> error
1057−+ sslContext->ctx = 0;
1058−+ unsupportedProtocol = true;
1059−+#endif
1060−+ break;
1061−+ case QSsl::TlsV1_0OrLater:
1062−+ // Specific protocols will be specified via SSL options.
1063−+ sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method());
1064−+ break;
1065−+ case QSsl::TlsV1_1OrLater:
1066−+ case QSsl::TlsV1_2OrLater:
1067−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
1068−+ // Specific protocols will be specified via SSL options.
1069−+ sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method());
1070−+#else
1071−+ // TLS 1.1/1.2 not supported by the system, but chosen deliberately -> error
1072−+ sslContext->ctx = 0;
1073−+ unsupportedProtocol = true;
1074−+#endif
1075−+ break;
1076−+ }
1077−+
1078−+ if (!sslContext->ctx) {
1079−+ // After stopping Flash 10 the SSL library loses its ciphers. Try re-adding them
1080−+ // by re-initializing the library.
1081−+ if (!reinitialized) {
1082−+ reinitialized = true;
1083−+ if (q_SSL_library_init() == 1)
1084−+ goto init_context;
1085−+ }
1086−+
1087−+ sslContext->errorStr = QSslSocket::tr("Error creating SSL context (%1)").arg(
1088−+ unsupportedProtocol ? QSslSocket::tr("unsupported protocol") : QSslSocketBackendPrivate::getErrorsFromOpenSsl()
1089−+ );
1090−+ sslContext->errorCode = QSslError::UnspecifiedError;
1091−+ return;
1092−+ }
1093−+
1094−+ // Enable bug workarounds.
1095−+ long options = QSslSocketBackendPrivate::setupOpenSslOptions(configuration.protocol(), configuration.d->sslOptions);
1096−+ q_SSL_CTX_set_options(sslContext->ctx, options);
1097−+
1098−+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
1099−+ // Tell OpenSSL to release memory early
1100−+ // http://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html
1101−+ if (q_SSLeay() >= 0x10000000L)
1102−+ q_SSL_CTX_set_mode(sslContext->ctx, SSL_MODE_RELEASE_BUFFERS);
1103−+#endif
1104−+
1105−+ // Initialize ciphers
1106−+ QByteArray cipherString;
1107−+ bool first = true;
1108−+ QList<QSslCipher> ciphers = sslContext->sslConfiguration.ciphers();
1109−+ if (ciphers.isEmpty())
1110−+ ciphers = QSslSocketPrivate::defaultCiphers();
1111−+ for (const QSslCipher &cipher : qAsConst(ciphers)) {
1112−+ if (first)
1113−+ first = false;
1114−+ else
1115−+ cipherString.append(':');
1116−+ cipherString.append(cipher.name().toLatin1());
1117−+ }
1118−+
1119−+ if (!q_SSL_CTX_set_cipher_list(sslContext->ctx, cipherString.data())) {
1120−+ sslContext->errorStr = QSslSocket::tr("Invalid or empty cipher list (%1)").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
1121−+ sslContext->errorCode = QSslError::UnspecifiedError;
1122−+ return;
1123−+ }
1124−+
1125−+ const QDateTime now = QDateTime::currentDateTimeUtc();
1126−+
1127−+ // Add all our CAs to this store.
1128−+ const auto caCertificates = sslContext->sslConfiguration.caCertificates();
1129−+ for (const QSslCertificate &caCertificate : caCertificates) {
1130−+ // From https://www.openssl.org/docs/ssl/SSL_CTX_load_verify_locations.html:
1131−+ //
1132−+ // If several CA certificates matching the name, key identifier, and
1133−+ // serial number condition are available, only the first one will be
1134−+ // examined. This may lead to unexpected results if the same CA
1135−+ // certificate is available with different expiration dates. If a
1136−+ // ``certificate expired'' verification error occurs, no other
1137−+ // certificate will be searched. Make sure to not have expired
1138−+ // certificates mixed with valid ones.
1139−+ //
1140−+ // See also: QSslSocketBackendPrivate::verify()
1141−+ if (caCertificate.expiryDate() >= now) {
1142−+ q_X509_STORE_add_cert(q_SSL_CTX_get_cert_store(sslContext->ctx), (X509 *)caCertificate.handle());
1143−+ }
1144−+ }
1145−+
1146−+ if (QSslSocketPrivate::s_loadRootCertsOnDemand && allowRootCertOnDemandLoading) {
1147−+ // tell OpenSSL the directories where to look up the root certs on demand
1148−+ const QList<QByteArray> unixDirs = QSslSocketPrivate::unixRootCertDirectories();
1149−+ for (const QByteArray &unixDir : unixDirs)
1150−+ q_SSL_CTX_load_verify_locations(sslContext->ctx, 0, unixDir.constData());
1151−+ }
1152−+
1153−+ if (!sslContext->sslConfiguration.localCertificate().isNull()) {
1154−+ // Require a private key as well.
1155−+ if (sslContext->sslConfiguration.privateKey().isNull()) {
1156−+ sslContext->errorStr = QSslSocket::tr("Cannot provide a certificate with no key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
1157−+ sslContext->errorCode = QSslError::UnspecifiedError;
1158−+ return;
1159−+ }
1160−+
1161−+ // Load certificate
1162−+ if (!q_SSL_CTX_use_certificate(sslContext->ctx, (X509 *)sslContext->sslConfiguration.localCertificate().handle())) {
1163−+ sslContext->errorStr = QSslSocket::tr("Error loading local certificate, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
1164−+ sslContext->errorCode = QSslError::UnspecifiedError;
1165−+ return;
1166−+ }
1167−+
1168−+ if (configuration.d->privateKey.algorithm() == QSsl::Opaque) {
1169−+ sslContext->pkey = reinterpret_cast<EVP_PKEY *>(configuration.d->privateKey.handle());
1170−+ } else {
1171−+ // Load private key
1172−+ sslContext->pkey = q_EVP_PKEY_new();
1173−+ // before we were using EVP_PKEY_assign_R* functions and did not use EVP_PKEY_free.
1174−+ // this lead to a memory leak. Now we use the *_set1_* functions which do not
1175−+ // take ownership of the RSA/DSA key instance because the QSslKey already has ownership.
1176−+ if (configuration.d->privateKey.algorithm() == QSsl::Rsa)
1177−+ q_EVP_PKEY_set1_RSA(sslContext->pkey, reinterpret_cast<RSA *>(configuration.d->privateKey.handle()));
1178−+ else if (configuration.d->privateKey.algorithm() == QSsl::Dsa)
1179−+ q_EVP_PKEY_set1_DSA(sslContext->pkey, reinterpret_cast<DSA *>(configuration.d->privateKey.handle()));
1180−+#ifndef OPENSSL_NO_EC
1181−+ else if (configuration.d->privateKey.algorithm() == QSsl::Ec)
1182−+ q_EVP_PKEY_set1_EC_KEY(sslContext->pkey, reinterpret_cast<EC_KEY *>(configuration.d->privateKey.handle()));
1183−+#endif
1184−+ }
1185−+
1186−+ if (!q_SSL_CTX_use_PrivateKey(sslContext->ctx, sslContext->pkey)) {
1187−+ sslContext->errorStr = QSslSocket::tr("Error loading private key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
1188−+ sslContext->errorCode = QSslError::UnspecifiedError;
1189−+ return;
1190−+ }
1191−+ if (configuration.d->privateKey.algorithm() == QSsl::Opaque)
1192−+ sslContext->pkey = 0; // Don't free the private key, it belongs to QSslKey
1193−+
1194−+ // Check if the certificate matches the private key.
1195−+ if (!q_SSL_CTX_check_private_key(sslContext->ctx)) {
1196−+ sslContext->errorStr = QSslSocket::tr("Private key does not certify public key, %1").arg(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
1197−+ sslContext->errorCode = QSslError::UnspecifiedError;
1198−+ return;
1199−+ }
1200−+
1201−+ // If we have any intermediate certificates then we need to add them to our chain
1202−+ bool first = true;
1203−+ for (const QSslCertificate &cert : qAsConst(configuration.d->localCertificateChain)) {
1204−+ if (first) {
1205−+ first = false;
1206−+ continue;
1207−+ }
1208−+ q_SSL_CTX_ctrl(sslContext->ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0,
1209−+ q_X509_dup(reinterpret_cast<X509 *>(cert.handle())));
1210−+ }
1211−+ }
1212−+
1213−+ // Initialize peer verification.
1214−+ if (sslContext->sslConfiguration.peerVerifyMode() == QSslSocket::VerifyNone) {
1215−+ q_SSL_CTX_set_verify(sslContext->ctx, SSL_VERIFY_NONE, 0);
1216−+ } else {
1217−+ q_SSL_CTX_set_verify(sslContext->ctx, SSL_VERIFY_PEER, q_X509Callback);
1218−+ }
1219−+
1220−+ // Set verification depth.
1221−+ if (sslContext->sslConfiguration.peerVerifyDepth() != 0)
1222−+ q_SSL_CTX_set_verify_depth(sslContext->ctx, sslContext->sslConfiguration.peerVerifyDepth());
1223−+
1224−+ // set persisted session if the user set it
1225−+ if (!configuration.sessionTicket().isEmpty())
1226−+ sslContext->setSessionASN1(configuration.sessionTicket());
1227−+
1228−+ // Set temp DH params
1229−+ QSslDiffieHellmanParameters dhparams = configuration.diffieHellmanParameters();
1230−+
1231−+ if (!dhparams.isValid()) {
1232−+ sslContext->errorStr = QSslSocket::tr("Diffie-Hellman parameters are not valid");
1233−+ sslContext->errorCode = QSslError::UnspecifiedError;
1234−+ return;
1235−+ }
1236−+
1237−+ if (!dhparams.isEmpty()) {
1238−+ const QByteArray &params = dhparams.d->derData;
1239−+ const char *ptr = params.constData();
1240−+ DH *dh = q_d2i_DHparams(NULL, reinterpret_cast<const unsigned char **>(&ptr), params.length());
1241−+ if (dh == NULL)
1242−+ qFatal("q_d2i_DHparams failed to convert QSslDiffieHellmanParameters to DER form");
1243−+ q_SSL_CTX_set_tmp_dh(sslContext->ctx, dh);
1244−+ q_DH_free(dh);
1245−+ }
1246−+
1247−+#ifndef OPENSSL_NO_EC
1248−+#if OPENSSL_VERSION_NUMBER >= 0x10002000L
1249−+ if (q_SSLeay() >= 0x10002000L) {
1250−+ q_SSL_CTX_ctrl(sslContext->ctx, SSL_CTRL_SET_ECDH_AUTO, 1, NULL);
1251−+ } else
1252−+#endif
1253−+ {
1254−+ // Set temp ECDH params
1255−+ EC_KEY *ecdh = 0;
1256−+ ecdh = q_EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
1257−+ q_SSL_CTX_set_tmp_ecdh(sslContext->ctx, ecdh);
1258−+ q_EC_KEY_free(ecdh);
1259−+ }
1260−+#endif // OPENSSL_NO_EC
1261−+
1262−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
1263−+ if (!client)
1264−+ q_SSL_CTX_use_psk_identity_hint(sslContext->ctx, sslContext->sslConfiguration.preSharedKeyIdentityHint().constData());
1265−+#endif // OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
1266−+
1267−+ const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
1268−+ if (!qcurves.isEmpty()) {
1269−+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
1270−+ // Set the curves to be used
1271−+ if (q_SSLeay() >= 0x10002000L) {
1272−+ // SSL_CTX_ctrl wants a non-const pointer as last argument,
1273−+ // but let's avoid a copy into a temporary array
1274−+ if (!q_SSL_CTX_ctrl(sslContext->ctx,
1275−+ SSL_CTRL_SET_CURVES,
1276−+ qcurves.size(),
1277−+ const_cast<int *>(reinterpret_cast<const int *>(qcurves.data())))) {
1278−+ sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocketBackendPrivate::getErrorsFromOpenSsl());
1279−+ sslContext->errorCode = QSslError::UnspecifiedError;
1280−+ }
1281−+ } else
1282−+#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
1283−+ {
1284−+ // specific curves requested, but not possible to set -> error
1285−+ sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));
1286−+ sslContext->errorCode = QSslError::UnspecifiedError;
1287−+ }
1288−+ }
1289−+}
1290−+
1291−+QT_END_NAMESPACE
1292−diff --git a/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp b/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp
1293−index 90687b05c5..5ebad822f1 100644
1294−--- a/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp
1295−+++ b/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp
1296−@@ -1,6 +1,7 @@
1297− /****************************************************************************
1298− **
1299− ** Copyright (C) 2015 Mikkel Krautz <mikkel@krautz.dk>
1300−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
1301− ** Contact: https://www.qt.io/licensing/
1302− **
1303− ** This file is part of the QtNetwork module of the Qt Toolkit.
1304−@@ -50,8 +51,8 @@
1305− #include <QtCore/qdebug.h>
1306− #endif
1307−
1308−-// For q_BN_is_word.
1309− #include <openssl/bn.h>
1310−+#include <openssl/dh.h>
1311−
1312− QT_BEGIN_NAMESPACE
1313−
1314−@@ -62,13 +63,6 @@ static bool isSafeDH(DH *dh)
1315−
1316− QSslSocketPrivate::ensureInitialized();
1317−
1318−- // Mark p < 1024 bits as unsafe.
1319−- if (q_BN_num_bits(dh->p) < 1024) {
1320−- return false;
1321−- }
1322−-
1323−- if (q_DH_check(dh, &status) != 1)
1324−- return false;
1325−
1326− // From https://wiki.openssl.org/index.php/Diffie-Hellman_parameters:
1327− //
1328−@@ -81,11 +75,39 @@ static bool isSafeDH(DH *dh)
1329− // Without the test, the IETF parameters would
1330− // fail validation. For details, see Diffie-Hellman
1331− // Parameter Check (when g = 2, must p mod 24 == 11?).
1332−+#if QT_CONFIG(opensslv11)
1333−+ // Mark p < 1024 bits as unsafe.
1334−+ if (q_DH_bits(dh) < 1024)
1335−+ return false;
1336−+
1337−+ if (q_DH_check(dh, &status) != 1)
1338−+ return false;
1339−+
1340−+ const BIGNUM *p = nullptr;
1341−+ const BIGNUM *q = nullptr;
1342−+ const BIGNUM *g = nullptr;
1343−+ q_DH_get0_pqg(dh, &p, &q, &g);
1344−+
1345−+ if (q_BN_is_word(const_cast<BIGNUM *>(g), DH_GENERATOR_2)) {
1346−+ long residue = q_BN_mod_word(p, 24);
1347−+ if (residue == 11 || residue == 23)
1348−+ status &= ~DH_NOT_SUITABLE_GENERATOR;
1349−+ }
1350−+
1351−+#else
1352−+ // Mark p < 1024 bits as unsafe.
1353−+ if (q_BN_num_bits(dh->p) < 1024)
1354−+ return false;
1355−+
1356−+ if (q_DH_check(dh, &status) != 1)
1357−+ return false;
1358−+
1359− if (q_BN_is_word(dh->g, DH_GENERATOR_2)) {
1360− long residue = q_BN_mod_word(dh->p, 24);
1361− if (residue == 11 || residue == 23)
1362− status &= ~DH_NOT_SUITABLE_GENERATOR;
1363− }
1364−+#endif
1365−
1366− bad |= DH_CHECK_P_NOT_PRIME;
1367− bad |= DH_CHECK_P_NOT_SAFE_PRIME;
1368−diff --git a/src/network/ssl/qsslellipticcurve.h b/src/network/ssl/qsslellipticcurve.h
1369−index 231566063e..57dda19bad 100644
1370−--- a/src/network/ssl/qsslellipticcurve.h
1371−+++ b/src/network/ssl/qsslellipticcurve.h
1372−@@ -80,6 +80,7 @@ private:
1373− friend Q_DECL_CONSTEXPR bool operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs) Q_DECL_NOTHROW;
1374− friend Q_DECL_CONSTEXPR uint qHash(QSslEllipticCurve curve, uint seed) Q_DECL_NOTHROW;
1375−
1376−+ friend class QSslContext;
1377− friend class QSslSocketPrivate;
1378− friend class QSslSocketBackendPrivate;
1379− };
1380−diff --git a/src/network/ssl/qsslellipticcurve_openssl.cpp b/src/network/ssl/qsslellipticcurve_openssl.cpp
1381−index e18197b703..8cd14837f0 100644
1382−--- a/src/network/ssl/qsslellipticcurve_openssl.cpp
1383−+++ b/src/network/ssl/qsslellipticcurve_openssl.cpp
1384−@@ -1,6 +1,7 @@
1385− /****************************************************************************
1386− **
1387− ** Copyright (C) 2014 Governikus GmbH & Co. KG.
1388−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
1389− ** Contact: https://www.qt.io/licensing/
1390− **
1391− ** This file is part of the QtNetwork module of the Qt Toolkit.
1392−@@ -78,17 +79,18 @@ QSslEllipticCurve QSslEllipticCurve::fromShortName(const QString &name)
1393− QSslEllipticCurve result;
1394−
1395− #ifndef OPENSSL_NO_EC
1396−- const QByteArray curveNameLatin1 = name.toLatin1();
1397−
1398−+ const QByteArray curveNameLatin1 = name.toLatin1();
1399− int nid = q_OBJ_sn2nid(curveNameLatin1.data());
1400−
1401− #if OPENSSL_VERSION_NUMBER >= 0x10002000L
1402−- if (nid == 0 && q_SSLeay() >= 0x10002000L)
1403−+ if (nid == 0 && QSslSocket::sslLibraryVersionNumber() >= 0x10002000L)
1404− nid = q_EC_curve_nist2nid(curveNameLatin1.data());
1405− #endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
1406−
1407− result.id = nid;
1408−-#endif
1409−+
1410−+#endif // !OPENSSL_NO_EC
1411−
1412− return result;
1413− }
1414−diff --git a/src/network/ssl/qsslkey_openssl.cpp b/src/network/ssl/qsslkey_openssl.cpp
1415−index 26119023d1..2b03af9441 100644
1416−--- a/src/network/ssl/qsslkey_openssl.cpp
1417−+++ b/src/network/ssl/qsslkey_openssl.cpp
1418−@@ -1,6 +1,7 @@
1419− /****************************************************************************
1420− **
1421−-** Copyright (C) 2016 The Qt Company Ltd.
1422−+** Copyright (C) 2017 The Qt Company Ltd.
1423−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
1424− ** Contact: https://www.qt.io/licensing/
1425− **
1426− ** This file is part of the QtNetwork module of the Qt Toolkit.
1427−@@ -87,33 +88,32 @@ bool QSslKeyPrivate::fromEVP_PKEY(EVP_PKEY *pkey)
1428− if (pkey == nullptr)
1429− return false;
1430−
1431−- if (pkey->type == EVP_PKEY_RSA) {
1432−+#if QT_CONFIG(opensslv11)
1433−+ const int keyType = q_EVP_PKEY_type(q_EVP_PKEY_base_id(pkey));
1434−+#else
1435−+ const int keyType = pkey->type;
1436−+#endif
1437−+ if (keyType == EVP_PKEY_RSA) {
1438− isNull = false;
1439− algorithm = QSsl::Rsa;
1440− type = QSsl::PrivateKey;
1441−
1442−- rsa = q_RSA_new();
1443−- memcpy(rsa, q_EVP_PKEY_get1_RSA(pkey), sizeof(RSA));
1444−-
1445−+ rsa = q_EVP_PKEY_get1_RSA(pkey);
1446− return true;
1447−- }
1448−- else if (pkey->type == EVP_PKEY_DSA) {
1449−+ } else if (keyType == EVP_PKEY_DSA) {
1450− isNull = false;
1451− algorithm = QSsl::Dsa;
1452− type = QSsl::PrivateKey;
1453−
1454−- dsa = q_DSA_new();
1455−- memcpy(dsa, q_EVP_PKEY_get1_DSA(pkey), sizeof(DSA));
1456−-
1457−+ dsa = q_EVP_PKEY_get1_DSA(pkey);
1458− return true;
1459− }
1460− #ifndef OPENSSL_NO_EC
1461−- else if (pkey->type == EVP_PKEY_EC) {
1462−+ else if (keyType == EVP_PKEY_EC) {
1463− isNull = false;
1464− algorithm = QSsl::Ec;
1465− type = QSsl::PrivateKey;
1466−- ec = q_EC_KEY_dup(q_EVP_PKEY_get1_EC_KEY(pkey));
1467−-
1468−+ ec = q_EVP_PKEY_get1_EC_KEY(pkey);
1469− return true;
1470− }
1471− #endif
1472−@@ -181,8 +181,8 @@ int QSslKeyPrivate::length() const
1473− return -1;
1474−
1475− switch (algorithm) {
1476−- case QSsl::Rsa: return q_BN_num_bits(rsa->n);
1477−- case QSsl::Dsa: return q_BN_num_bits(dsa->p);
1478−+ case QSsl::Rsa: return q_RSA_bits(rsa);
1479−+ case QSsl::Dsa: return q_DSA_bits(dsa);
1480− #ifndef OPENSSL_NO_EC
1481− case QSsl::Ec: return q_EC_GROUP_get_degree(q_EC_KEY_get0_group(ec));
1482− #endif
1483−@@ -276,7 +276,13 @@ Qt::HANDLE QSslKeyPrivate::handle() const
1484−
1485− static QByteArray doCrypt(QSslKeyPrivate::Cipher cipher, const QByteArray &data, const QByteArray &key, const QByteArray &iv, int enc)
1486− {
1487−- EVP_CIPHER_CTX ctx;
1488−+#if QT_CONFIG(opensslv11)
1489−+ EVP_CIPHER_CTX *ctx = q_EVP_CIPHER_CTX_new();
1490−+#else
1491−+ EVP_CIPHER_CTX evpCipherContext;
1492−+ EVP_CIPHER_CTX *ctx = &evpCipherContext;
1493−+#endif
1494−+
1495− const EVP_CIPHER* type = 0;
1496− int i = 0, len = 0;
1497−
1498−@@ -294,21 +300,44 @@ static QByteArray doCrypt(QSslKeyPrivate::Cipher cipher, const QByteArray &data,
1499−
1500− QByteArray output;
1501− output.resize(data.size() + EVP_MAX_BLOCK_LENGTH);
1502−- q_EVP_CIPHER_CTX_init(&ctx);
1503−- q_EVP_CipherInit(&ctx, type, NULL, NULL, enc);
1504−- q_EVP_CIPHER_CTX_set_key_length(&ctx, key.size());
1505−+
1506−+#if QT_CONFIG(opensslv11)
1507−+ q_EVP_CIPHER_CTX_reset(ctx);
1508−+#else
1509−+ q_EVP_CIPHER_CTX_init(ctx);
1510−+#endif
1511−+
1512−+ q_EVP_CipherInit(ctx, type, NULL, NULL, enc);
1513−+ q_EVP_CIPHER_CTX_set_key_length(ctx, key.size());
1514− if (cipher == QSslKeyPrivate::Rc2Cbc)
1515−- q_EVP_CIPHER_CTX_ctrl(&ctx, EVP_CTRL_SET_RC2_KEY_BITS, 8 * key.size(), NULL);
1516−- q_EVP_CipherInit(&ctx, NULL,
1517−+ q_EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_SET_RC2_KEY_BITS, 8 * key.size(), NULL);
1518−+
1519−+#if QT_CONFIG(opensslv11)
1520−+ // EVP_CipherInit in 1.1 resets the context thus making the calls above useless.
1521−+ // We call EVP_CipherInit_ex instead.
1522−+ q_EVP_CipherInit_ex(ctx, nullptr, nullptr,
1523−+ reinterpret_cast<const unsigned char *>(key.constData()),
1524−+ reinterpret_cast<const unsigned char *>(iv.constData()),
1525−+ enc);
1526−+#else
1527−+ q_EVP_CipherInit(ctx, NULL,
1528− reinterpret_cast<const unsigned char *>(key.constData()),
1529− reinterpret_cast<const unsigned char *>(iv.constData()), enc);
1530−- q_EVP_CipherUpdate(&ctx,
1531−+#endif // opensslv11
1532−+
1533−+ q_EVP_CipherUpdate(ctx,
1534− reinterpret_cast<unsigned char *>(output.data()), &len,
1535− reinterpret_cast<const unsigned char *>(data.constData()), data.size());
1536−- q_EVP_CipherFinal(&ctx,
1537−+ q_EVP_CipherFinal(ctx,
1538− reinterpret_cast<unsigned char *>(output.data()) + len, &i);
1539− len += i;
1540−- q_EVP_CIPHER_CTX_cleanup(&ctx);
1541−+
1542−+#if QT_CONFIG(opensslv11)
1543−+ q_EVP_CIPHER_CTX_reset(ctx);
1544−+ q_EVP_CIPHER_CTX_free(ctx);
1545−+#else
1546−+ q_EVP_CIPHER_CTX_cleanup(ctx);
1547−+#endif
1548−
1549− return output.left(len);
1550− }
1551−diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp
1552−index f5b493897e..45cea490fc 100644
1553−--- a/src/network/ssl/qsslsocket_openssl.cpp
1554−+++ b/src/network/ssl/qsslsocket_openssl.cpp
1555−@@ -1,6 +1,6 @@
1556− /****************************************************************************
1557− **
1558−-** Copyright (C) 2016 The Qt Company Ltd.
1559−+** Copyright (C) 2017 The Qt Company Ltd.
1560− ** Copyright (C) 2014 Governikus GmbH & Co. KG
1561− ** Contact: https://www.qt.io/licensing/
1562− **
1563−@@ -97,70 +97,6 @@ bool QSslSocketPrivate::s_loadRootCertsOnDemand = false;
1564− int QSslSocketBackendPrivate::s_indexForSSLExtraData = -1;
1565− #endif
1566−
1567−-/* \internal
1568−-
1569−- From OpenSSL's thread(3) manual page:
1570−-
1571−- OpenSSL can safely be used in multi-threaded applications provided that at
1572−- least two callback functions are set.
1573−-
1574−- locking_function(int mode, int n, const char *file, int line) is needed to
1575−- perform locking on shared data structures. (Note that OpenSSL uses a
1576−- number of global data structures that will be implicitly shared
1577−- whenever multiple threads use OpenSSL.) Multi-threaded
1578−- applications will crash at random if it is not set. ...
1579−- ...
1580−- id_function(void) is a function that returns a thread ID. It is not
1581−- needed on Windows nor on platforms where getpid() returns a different
1582−- ID for each thread (most notably Linux)
1583−-*/
1584−-class QOpenSslLocks
1585−-{
1586−-public:
1587−- inline QOpenSslLocks()
1588−- : initLocker(QMutex::Recursive),
1589−- locksLocker(QMutex::Recursive)
1590−- {
1591−- QMutexLocker locker(&locksLocker);
1592−- int numLocks = q_CRYPTO_num_locks();
1593−- locks = new QMutex *[numLocks];
1594−- memset(locks, 0, numLocks * sizeof(QMutex *));
1595−- }
1596−- inline ~QOpenSslLocks()
1597−- {
1598−- QMutexLocker locker(&locksLocker);
1599−- for (int i = 0; i < q_CRYPTO_num_locks(); ++i)
1600−- delete locks[i];
1601−- delete [] locks;
1602−-
1603−- QSslSocketPrivate::deinitialize();
1604−- }
1605−- inline QMutex *lock(int num)
1606−- {
1607−- QMutexLocker locker(&locksLocker);
1608−- QMutex *tmp = locks[num];
1609−- if (!tmp)
1610−- tmp = locks[num] = new QMutex(QMutex::Recursive);
1611−- return tmp;
1612−- }
1613−-
1614−- QMutex *globalLock()
1615−- {
1616−- return &locksLocker;
1617−- }
1618−-
1619−- QMutex *initLock()
1620−- {
1621−- return &initLocker;
1622−- }
1623−-
1624−-private:
1625−- QMutex initLocker;
1626−- QMutex locksLocker;
1627−- QMutex **locks;
1628−-};
1629−-Q_GLOBAL_STATIC(QOpenSslLocks, openssl_locks)
1630−-
1631− QString QSslSocketBackendPrivate::getErrorsFromOpenSsl()
1632− {
1633− QString errorString;
1634−@@ -175,20 +111,6 @@ QString QSslSocketBackendPrivate::getErrorsFromOpenSsl()
1635− }
1636−
1637− extern "C" {
1638−-static void locking_function(int mode, int lockNumber, const char *, int)
1639−-{
1640−- QMutex *mutex = openssl_locks()->lock(lockNumber);
1641−-
1642−- // Lock or unlock it
1643−- if (mode & CRYPTO_LOCK)
1644−- mutex->lock();
1645−- else
1646−- mutex->unlock();
1647−-}
1648−-static unsigned long id_function()
1649−-{
1650−- return (quintptr)QThread::currentThreadId();
1651−-}
1652−
1653− #if OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
1654− static unsigned int q_ssl_psk_client_callback(SSL *ssl,
1655−@@ -227,7 +149,7 @@ QSslSocketBackendPrivate::~QSslSocketBackendPrivate()
1656− destroySslContext();
1657− }
1658−
1659−-QSslCipher QSslSocketBackendPrivate::QSslCipher_from_SSL_CIPHER(SSL_CIPHER *cipher)
1660−+QSslCipher QSslSocketBackendPrivate::QSslCipher_from_SSL_CIPHER(const SSL_CIPHER *cipher)
1661− {
1662− QSslCipher ciph;
1663−
1664−@@ -283,6 +205,7 @@ struct QSslErrorList
1665− QMutex mutex;
1666− QVector<QSslErrorEntry> errors;
1667− };
1668−+
1669− Q_GLOBAL_STATIC(QSslErrorList, _q_sslErrorList)
1670−
1671− int q_X509Callback(int ok, X509_STORE_CTX *ctx)
1672−@@ -312,7 +235,7 @@ int q_X509Callback(int ok, X509_STORE_CTX *ctx)
1673− }
1674− #endif
1675− }
1676−- // Always return OK to allow verification to continue. We're handle the
1677−+ // Always return OK to allow verification to continue. We handle the
1678− // errors gracefully after collecting all errors, after verification has
1679− // completed.
1680− return 1;
1681−@@ -397,7 +320,7 @@ bool QSslSocketBackendPrivate::initSslContext()
1682− if (configuration.protocol != QSsl::SslV2 &&
1683− configuration.protocol != QSsl::SslV3 &&
1684− configuration.protocol != QSsl::UnknownProtocol &&
1685−- mode == QSslSocket::SslClientMode && q_SSLeay() >= 0x00090806fL) {
1686−+ mode == QSslSocket::SslClientMode && QSslSocket::sslLibraryVersionNumber() >= 0x00090806fL) {
1687− // Set server hostname on TLS extension. RFC4366 section 3.1 requires it in ACE format.
1688− QString tlsHostName = verificationPeerName.isEmpty() ? q->peerName() : verificationPeerName;
1689− if (tlsHostName.isEmpty())
1690−@@ -438,13 +361,13 @@ bool QSslSocketBackendPrivate::initSslContext()
1691−
1692− #if OPENSSL_VERSION_NUMBER >= 0x10001000L
1693− // Save a pointer to this object into the SSL structure.
1694−- if (q_SSLeay() >= 0x10001000L)
1695−+ if (QSslSocket::sslLibraryVersionNumber() >= 0x10001000L)
1696− q_SSL_set_ex_data(ssl, s_indexForSSLExtraData, this);
1697− #endif
1698−
1699− #if OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
1700− // Set the client callback for PSK
1701−- if (q_SSLeay() >= 0x10001000L) {
1702−+ if (QSslSocket::sslLibraryVersionNumber() >= 0x10001000L) {
1703− if (mode == QSslSocket::SslClientMode)
1704− q_SSL_set_psk_client_callback(ssl, &q_ssl_psk_client_callback);
1705− else if (mode == QSslSocket::SslServerMode)
1706−@@ -464,16 +387,6 @@ void QSslSocketBackendPrivate::destroySslContext()
1707− sslContextPointer.clear();
1708− }
1709−
1710−-/*!
1711−- \internal
1712−-*/
1713−-void QSslSocketPrivate::deinitialize()
1714−-{
1715−- q_CRYPTO_set_id_callback(0);
1716−- q_CRYPTO_set_locking_callback(0);
1717−- q_ERR_free_strings();
1718−-}
1719−-
1720− /*!
1721− \internal
1722−
1723−@@ -486,91 +399,6 @@ bool QSslSocketPrivate::supportsSsl()
1724− return ensureLibraryLoaded();
1725− }
1726−
1727−-bool QSslSocketPrivate::ensureLibraryLoaded()
1728−-{
1729−- if (!q_resolveOpenSslSymbols())
1730−- return false;
1731−-
1732−- // Check if the library itself needs to be initialized.
1733−- QMutexLocker locker(openssl_locks()->initLock());
1734−-
1735−- if (!s_libraryLoaded) {
1736−- s_libraryLoaded = true;
1737−-
1738−- // Initialize OpenSSL.
1739−- q_CRYPTO_set_id_callback(id_function);
1740−- q_CRYPTO_set_locking_callback(locking_function);
1741−- if (q_SSL_library_init() != 1)
1742−- return false;
1743−- q_SSL_load_error_strings();
1744−- q_OpenSSL_add_all_algorithms();
1745−-
1746−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
1747−- if (q_SSLeay() >= 0x10001000L)
1748−- QSslSocketBackendPrivate::s_indexForSSLExtraData = q_SSL_get_ex_new_index(0L, NULL, NULL, NULL, NULL);
1749−-#endif
1750−-
1751−- // Initialize OpenSSL's random seed.
1752−- if (!q_RAND_status()) {
1753−- qWarning("Random number generator not seeded, disabling SSL support");
1754−- return false;
1755−- }
1756−- }
1757−- return true;
1758−-}
1759−-
1760−-void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
1761−-{
1762−- QMutexLocker locker(openssl_locks()->initLock());
1763−- if (s_loadedCiphersAndCerts)
1764−- return;
1765−- s_loadedCiphersAndCerts = true;
1766−-
1767−- resetDefaultCiphers();
1768−- resetDefaultEllipticCurves();
1769−-
1770−-#if QT_CONFIG(library)
1771−- //load symbols needed to receive certificates from system store
1772−-#if defined(Q_OS_WIN)
1773−- HINSTANCE hLib = LoadLibraryW(L"Crypt32");
1774−- if (hLib) {
1775−- ptrCertOpenSystemStoreW = (PtrCertOpenSystemStoreW)GetProcAddress(hLib, "CertOpenSystemStoreW");
1776−- ptrCertFindCertificateInStore = (PtrCertFindCertificateInStore)GetProcAddress(hLib, "CertFindCertificateInStore");
1777−- ptrCertCloseStore = (PtrCertCloseStore)GetProcAddress(hLib, "CertCloseStore");
1778−- if (!ptrCertOpenSystemStoreW || !ptrCertFindCertificateInStore || !ptrCertCloseStore)
1779−- qCWarning(lcSsl, "could not resolve symbols in crypt32 library"); // should never happen
1780−- } else {
1781−- qCWarning(lcSsl, "could not load crypt32 library"); // should never happen
1782−- }
1783−-#elif defined(Q_OS_QNX)
1784−- s_loadRootCertsOnDemand = true;
1785−-#elif defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
1786−- // check whether we can enable on-demand root-cert loading (i.e. check whether the sym links are there)
1787−- QList<QByteArray> dirs = unixRootCertDirectories();
1788−- QStringList symLinkFilter;
1789−- symLinkFilter << QLatin1String("[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].[0-9]");
1790−- for (int a = 0; a < dirs.count(); ++a) {
1791−- QDirIterator iterator(QLatin1String(dirs.at(a)), symLinkFilter, QDir::Files);
1792−- if (iterator.hasNext()) {
1793−- s_loadRootCertsOnDemand = true;
1794−- break;
1795−- }
1796−- }
1797−-#endif
1798−-#endif // QT_CONFIG(library)
1799−- // if on-demand loading was not enabled, load the certs now
1800−- if (!s_loadRootCertsOnDemand)
1801−- setDefaultCaCertificates(systemCaCertificates());
1802−-#ifdef Q_OS_WIN
1803−- //Enabled for fetching additional root certs from windows update on windows 6+
1804−- //This flag is set false by setDefaultCaCertificates() indicating the app uses
1805−- //its own cert bundle rather than the system one.
1806−- //Same logic that disables the unix on demand cert loading.
1807−- //Unlike unix, we do preload the certificates from the cert store.
1808−- if ((QSysInfo::windowsVersion() & QSysInfo::WV_NT_based) >= QSysInfo::WV_6_0)
1809−- s_loadRootCertsOnDemand = true;
1810−-#endif
1811−-}
1812−
1813− /*!
1814− \internal
1815−@@ -587,26 +415,6 @@ void QSslSocketPrivate::ensureInitialized()
1816− ensureCiphersAndCertsLoaded();
1817− }
1818−
1819−-long QSslSocketPrivate::sslLibraryVersionNumber()
1820−-{
1821−- if (!supportsSsl())
1822−- return 0;
1823−-
1824−- return q_SSLeay();
1825−-}
1826−-
1827−-QString QSslSocketPrivate::sslLibraryVersionString()
1828−-{
1829−- if (!supportsSsl())
1830−- return QString();
1831−-
1832−- const char *versionString = q_SSLeay_version(SSLEAY_VERSION);
1833−- if (!versionString)
1834−- return QString();
1835−-
1836−- return QString::fromLatin1(versionString);
1837−-}
1838−-
1839− long QSslSocketPrivate::sslLibraryBuildVersionNumber()
1840− {
1841− return OPENSSL_VERSION_NUMBER;
1842−@@ -628,7 +436,11 @@ QString QSslSocketPrivate::sslLibraryBuildVersionString()
1843− */
1844− void QSslSocketPrivate::resetDefaultCiphers()
1845− {
1846−+#if QT_CONFIG(opensslv11)
1847−+ SSL_CTX *myCtx = q_SSL_CTX_new(q_TLS_client_method());
1848−+#else
1849− SSL_CTX *myCtx = q_SSL_CTX_new(q_SSLv23_client_method());
1850−+#endif
1851− SSL *mySsl = q_SSL_new(myCtx);
1852−
1853− QList<QSslCipher> ciphers;
1854−@@ -664,7 +476,7 @@ void QSslSocketPrivate::resetDefaultEllipticCurves()
1855− QVector<QSslEllipticCurve> curves;
1856−
1857− #ifndef OPENSSL_NO_EC
1858−- const size_t curveCount = q_EC_get_builtin_curves(NULL, 0);
1859−+ const size_t curveCount = q_EC_get_builtin_curves(nullptr, 0);
1860−
1861− QVarLengthArray<EC_builtin_curve> builtinCurves(static_cast<int>(curveCount));
1862−
1863−@@ -698,13 +510,14 @@ QList<QSslCertificate> QSslSocketPrivate::systemCaCertificates()
1864− if (ptrCertOpenSystemStoreW && ptrCertFindCertificateInStore && ptrCertCloseStore) {
1865− HCERTSTORE hSystemStore;
1866− hSystemStore = ptrCertOpenSystemStoreW(0, L"ROOT");
1867−- if(hSystemStore) {
1868−- PCCERT_CONTEXT pc = NULL;
1869−- while(1) {
1870−- pc = ptrCertFindCertificateInStore( hSystemStore, X509_ASN_ENCODING, 0, CERT_FIND_ANY, NULL, pc);
1871−- if(!pc)
1872−+ if (hSystemStore) {
1873−+ PCCERT_CONTEXT pc = nullptr;
1874−+ while (1) {
1875−+ pc = ptrCertFindCertificateInStore(hSystemStore, X509_ASN_ENCODING, 0, CERT_FIND_ANY, nullptr, pc);
1876−+ if (!pc)
1877− break;
1878−- QByteArray der((const char *)(pc->pbCertEncoded), static_cast<int>(pc->cbCertEncoded));
1879−+ QByteArray der(reinterpret_cast<const char *>(pc->pbCertEncoded),
1880−+ static_cast<int>(pc->cbCertEncoded));
1881− QSslCertificate cert(der, QSsl::Der);
1882− systemCerts.append(cert);
1883− }
1884−@@ -1504,14 +1317,8 @@ QSslCipher QSslSocketBackendPrivate::sessionCipher() const
1885− {
1886− if (!ssl)
1887− return QSslCipher();
1888−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
1889−- // FIXME This is fairly evil, but needed to keep source level compatibility
1890−- // with the OpenSSL 0.9.x implementation at maximum -- some other functions
1891−- // don't take a const SSL_CIPHER* when they should
1892−- SSL_CIPHER *sessionCipher = const_cast<SSL_CIPHER *>(q_SSL_get_current_cipher(ssl));
1893−-#else
1894−- SSL_CIPHER *sessionCipher = q_SSL_get_current_cipher(ssl);
1895−-#endif
1896−+
1897−+ const SSL_CIPHER *sessionCipher = q_SSL_get_current_cipher(ssl);
1898− return sessionCipher ? QSslCipher_from_SSL_CIPHER(sessionCipher) : QSslCipher();
1899− }
1900−
1901−@@ -1537,112 +1344,6 @@ QSsl::SslProtocol QSslSocketBackendPrivate::sessionProtocol() const
1902− return QSsl::UnknownProtocol;
1903− }
1904−
1905−-void QSslSocketBackendPrivate::continueHandshake()
1906−-{
1907−- Q_Q(QSslSocket);
1908−- // if we have a max read buffer size, reset the plain socket's to match
1909−- if (readBufferMaxSize)
1910−- plainSocket->setReadBufferSize(readBufferMaxSize);
1911−-
1912−- if (q_SSL_ctrl((ssl), SSL_CTRL_GET_SESSION_REUSED, 0, NULL))
1913−- configuration.peerSessionShared = true;
1914−-
1915−-#ifdef QT_DECRYPT_SSL_TRAFFIC
1916−- if (ssl->session && ssl->s3) {
1917−- const char *mk = reinterpret_cast<const char *>(ssl->session->master_key);
1918−- QByteArray masterKey(mk, ssl->session->master_key_length);
1919−- const char *random = reinterpret_cast<const char *>(ssl->s3->client_random);
1920−- QByteArray clientRandom(random, SSL3_RANDOM_SIZE);
1921−-
1922−- // different format, needed for e.g. older Wireshark versions:
1923−-// const char *sid = reinterpret_cast<const char *>(ssl->session->session_id);
1924−-// QByteArray sessionID(sid, ssl->session->session_id_length);
1925−-// QByteArray debugLineRSA("RSA Session-ID:");
1926−-// debugLineRSA.append(sessionID.toHex().toUpper());
1927−-// debugLineRSA.append(" Master-Key:");
1928−-// debugLineRSA.append(masterKey.toHex().toUpper());
1929−-// debugLineRSA.append("\n");
1930−-
1931−- QByteArray debugLineClientRandom("CLIENT_RANDOM ");
1932−- debugLineClientRandom.append(clientRandom.toHex().toUpper());
1933−- debugLineClientRandom.append(" ");
1934−- debugLineClientRandom.append(masterKey.toHex().toUpper());
1935−- debugLineClientRandom.append("\n");
1936−-
1937−- QString sslKeyFile = QDir::tempPath() + QLatin1String("/qt-ssl-keys");
1938−- QFile file(sslKeyFile);
1939−- if (!file.open(QIODevice::Append))
1940−- qCWarning(lcSsl) << "could not open file" << sslKeyFile << "for appending";
1941−- if (!file.write(debugLineClientRandom))
1942−- qCWarning(lcSsl) << "could not write to file" << sslKeyFile;
1943−- file.close();
1944−- } else {
1945−- qCWarning(lcSsl, "could not decrypt SSL traffic");
1946−- }
1947−-#endif
1948−-
1949−- // Cache this SSL session inside the QSslContext
1950−- if (!(configuration.sslOptions & QSsl::SslOptionDisableSessionSharing)) {
1951−- if (!sslContextPointer->cacheSession(ssl)) {
1952−- sslContextPointer.clear(); // we could not cache the session
1953−- } else {
1954−- // Cache the session for permanent usage as well
1955−- if (!(configuration.sslOptions & QSsl::SslOptionDisableSessionPersistence)) {
1956−- if (!sslContextPointer->sessionASN1().isEmpty())
1957−- configuration.sslSession = sslContextPointer->sessionASN1();
1958−- configuration.sslSessionTicketLifeTimeHint = sslContextPointer->sessionTicketLifeTimeHint();
1959−- }
1960−- }
1961−- }
1962−-
1963−-#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && !defined(OPENSSL_NO_NEXTPROTONEG)
1964−-
1965−- configuration.nextProtocolNegotiationStatus = sslContextPointer->npnContext().status;
1966−- if (sslContextPointer->npnContext().status == QSslConfiguration::NextProtocolNegotiationUnsupported) {
1967−- // we could not agree -> be conservative and use HTTP/1.1
1968−- configuration.nextNegotiatedProtocol = QByteArrayLiteral("http/1.1");
1969−- } else {
1970−- const unsigned char *proto = 0;
1971−- unsigned int proto_len = 0;
1972−-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
1973−- if (q_SSLeay() >= 0x10002000L) {
1974−- q_SSL_get0_alpn_selected(ssl, &proto, &proto_len);
1975−- if (proto_len && mode == QSslSocket::SslClientMode) {
1976−- // Client does not have a callback that sets it ...
1977−- configuration.nextProtocolNegotiationStatus = QSslConfiguration::NextProtocolNegotiationNegotiated;
1978−- }
1979−- }
1980−-
1981−- if (!proto_len) { // Test if NPN was more lucky ...
1982−-#else
1983−- {
1984−-#endif
1985−- q_SSL_get0_next_proto_negotiated(ssl, &proto, &proto_len);
1986−- }
1987−-
1988−- if (proto_len)
1989−- configuration.nextNegotiatedProtocol = QByteArray(reinterpret_cast<const char *>(proto), proto_len);
1990−- else
1991−- configuration.nextNegotiatedProtocol.clear();
1992−- }
1993−-#endif // OPENSSL_VERSION_NUMBER >= 0x1000100fL ...
1994−-
1995−-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
1996−- if (q_SSLeay() >= 0x10002000L && mode == QSslSocket::SslClientMode) {
1997−- EVP_PKEY *key;
1998−- if (q_SSL_get_server_tmp_key(ssl, &key))
1999−- configuration.ephemeralServerKey = QSslKey(key, QSsl::PublicKey);
2000−- }
2001−-#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L ...
2002−-
2003−- connectionEncrypted = true;
2004−- emit q->encrypted();
2005−- if (autoStartHandshake && pendingClose) {
2006−- pendingClose = false;
2007−- q->disconnectFromHost();
2008−- }
2009−-}
2010−-
2011− QList<QSslCertificate> QSslSocketBackendPrivate::STACKOFX509_to_QSslCertificates(STACK_OF(X509) *x509)
2012− {
2013− ensureInitialized();
2014−@@ -1696,12 +1397,12 @@ QList<QSslError> QSslSocketBackendPrivate::verify(const QList<QSslCertificate> &
2015− QMutexLocker sslErrorListMutexLocker(&_q_sslErrorList()->mutex);
2016−
2017− // Register a custom callback to get all verification errors.
2018−- X509_STORE_set_verify_cb_func(certStore, q_X509Callback);
2019−+ q_X509_STORE_set_verify_cb(certStore, q_X509Callback);
2020−
2021− // Build the chain of intermediate certificates
2022− STACK_OF(X509) *intermediates = 0;
2023− if (certificateChain.length() > 1) {
2024−- intermediates = (STACK_OF(X509) *) q_sk_new_null();
2025−+ intermediates = (STACK_OF(X509) *) q_OPENSSL_sk_new_null();
2026−
2027− if (!intermediates) {
2028− q_X509_STORE_free(certStore);
2029−@@ -1715,11 +1416,8 @@ QList<QSslError> QSslSocketBackendPrivate::verify(const QList<QSslCertificate> &
2030− first = false;
2031− continue;
2032− }
2033−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2034−- q_sk_push( (_STACK *)intermediates, reinterpret_cast<X509 *>(cert.handle()));
2035−-#else
2036−- q_sk_push( (STACK *)intermediates, reinterpret_cast<char *>(cert.handle()));
2037−-#endif
2038−+
2039−+ q_OPENSSL_sk_push((OPENSSL_STACK *)intermediates, reinterpret_cast<X509 *>(cert.handle()));
2040− }
2041− }
2042−
2043−@@ -1743,11 +1441,7 @@ QList<QSslError> QSslSocketBackendPrivate::verify(const QList<QSslCertificate> &
2044− (void) q_X509_verify_cert(storeContext);
2045−
2046− q_X509_STORE_CTX_free(storeContext);
2047−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2048−- q_sk_free( (_STACK *) intermediates);
2049−-#else
2050−- q_sk_free( (STACK *) intermediates);
2051−-#endif
2052−+ q_OPENSSL_sk_free((OPENSSL_STACK *)intermediates);
2053−
2054− // Now process the errors
2055− const auto errorList = std::move(_q_sslErrorList()->errors);
2056−@@ -1821,7 +1515,8 @@ bool QSslSocketBackendPrivate::importPkcs12(QIODevice *device,
2057− // Convert to Qt types
2058− if (!key->d->fromEVP_PKEY(pkey)) {
2059− qCWarning(lcSsl, "Unable to convert private key");
2060−- q_sk_pop_free(reinterpret_cast<STACK *>(ca), reinterpret_cast<void(*)(void*)>(q_sk_free));
2061−+ q_OPENSSL_sk_pop_free(reinterpret_cast<OPENSSL_STACK *>(ca),
2062−+ reinterpret_cast<void (*)(void *)>(q_OPENSSL_sk_free));
2063− q_X509_free(x509);
2064− q_EVP_PKEY_free(pkey);
2065− q_PKCS12_free(p12);
2066−@@ -1836,7 +1531,11 @@ bool QSslSocketBackendPrivate::importPkcs12(QIODevice *device,
2067− *caCertificates = QSslSocketBackendPrivate::STACKOFX509_to_QSslCertificates(ca);
2068−
2069− // Clean up
2070−- q_sk_pop_free(reinterpret_cast<STACK *>(ca), reinterpret_cast<void(*)(void*)>(q_sk_free));
2071−+ // TODO: verify ASAP, in the past we had sk_pop_free with q_OPENSSL_sk_free
2072−+ // which seems to be blatantly wrong and even crashes with 1.1.
2073−+ q_OPENSSL_sk_pop_free(reinterpret_cast<OPENSSL_STACK *>(ca),
2074−+ reinterpret_cast<void (*)(void *)>(q_X509_free));
2075−+
2076− q_X509_free(x509);
2077− q_EVP_PKEY_free(pkey);
2078− q_PKCS12_free(p12);
2079−diff --git a/src/network/ssl/qsslsocket_openssl11.cpp b/src/network/ssl/qsslsocket_openssl11.cpp
2080−new file mode 100644
2081−index 0000000000..b6d18943a5
2082−--- /dev/null
2083−+++ b/src/network/ssl/qsslsocket_openssl11.cpp
2084−@@ -0,0 +1,285 @@
2085−+/****************************************************************************
2086−+**
2087−+** Copyright (C) 2017 The Qt Company Ltd.
2088−+** Copyright (C) 2014 Governikus GmbH & Co. KG
2089−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
2090−+** Contact: https://www.qt.io/licensing/
2091−+**
2092−+** This file is part of the QtNetwork module of the Qt Toolkit.
2093−+**
2094−+** $QT_BEGIN_LICENSE:LGPL$
2095−+** Commercial License Usage
2096−+** Licensees holding valid commercial Qt licenses may use this file in
2097−+** accordance with the commercial license agreement provided with the
2098−+** Software or, alternatively, in accordance with the terms contained in
2099−+** a written agreement between you and The Qt Company. For licensing terms
2100−+** and conditions see https://www.qt.io/terms-conditions. For further
2101−+** information use the contact form at https://www.qt.io/contact-us.
2102−+**
2103−+** GNU Lesser General Public License Usage
2104−+** Alternatively, this file may be used under the terms of the GNU Lesser
2105−+** General Public License version 3 as published by the Free Software
2106−+** Foundation and appearing in the file LICENSE.LGPL3 included in the
2107−+** packaging of this file. Please review the following information to
2108−+** ensure the GNU Lesser General Public License version 3 requirements
2109−+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
2110−+**
2111−+** GNU General Public License Usage
2112−+** Alternatively, this file may be used under the terms of the GNU
2113−+** General Public License version 2.0 or (at your option) the GNU General
2114−+** Public license version 3 or any later version approved by the KDE Free
2115−+** Qt Foundation. The licenses are as published by the Free Software
2116−+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
2117−+** included in the packaging of this file. Please review the following
2118−+** information to ensure the GNU General Public License requirements will
2119−+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
2120−+** https://www.gnu.org/licenses/gpl-3.0.html.
2121−+**
2122−+** $QT_END_LICENSE$
2123−+**
2124−+****************************************************************************/
2125−+
2126−+/****************************************************************************
2127−+**
2128−+** In addition, as a special exception, the copyright holders listed above give
2129−+** permission to link the code of its release of Qt with the OpenSSL project's
2130−+** "OpenSSL" library (or modified versions of the "OpenSSL" library that use the
2131−+** same license as the original version), and distribute the linked executables.
2132−+**
2133−+** You must comply with the GNU General Public License version 2 in all
2134−+** respects for all of the code used other than the "OpenSSL" code. If you
2135−+** modify this file, you may extend this exception to your version of the file,
2136−+** but you are not obligated to do so. If you do not wish to do so, delete
2137−+** this exception statement from your version of this file.
2138−+**
2139−+****************************************************************************/
2140−+
2141−+//#define QT_DECRYPT_SSL_TRAFFIC
2142−+
2143−+#include "qssl_p.h"
2144−+#include "qsslsocket_openssl_p.h"
2145−+#include "qsslsocket_openssl_symbols_p.h"
2146−+#include "qsslsocket.h"
2147−+#include "qsslkey.h"
2148−+
2149−+#include <QtCore/qdebug.h>
2150−+#include <QtCore/qdir.h>
2151−+#include <QtCore/qdiriterator.h>
2152−+#include <QtCore/qfile.h>
2153−+#include <QtCore/qmutex.h>
2154−+#include <QtCore/qlibrary.h>
2155−+
2156−+QT_BEGIN_NAMESPACE
2157−+
2158−+Q_GLOBAL_STATIC_WITH_ARGS(QMutex, qt_opensslInitMutex, (QMutex::Recursive))
2159−+
2160−+/*!
2161−+ \internal
2162−+*/
2163−+void QSslSocketPrivate::deinitialize()
2164−+{
2165−+ // This function exists only for compatibility with the pre-11 code,
2166−+ // where deinitialize() actually does some cleanup. To be discarded
2167−+ // once we retire < 1.1.
2168−+}
2169−+
2170−+bool QSslSocketPrivate::ensureLibraryLoaded()
2171−+{
2172−+ if (!q_resolveOpenSslSymbols())
2173−+ return false;
2174−+
2175−+ const QMutexLocker locker(qt_opensslInitMutex);
2176−+
2177−+ if (!s_libraryLoaded) {
2178−+ s_libraryLoaded = true;
2179−+
2180−+ // Initialize OpenSSL.
2181−+ if (q_OPENSSL_init_ssl(0, nullptr) != 1)
2182−+ return false;
2183−+ q_SSL_load_error_strings();
2184−+ q_OpenSSL_add_all_algorithms();
2185−+
2186−+ QSslSocketBackendPrivate::s_indexForSSLExtraData
2187−+ = q_CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, 0L, nullptr, nullptr,
2188−+ nullptr, nullptr);
2189−+
2190−+ // Initialize OpenSSL's random seed.
2191−+ if (!q_RAND_status()) {
2192−+ qWarning("Random number generator not seeded, disabling SSL support");
2193−+ return false;
2194−+ }
2195−+ }
2196−+ return true;
2197−+}
2198−+
2199−+void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
2200−+{
2201−+ const QMutexLocker locker(qt_opensslInitMutex);
2202−+
2203−+ if (s_loadedCiphersAndCerts)
2204−+ return;
2205−+ s_loadedCiphersAndCerts = true;
2206−+
2207−+ resetDefaultCiphers();
2208−+ resetDefaultEllipticCurves();
2209−+
2210−+#if QT_CONFIG(library)
2211−+ //load symbols needed to receive certificates from system store
2212−+#if defined(Q_OS_WIN)
2213−+ HINSTANCE hLib = LoadLibraryW(L"Crypt32");
2214−+ if (hLib) {
2215−+ ptrCertOpenSystemStoreW = (PtrCertOpenSystemStoreW)GetProcAddress(hLib, "CertOpenSystemStoreW");
2216−+ ptrCertFindCertificateInStore = (PtrCertFindCertificateInStore)GetProcAddress(hLib, "CertFindCertificateInStore");
2217−+ ptrCertCloseStore = (PtrCertCloseStore)GetProcAddress(hLib, "CertCloseStore");
2218−+ if (!ptrCertOpenSystemStoreW || !ptrCertFindCertificateInStore || !ptrCertCloseStore)
2219−+ qCWarning(lcSsl, "could not resolve symbols in crypt32 library"); // should never happen
2220−+ } else {
2221−+ qCWarning(lcSsl, "could not load crypt32 library"); // should never happen
2222−+ }
2223−+#elif defined(Q_OS_QNX)
2224−+ s_loadRootCertsOnDemand = true;
2225−+#elif defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN)
2226−+ // check whether we can enable on-demand root-cert loading (i.e. check whether the sym links are there)
2227−+ QList<QByteArray> dirs = unixRootCertDirectories();
2228−+ QStringList symLinkFilter;
2229−+ symLinkFilter << QLatin1String("[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].[0-9]");
2230−+ for (int a = 0; a < dirs.count(); ++a) {
2231−+ QDirIterator iterator(QLatin1String(dirs.at(a)), symLinkFilter, QDir::Files);
2232−+ if (iterator.hasNext()) {
2233−+ s_loadRootCertsOnDemand = true;
2234−+ break;
2235−+ }
2236−+ }
2237−+#endif
2238−+#endif // QT_CONFIG(library)
2239−+ // if on-demand loading was not enabled, load the certs now
2240−+ if (!s_loadRootCertsOnDemand)
2241−+ setDefaultCaCertificates(systemCaCertificates());
2242−+#ifdef Q_OS_WIN
2243−+ //Enabled for fetching additional root certs from windows update on windows 6+
2244−+ //This flag is set false by setDefaultCaCertificates() indicating the app uses
2245−+ //its own cert bundle rather than the system one.
2246−+ //Same logic that disables the unix on demand cert loading.
2247−+ //Unlike unix, we do preload the certificates from the cert store.
2248−+ if ((QSysInfo::windowsVersion() & QSysInfo::WV_NT_based) >= QSysInfo::WV_6_0)
2249−+ s_loadRootCertsOnDemand = true;
2250−+#endif
2251−+}
2252−+
2253−+long QSslSocketPrivate::sslLibraryVersionNumber()
2254−+{
2255−+ if (!supportsSsl())
2256−+ return 0;
2257−+
2258−+ return q_OpenSSL_version_num();
2259−+}
2260−+
2261−+QString QSslSocketPrivate::sslLibraryVersionString()
2262−+{
2263−+ if (!supportsSsl())
2264−+ return QString();
2265−+
2266−+ const char *versionString = q_OpenSSL_version(OPENSSL_VERSION);
2267−+ if (!versionString)
2268−+ return QString();
2269−+
2270−+ return QString::fromLatin1(versionString);
2271−+}
2272−+
2273−+void QSslSocketBackendPrivate::continueHandshake()
2274−+{
2275−+ Q_Q(QSslSocket);
2276−+ // if we have a max read buffer size, reset the plain socket's to match
2277−+ if (readBufferMaxSize)
2278−+ plainSocket->setReadBufferSize(readBufferMaxSize);
2279−+
2280−+ if (q_SSL_session_reused(ssl))
2281−+ configuration.peerSessionShared = true;
2282−+
2283−+#ifdef QT_DECRYPT_SSL_TRAFFIC
2284−+ if (q_SSL_get_session(ssl)) {
2285−+ size_t master_key_len = q_SSL_SESSION_get_master_key(q_SSL_get_session(ssl), 0, 0);
2286−+ size_t client_random_len = q_SSL_get_client_random(ssl, 0, 0);
2287−+ QByteArray masterKey(int(master_key_len), 0); // Will not overflow
2288−+ QByteArray clientRandom(int(client_random_len), 0); // Will not overflow
2289−+
2290−+ q_SSL_SESSION_get_master_key(q_SSL_get_session(ssl),
2291−+ reinterpret_cast<unsigned char*>(masterKey.data()),
2292−+ masterKey.size());
2293−+ q_SSL_get_client_random(ssl, reinterpret_cast<unsigned char *>(clientRandom.data()),
2294−+ clientRandom.size());
2295−+
2296−+ QByteArray debugLineClientRandom("CLIENT_RANDOM ");
2297−+ debugLineClientRandom.append(clientRandom.toHex().toUpper());
2298−+ debugLineClientRandom.append(" ");
2299−+ debugLineClientRandom.append(masterKey.toHex().toUpper());
2300−+ debugLineClientRandom.append("\n");
2301−+
2302−+ QString sslKeyFile = QDir::tempPath() + QLatin1String("/qt-ssl-keys");
2303−+ QFile file(sslKeyFile);
2304−+ if (!file.open(QIODevice::Append))
2305−+ qCWarning(lcSsl) << "could not open file" << sslKeyFile << "for appending";
2306−+ if (!file.write(debugLineClientRandom))
2307−+ qCWarning(lcSsl) << "could not write to file" << sslKeyFile;
2308−+ file.close();
2309−+ } else {
2310−+ qCWarning(lcSsl, "could not decrypt SSL traffic");
2311−+ }
2312−+#endif
2313−+
2314−+ // Cache this SSL session inside the QSslContext
2315−+ if (!(configuration.sslOptions & QSsl::SslOptionDisableSessionSharing)) {
2316−+ if (!sslContextPointer->cacheSession(ssl)) {
2317−+ sslContextPointer.clear(); // we could not cache the session
2318−+ } else {
2319−+ // Cache the session for permanent usage as well
2320−+ if (!(configuration.sslOptions & QSsl::SslOptionDisableSessionPersistence)) {
2321−+ if (!sslContextPointer->sessionASN1().isEmpty())
2322−+ configuration.sslSession = sslContextPointer->sessionASN1();
2323−+ configuration.sslSessionTicketLifeTimeHint = sslContextPointer->sessionTicketLifeTimeHint();
2324−+ }
2325−+ }
2326−+ }
2327−+
2328−+#if !defined(OPENSSL_NO_NEXTPROTONEG)
2329−+
2330−+ configuration.nextProtocolNegotiationStatus = sslContextPointer->npnContext().status;
2331−+ if (sslContextPointer->npnContext().status == QSslConfiguration::NextProtocolNegotiationUnsupported) {
2332−+ // we could not agree -> be conservative and use HTTP/1.1
2333−+ configuration.nextNegotiatedProtocol = QByteArrayLiteral("http/1.1");
2334−+ } else {
2335−+ const unsigned char *proto = 0;
2336−+ unsigned int proto_len = 0;
2337−+
2338−+ q_SSL_get0_alpn_selected(ssl, &proto, &proto_len);
2339−+ if (proto_len && mode == QSslSocket::SslClientMode) {
2340−+ // Client does not have a callback that sets it ...
2341−+ configuration.nextProtocolNegotiationStatus = QSslConfiguration::NextProtocolNegotiationNegotiated;
2342−+ }
2343−+
2344−+ if (!proto_len) { // Test if NPN was more lucky ...
2345−+ q_SSL_get0_next_proto_negotiated(ssl, &proto, &proto_len);
2346−+ }
2347−+
2348−+ if (proto_len)
2349−+ configuration.nextNegotiatedProtocol = QByteArray(reinterpret_cast<const char *>(proto), proto_len);
2350−+ else
2351−+ configuration.nextNegotiatedProtocol.clear();
2352−+ }
2353−+#endif // !defined(OPENSSL_NO_NEXTPROTONEG)
2354−+
2355−+ if (mode == QSslSocket::SslClientMode) {
2356−+ EVP_PKEY *key;
2357−+ if (q_SSL_get_server_tmp_key(ssl, &key))
2358−+ configuration.ephemeralServerKey = QSslKey(key, QSsl::PublicKey);
2359−+ }
2360−+
2361−+ connectionEncrypted = true;
2362−+ emit q->encrypted();
2363−+ if (autoStartHandshake && pendingClose) {
2364−+ pendingClose = false;
2365−+ q->disconnectFromHost();
2366−+ }
2367−+}
2368−+
2369−+QT_END_NAMESPACE
2370−diff --git a/src/network/ssl/qsslsocket_openssl11_symbols_p.h b/src/network/ssl/qsslsocket_openssl11_symbols_p.h
2371−new file mode 100644
2372−index 0000000000..2980b3d23e
2373−--- /dev/null
2374−+++ b/src/network/ssl/qsslsocket_openssl11_symbols_p.h
2375−@@ -0,0 +1,132 @@
2376−+/****************************************************************************
2377−+**
2378−+** Copyright (C) 2017 The Qt Company Ltd.
2379−+** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
2380−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
2381−+** Contact: https://www.qt.io/licensing/
2382−+**
2383−+** This file is part of the QtNetwork module of the Qt Toolkit.
2384−+**
2385−+** $QT_BEGIN_LICENSE:LGPL$
2386−+** Commercial License Usage
2387−+** Licensees holding valid commercial Qt licenses may use this file in
2388−+** accordance with the commercial license agreement provided with the
2389−+** Software or, alternatively, in accordance with the terms contained in
2390−+** a written agreement between you and The Qt Company. For licensing terms
2391−+** and conditions see https://www.qt.io/terms-conditions. For further
2392−+** information use the contact form at https://www.qt.io/contact-us.
2393−+**
2394−+** GNU Lesser General Public License Usage
2395−+** Alternatively, this file may be used under the terms of the GNU Lesser
2396−+** General Public License version 3 as published by the Free Software
2397−+** Foundation and appearing in the file LICENSE.LGPL3 included in the
2398−+** packaging of this file. Please review the following information to
2399−+** ensure the GNU Lesser General Public License version 3 requirements
2400−+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
2401−+**
2402−+** GNU General Public License Usage
2403−+** Alternatively, this file may be used under the terms of the GNU
2404−+** General Public License version 2.0 or (at your option) the GNU General
2405−+** Public license version 3 or any later version approved by the KDE Free
2406−+** Qt Foundation. The licenses are as published by the Free Software
2407−+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
2408−+** included in the packaging of this file. Please review the following
2409−+** information to ensure the GNU General Public License requirements will
2410−+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
2411−+** https://www.gnu.org/licenses/gpl-3.0.html.
2412−+**
2413−+** $QT_END_LICENSE$
2414−+**
2415−+****************************************************************************/
2416−+
2417−+/****************************************************************************
2418−+**
2419−+** In addition, as a special exception, the copyright holders listed above give
2420−+** permission to link the code of its release of Qt with the OpenSSL project's
2421−+** "OpenSSL" library (or modified versions of the "OpenSSL" library that use the
2422−+** same license as the original version), and distribute the linked executables.
2423−+**
2424−+** You must comply with the GNU General Public License version 2 in all
2425−+** respects for all of the code used other than the "OpenSSL" code. If you
2426−+** modify this file, you may extend this exception to your version of the file,
2427−+** but you are not obligated to do so. If you do not wish to do so, delete
2428−+** this exception statement from your version of this file.
2429−+**
2430−+****************************************************************************/
2431−+
2432−+#ifndef QSSLSOCKET_OPENSSL11_SYMBOLS_P_H
2433−+#define QSSLSOCKET_OPENSSL11_SYMBOLS_P_H
2434−+
2435−+//
2436−+// W A R N I N G
2437−+// -------------
2438−+//
2439−+// This file is not part of the Qt API. It exists purely as an
2440−+// implementation detail. This header file may change from version to
2441−+// version without notice, or even be removed.
2442−+//
2443−+// We mean it.
2444−+//
2445−+
2446−+// Note: this file does not have QT_BEGIN_NAMESPACE/QT_END_NAMESPACE, it's done
2447−+// in qsslsocket_openssl_symbols_p.h.
2448−+
2449−+#ifndef QSSLSOCKET_OPENSSL_SYMBOLS_P_H
2450−+#error "You are not supposed to use this header file, include qsslsocket_openssl_symbols_p.h instead"
2451−+#endif
2452−+
2453−+const unsigned char * q_ASN1_STRING_get0_data(const ASN1_STRING *x);
2454−+
2455−+Q_AUTOTEST_EXPORT BIO *q_BIO_new(const BIO_METHOD *a);
2456−+Q_AUTOTEST_EXPORT const BIO_METHOD *q_BIO_s_mem();
2457−+
2458−+int q_DSA_bits(DSA *a);
2459−+int q_EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);
2460−+int q_EVP_PKEY_base_id(EVP_PKEY *a);
2461−+int q_RSA_bits(RSA *a);
2462−+int q_OPENSSL_sk_num(OPENSSL_STACK *a);
2463−+void q_OPENSSL_sk_pop_free(OPENSSL_STACK *a, void (*b)(void *));
2464−+OPENSSL_STACK *q_OPENSSL_sk_new_null();
2465−+void q_OPENSSL_sk_push(OPENSSL_STACK *st, void *data);
2466−+void q_OPENSSL_sk_free(OPENSSL_STACK *a);
2467−+void * q_OPENSSL_sk_value(OPENSSL_STACK *a, int b);
2468−+int q_SSL_session_reused(SSL *a);
2469−+unsigned long q_SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);
2470−+int q_OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
2471−+size_t q_SSL_get_client_random(SSL *a, unsigned char *out, size_t outlen);
2472−+size_t q_SSL_SESSION_get_master_key(const SSL_SESSION *session, unsigned char *out, size_t outlen);
2473−+int q_CRYPTO_get_ex_new_index(int class_index, long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
2474−+const SSL_METHOD *q_TLS_method();
2475−+const SSL_METHOD *q_TLS_client_method();
2476−+const SSL_METHOD *q_TLS_server_method();
2477−+ASN1_TIME *q_X509_getm_notBefore(X509 *a);
2478−+ASN1_TIME *q_X509_getm_notAfter(X509 *a);
2479−+
2480−+long q_X509_get_version(X509 *a);
2481−+EVP_PKEY *q_X509_get_pubkey(X509 *a);
2482−+void q_X509_STORE_set_verify_cb(X509_STORE *ctx, X509_STORE_CTX_verify_cb verify_cb);
2483−+STACK_OF(X509) *q_X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx);
2484−+void q_DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);
2485−+int q_DH_bits(DH *dh);
2486−+
2487−+# define q_SSL_load_error_strings() q_OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
2488−+ | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
2489−+
2490−+#define q_SKM_sk_num(type, st) ((int (*)(const STACK_OF(type) *))q_OPENSSL_sk_num)(st)
2491−+#define q_SKM_sk_value(type, st,i) ((type * (*)(const STACK_OF(type) *, int))q_OPENSSL_sk_value)(st, i)
2492−+
2493−+#define q_OPENSSL_add_all_algorithms_conf() q_OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
2494−+ | OPENSSL_INIT_ADD_ALL_DIGESTS \
2495−+ | OPENSSL_INIT_LOAD_CONFIG, NULL)
2496−+#define q_OPENSSL_add_all_algorithms_noconf() q_OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
2497−+ | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)
2498−+
2499−+int q_OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
2500−+void q_CRYPTO_free(void *str, const char *file, int line);
2501−+
2502−+long q_OpenSSL_version_num();
2503−+const char *q_OpenSSL_version(int type);
2504−+
2505−+unsigned long q_SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *session);
2506−+
2507−+#endif
2508−diff --git a/src/network/ssl/qsslsocket_openssl_p.h b/src/network/ssl/qsslsocket_openssl_p.h
2509−index b2adb3e547..7f9e884045 100644
2510−--- a/src/network/ssl/qsslsocket_openssl_p.h
2511−+++ b/src/network/ssl/qsslsocket_openssl_p.h
2512−@@ -1,6 +1,6 @@
2513− /****************************************************************************
2514− **
2515−-** Copyright (C) 2016 The Qt Company Ltd.
2516−+** Copyright (C) 2017 The Qt Company Ltd.
2517− ** Contact: https://www.qt.io/licensing/
2518− **
2519− ** This file is part of the QtNetwork module of the Qt Toolkit.
2520−@@ -98,8 +98,8 @@
2521− #include <openssl/crypto.h>
2522− #include <openssl/tls1.h>
2523−
2524−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2525−-typedef _STACK STACK;
2526−+#if QT_CONFIG(opensslv11)
2527−+#include <openssl/dh.h>
2528− #endif
2529−
2530− QT_BEGIN_NAMESPACE
2531−@@ -151,7 +151,7 @@ public:
2532− #endif
2533−
2534− Q_AUTOTEST_EXPORT static long setupOpenSslOptions(QSsl::SslProtocol protocol, QSsl::SslOptions sslOptions);
2535−- static QSslCipher QSslCipher_from_SSL_CIPHER(SSL_CIPHER *cipher);
2536−+ static QSslCipher QSslCipher_from_SSL_CIPHER(const SSL_CIPHER *cipher);
2537− static QList<QSslCertificate> STACKOFX509_to_QSslCertificates(STACK_OF(X509) *x509);
2538− static QList<QSslError> verify(const QList<QSslCertificate> &certificateChain, const QString &hostName);
2539− static QString getErrorsFromOpenSsl();
2540−diff --git a/src/network/ssl/qsslsocket_openssl_symbols.cpp b/src/network/ssl/qsslsocket_openssl_symbols.cpp
2541−index c344a94427..0ef8bf6b5e 100644
2542−--- a/src/network/ssl/qsslsocket_openssl_symbols.cpp
2543−+++ b/src/network/ssl/qsslsocket_openssl_symbols.cpp
2544−@@ -1,7 +1,8 @@
2545− /****************************************************************************
2546− **
2547−-** Copyright (C) 2016 The Qt Company Ltd.
2548−+** Copyright (C) 2017 The Qt Company Ltd.
2549− ** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
2550−+** Copyright (C) 2016 Richard J. Moore <rich@kde.org>
2551− ** Contact: https://www.qt.io/licensing/
2552− **
2553− ** This file is part of the QtNetwork module of the Qt Toolkit.
2554−@@ -136,49 +137,195 @@ void qsslSocketCannotResolveSymbolWarning(const char *functionName)
2555−
2556− #endif // QT_LINKED_OPENSSL
2557−
2558−+#if QT_CONFIG(opensslv11)
2559−+
2560−+// Below are the functions first introduced in version 1.1:
2561−+
2562−+DEFINEFUNC(const unsigned char *, ASN1_STRING_get0_data, const ASN1_STRING *a, a, return 0, return)
2563−+DEFINEFUNC2(int, OPENSSL_init_ssl, uint64_t opts, opts, const OPENSSL_INIT_SETTINGS *settings, settings, return 0, return)
2564−+DEFINEFUNC2(int, OPENSSL_init_crypto, uint64_t opts, opts, const OPENSSL_INIT_SETTINGS *settings, settings, return 0, return)
2565−+DEFINEFUNC(BIO *, BIO_new, const BIO_METHOD *a, a, return 0, return)
2566−+DEFINEFUNC(const BIO_METHOD *, BIO_s_mem, void, DUMMYARG, return 0, return)
2567−+DEFINEFUNC2(int, BN_is_word, BIGNUM *a, a, BN_ULONG w, w, return 0, return)
2568−+DEFINEFUNC(int, EVP_CIPHER_CTX_reset, EVP_CIPHER_CTX *c, c, return 0, return)
2569−+DEFINEFUNC(int, EVP_PKEY_base_id, EVP_PKEY *a, a, return NID_undef, return)
2570−+DEFINEFUNC(int, RSA_bits, RSA *a, a, return 0, return)
2571−+DEFINEFUNC(int, DSA_bits, DSA *a, a, return 0, return)
2572−+DEFINEFUNC(int, OPENSSL_sk_num, OPENSSL_STACK *a, a, return -1, return)
2573−+DEFINEFUNC2(void, OPENSSL_sk_pop_free, OPENSSL_STACK *a, a, void (*b)(void*), b, return, DUMMYARG)
2574−+DEFINEFUNC(OPENSSL_STACK *, OPENSSL_sk_new_null, DUMMYARG, DUMMYARG, return 0, return)
2575−+DEFINEFUNC2(void, OPENSSL_sk_push, OPENSSL_STACK *a, a, void *b, b, return, DUMMYARG)
2576−+DEFINEFUNC(void, OPENSSL_sk_free, OPENSSL_STACK *a, a, return, DUMMYARG)
2577−+DEFINEFUNC2(void *, OPENSSL_sk_value, OPENSSL_STACK *a, a, int b, b, return 0, return)
2578−+DEFINEFUNC(int, SSL_session_reused, SSL *a, a, return 0, return)
2579−+DEFINEFUNC2(unsigned long, SSL_CTX_set_options, SSL_CTX *ctx, ctx, unsigned long op, op, return 0, return)
2580−+DEFINEFUNC3(size_t, SSL_get_client_random, SSL *a, a, unsigned char *out, out, size_t outlen, outlen, return 0, return)
2581−+DEFINEFUNC3(size_t, SSL_SESSION_get_master_key, const SSL_SESSION *ses, ses, unsigned char *out, out, size_t outlen, outlen, return 0, return)
2582−+DEFINEFUNC6(int, CRYPTO_get_ex_new_index, int class_index, class_index, long argl, argl, void *argp, argp, CRYPTO_EX_new *new_func, new_func, CRYPTO_EX_dup *dup_func, dup_func, CRYPTO_EX_free *free_func, free_func, return -1, return)
2583−+
2584−+DEFINEFUNC(const SSL_METHOD *, TLS_method, DUMMYARG, DUMMYARG, return 0, return)
2585−+DEFINEFUNC(const SSL_METHOD *, TLS_client_method, DUMMYARG, DUMMYARG, return 0, return)
2586−+DEFINEFUNC(const SSL_METHOD *, TLS_server_method, DUMMYARG, DUMMYARG, return 0, return)
2587−+DEFINEFUNC(ASN1_TIME *, X509_getm_notBefore, X509 *a, a, return 0, return)
2588−+DEFINEFUNC(ASN1_TIME *, X509_getm_notAfter, X509 *a, a, return 0, return)
2589−+DEFINEFUNC(long, X509_get_version, X509 *a, a, return -1, return)
2590−+DEFINEFUNC(EVP_PKEY *, X509_get_pubkey, X509 *a, a, return 0, return)
2591−+DEFINEFUNC2(void, X509_STORE_set_verify_cb, X509_STORE *a, a, X509_STORE_CTX_verify_cb verify_cb, verify_cb, return, DUMMYARG)
2592−+DEFINEFUNC(STACK_OF(X509) *, X509_STORE_CTX_get0_chain, X509_STORE_CTX *a, a, return 0, return)
2593−+DEFINEFUNC3(void, CRYPTO_free, void *str, str, const char *file, file, int line, line, return, DUMMYARG)
2594−+DEFINEFUNC(long, OpenSSL_version_num, void, DUMMYARG, return 0, return)
2595−+DEFINEFUNC(const char *, OpenSSL_version, int a, a, return 0, return)
2596−+DEFINEFUNC(unsigned long, SSL_SESSION_get_ticket_lifetime_hint, const SSL_SESSION *session, session, return 0, return)
2597−+DEFINEFUNC4(void, DH_get0_pqg, const DH *dh, dh, const BIGNUM **p, p, const BIGNUM **q, q, const BIGNUM **g, g, return, DUMMYARG)
2598−+DEFINEFUNC(int, DH_bits, DH *dh, dh, return 0, return)
2599−+
2600−+#else // QT_CONFIG(opensslv11)
2601−+
2602−+// Functions below are either deprecated or removed in OpenSSL >= 1.1:
2603−+
2604−+DEFINEFUNC(unsigned char *, ASN1_STRING_data, ASN1_STRING *a, a, return 0, return)
2605−+
2606− #ifdef SSLEAY_MACROS
2607− DEFINEFUNC3(void *, ASN1_dup, i2d_of_void *a, a, d2i_of_void *b, b, char *c, c, return 0, return)
2608− #endif
2609−+DEFINEFUNC2(BIO *, BIO_new_file, const char *filename, filename, const char *mode, mode, return 0, return)
2610−+DEFINEFUNC(void, ERR_clear_error, DUMMYARG, DUMMYARG, return, DUMMYARG)
2611−+DEFINEFUNC(BIO *, BIO_new, BIO_METHOD *a, a, return 0, return)
2612−+DEFINEFUNC(BIO_METHOD *, BIO_s_mem, void, DUMMYARG, return 0, return)
2613−+DEFINEFUNC(int, CRYPTO_num_locks, DUMMYARG, DUMMYARG, return 0, return)
2614−+DEFINEFUNC(void, CRYPTO_set_locking_callback, void (*a)(int, int, const char *, int), a, return, DUMMYARG)
2615−+DEFINEFUNC(void, CRYPTO_set_id_callback, unsigned long (*a)(), a, return, DUMMYARG)
2616−+DEFINEFUNC(void, CRYPTO_free, void *a, a, return, DUMMYARG)
2617−+DEFINEFUNC(unsigned long, ERR_peek_last_error, DUMMYARG, DUMMYARG, return 0, return)
2618−+DEFINEFUNC(void, ERR_free_strings, void, DUMMYARG, return, DUMMYARG)
2619−+DEFINEFUNC(void, EVP_CIPHER_CTX_cleanup, EVP_CIPHER_CTX *a, a, return, DUMMYARG)
2620−+DEFINEFUNC(void, EVP_CIPHER_CTX_init, EVP_CIPHER_CTX *a, a, return, DUMMYARG)
2621−+
2622−+#ifdef SSLEAY_MACROS
2623−+DEFINEFUNC6(void *, PEM_ASN1_read_bio, d2i_of_void *a, a, const char *b, b, BIO *c, c, void **d, d, pem_password_cb *e, e, void *f, f, return 0, return)
2624−+DEFINEFUNC6(void *, PEM_ASN1_write_bio, d2i_of_void *a, a, const char *b, b, BIO *c, c, void **d, d, pem_password_cb *e, e, void *f, f, return 0, return)
2625−+#endif // SSLEAY_MACROS
2626−+
2627−+DEFINEFUNC(int, sk_num, STACK *a, a, return -1, return)
2628−+DEFINEFUNC2(void, sk_pop_free, STACK *a, a, void (*b)(void*), b, return, DUMMYARG)
2629−+
2630−+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2631−+DEFINEFUNC(_STACK *, sk_new_null, DUMMYARG, DUMMYARG, return 0, return)
2632−+DEFINEFUNC2(void, sk_push, _STACK *a, a, void *b, b, return, DUMMYARG)
2633−+DEFINEFUNC(void, sk_free, _STACK *a, a, return, DUMMYARG)
2634−+DEFINEFUNC2(void *, sk_value, STACK *a, a, int b, b, return 0, return)
2635−+#else
2636−+DEFINEFUNC(STACK *, sk_new_null, DUMMYARG, DUMMYARG, return 0, return)
2637−+DEFINEFUNC2(void, sk_push, STACK *a, a, char *b, b, return, DUMMYARG)
2638−+DEFINEFUNC(void, sk_free, STACK *a, a, return, DUMMYARG)
2639−+DEFINEFUNC2(char *, sk_value, STACK *a, a, int b, b, return 0, return)
2640−+#endif // OPENSSL_VERSION_NUMBER >= 0x10000000L
2641−+
2642−+DEFINEFUNC(int, SSL_library_init, void, DUMMYARG, return -1, return)
2643−+DEFINEFUNC(void, SSL_load_error_strings, void, DUMMYARG, return, DUMMYARG)
2644−+
2645−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
2646−+DEFINEFUNC5(int, SSL_get_ex_new_index, long argl, argl, void *argp, argp, CRYPTO_EX_new *new_func, new_func, CRYPTO_EX_dup *dup_func, dup_func, CRYPTO_EX_free *free_func, free_func, return -1, return)
2647−+#endif // OPENSSL_VERSION_NUMBER >= 0x10001000L
2648−+
2649−+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2650−+#ifndef OPENSSL_NO_SSL2
2651−+DEFINEFUNC(const SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return)
2652−+#endif
2653−+#ifndef OPENSSL_NO_SSL3_METHOD
2654−+DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return)
2655−+#endif
2656−+DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return)
2657−+DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return)
2658−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
2659−+DEFINEFUNC(const SSL_METHOD *, TLSv1_1_client_method, DUMMYARG, DUMMYARG, return 0, return)
2660−+DEFINEFUNC(const SSL_METHOD *, TLSv1_2_client_method, DUMMYARG, DUMMYARG, return 0, return)
2661−+#endif
2662−+#ifndef OPENSSL_NO_SSL2
2663−+DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return)
2664−+#endif
2665−+#ifndef OPENSSL_NO_SSL3_METHOD
2666−+DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return)
2667−+#endif
2668−+DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return)
2669−+DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return)
2670−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
2671−+DEFINEFUNC(const SSL_METHOD *, TLSv1_1_server_method, DUMMYARG, DUMMYARG, return 0, return)
2672−+DEFINEFUNC(const SSL_METHOD *, TLSv1_2_server_method, DUMMYARG, DUMMYARG, return 0, return)
2673−+#endif
2674−+#else
2675−+#ifndef OPENSSL_NO_SSL2
2676−+DEFINEFUNC(SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return)
2677−+#endif
2678−+#ifndef OPENSSL_NO_SSL3_METHOD
2679−+DEFINEFUNC(SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return)
2680−+#endif
2681−+DEFINEFUNC(SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return)
2682−+DEFINEFUNC(SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return)
2683−+#ifndef OPENSSL_NO_SSL2
2684−+DEFINEFUNC(SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return)
2685−+#endif
2686−+#ifndef OPENSSL_NO_SSL3_METHOD
2687−+DEFINEFUNC(SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return)
2688−+#endif
2689−+DEFINEFUNC(SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return)
2690−+DEFINEFUNC(SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return)
2691−+#endif
2692−+
2693−+DEFINEFUNC(STACK_OF(X509) *, X509_STORE_CTX_get_chain, X509_STORE_CTX *a, a, return 0, return)
2694−+
2695−+#ifdef SSLEAY_MACROS
2696−+DEFINEFUNC2(int, i2d_DSAPrivateKey, const DSA *a, a, unsigned char **b, b, return -1, return)
2697−+DEFINEFUNC2(int, i2d_RSAPrivateKey, const RSA *a, a, unsigned char **b, b, return -1, return)
2698−+#ifndef OPENSSL_NO_EC
2699−+DEFINEFUNC2(int, i2d_ECPrivateKey, const EC_KEY *a, a, unsigned char **b, b, return -1, return)
2700−+#endif
2701−+DEFINEFUNC3(RSA *, d2i_RSAPrivateKey, RSA **a, a, unsigned char **b, b, long c, c, return 0, return)
2702−+DEFINEFUNC3(DSA *, d2i_DSAPrivateKey, DSA **a, a, unsigned char **b, b, long c, c, return 0, return)
2703−+#ifndef OPENSSL_NO_EC
2704−+DEFINEFUNC3(EC_KEY *, d2i_ECPrivateKey, EC_KEY **a, a, unsigned char **b, b, long c, c, return 0, return)
2705−+#endif
2706−+#endif
2707−+DEFINEFUNC(char *, CONF_get1_default_config_file, DUMMYARG, DUMMYARG, return 0, return)
2708−+DEFINEFUNC(void, OPENSSL_add_all_algorithms_noconf, void, DUMMYARG, return, DUMMYARG)
2709−+DEFINEFUNC(void, OPENSSL_add_all_algorithms_conf, void, DUMMYARG, return, DUMMYARG)
2710−+DEFINEFUNC(long, SSLeay, void, DUMMYARG, return 0, return)
2711−+DEFINEFUNC(const char *, SSLeay_version, int a, a, return 0, return)
2712−+
2713−+#endif // QT_CONFIG(opensslv11)
2714−+
2715− DEFINEFUNC(long, ASN1_INTEGER_get, ASN1_INTEGER *a, a, return 0, return)
2716−-DEFINEFUNC(unsigned char *, ASN1_STRING_data, ASN1_STRING *a, a, return 0, return)
2717− DEFINEFUNC(int, ASN1_STRING_length, ASN1_STRING *a, a, return 0, return)
2718−-DEFINEFUNC2(int, ASN1_STRING_to_UTF8, unsigned char **a, a, ASN1_STRING *b, b, return 0, return);
2719−+DEFINEFUNC2(int, ASN1_STRING_to_UTF8, unsigned char **a, a, ASN1_STRING *b, b, return 0, return)
2720− DEFINEFUNC4(long, BIO_ctrl, BIO *a, a, int b, b, long c, c, void *d, d, return -1, return)
2721− DEFINEFUNC(int, BIO_free, BIO *a, a, return 0, return)
2722−-DEFINEFUNC(BIO *, BIO_new, BIO_METHOD *a, a, return 0, return)
2723− DEFINEFUNC2(BIO *, BIO_new_mem_buf, void *a, a, int b, b, return 0, return)
2724− DEFINEFUNC3(int, BIO_read, BIO *a, a, void *b, b, int c, c, return -1, return)
2725−-DEFINEFUNC(BIO_METHOD *, BIO_s_mem, void, DUMMYARG, return 0, return)
2726−+
2727− DEFINEFUNC3(int, BIO_write, BIO *a, a, const void *b, b, int c, c, return -1, return)
2728− DEFINEFUNC(int, BN_num_bits, const BIGNUM *a, a, return 0, return)
2729−-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
2730−-DEFINEFUNC2(int, BN_is_word, BIGNUM *a, a, BN_ULONG w, w, return 0, return)
2731−-#endif
2732− DEFINEFUNC2(BN_ULONG, BN_mod_word, const BIGNUM *a, a, BN_ULONG w, w, return static_cast<BN_ULONG>(-1), return)
2733− #ifndef OPENSSL_NO_EC
2734− DEFINEFUNC(const EC_GROUP*, EC_KEY_get0_group, const EC_KEY* k, k, return 0, return)
2735− DEFINEFUNC(int, EC_GROUP_get_degree, const EC_GROUP* g, g, return 0, return)
2736− #endif
2737−-DEFINEFUNC(int, CRYPTO_num_locks, DUMMYARG, DUMMYARG, return 0, return)
2738−-DEFINEFUNC(void, CRYPTO_set_locking_callback, void (*a)(int, int, const char *, int), a, return, DUMMYARG)
2739−-DEFINEFUNC(void, CRYPTO_set_id_callback, unsigned long (*a)(), a, return, DUMMYARG)
2740−-DEFINEFUNC(void, CRYPTO_free, void *a, a, return, DUMMYARG)
2741− DEFINEFUNC(DSA *, DSA_new, DUMMYARG, DUMMYARG, return 0, return)
2742− DEFINEFUNC(void, DSA_free, DSA *a, a, return, DUMMYARG)
2743− DEFINEFUNC3(X509 *, d2i_X509, X509 **a, a, const unsigned char **b, b, long c, c, return 0, return)
2744− DEFINEFUNC2(char *, ERR_error_string, unsigned long a, a, char *b, b, return 0, return)
2745− DEFINEFUNC(unsigned long, ERR_get_error, DUMMYARG, DUMMYARG, return 0, return)
2746−-DEFINEFUNC(void, ERR_free_strings, void, DUMMYARG, return, DUMMYARG)
2747−-DEFINEFUNC(void, EVP_CIPHER_CTX_cleanup, EVP_CIPHER_CTX *a, a, return, DUMMYARG)
2748−-DEFINEFUNC(void, EVP_CIPHER_CTX_init, EVP_CIPHER_CTX *a, a, return, DUMMYARG)
2749−-DEFINEFUNC4(int, EVP_CIPHER_CTX_ctrl, EVP_CIPHER_CTX *ctx, ctx, int type, type, int arg, arg, void *ptr, ptr, return 0, return);
2750−+DEFINEFUNC(EVP_CIPHER_CTX *, EVP_CIPHER_CTX_new, void, DUMMYARG, return 0, return)
2751−+DEFINEFUNC(void, EVP_CIPHER_CTX_free, EVP_CIPHER_CTX *a, a, return, DUMMYARG)
2752−+DEFINEFUNC4(int, EVP_CIPHER_CTX_ctrl, EVP_CIPHER_CTX *ctx, ctx, int type, type, int arg, arg, void *ptr, ptr, return 0, return)
2753− DEFINEFUNC2(int, EVP_CIPHER_CTX_set_key_length, EVP_CIPHER_CTX *ctx, ctx, int keylen, keylen, return 0, return)
2754−-DEFINEFUNC5(int, EVP_CipherInit, EVP_CIPHER_CTX *ctx, ctx, const EVP_CIPHER *type, type, const unsigned char *key, key, const unsigned char *iv, iv, int enc, enc, return 0, return);
2755−-DEFINEFUNC5(int, EVP_CipherUpdate, EVP_CIPHER_CTX *ctx, ctx, unsigned char *out, out, int *outl, outl, const unsigned char *in, in, int inl, inl, return 0, return);
2756−-DEFINEFUNC3(int, EVP_CipherFinal, EVP_CIPHER_CTX *ctx, ctx, unsigned char *out, out, int *outl, outl, return 0, return);
2757−+DEFINEFUNC5(int, EVP_CipherInit, EVP_CIPHER_CTX *ctx, ctx, const EVP_CIPHER *type, type, const unsigned char *key, key, const unsigned char *iv, iv, int enc, enc, return 0, return)
2758−+DEFINEFUNC6(int, EVP_CipherInit_ex, EVP_CIPHER_CTX *ctx, ctx, const EVP_CIPHER *cipher, cipher, ENGINE *impl, impl, const unsigned char *key, key, const unsigned char *iv, iv, int enc, enc, return 0, return)
2759−+DEFINEFUNC5(int, EVP_CipherUpdate, EVP_CIPHER_CTX *ctx, ctx, unsigned char *out, out, int *outl, outl, const unsigned char *in, in, int inl, inl, return 0, return)
2760−+DEFINEFUNC3(int, EVP_CipherFinal, EVP_CIPHER_CTX *ctx, ctx, unsigned char *out, out, int *outl, outl, return 0, return)
2761− DEFINEFUNC(const EVP_CIPHER *, EVP_des_cbc, DUMMYARG, DUMMYARG, return 0, return)
2762− DEFINEFUNC(const EVP_CIPHER *, EVP_des_ede3_cbc, DUMMYARG, DUMMYARG, return 0, return)
2763− DEFINEFUNC(const EVP_CIPHER *, EVP_rc2_cbc, DUMMYARG, DUMMYARG, return 0, return)
2764−+DEFINEFUNC(const EVP_MD *, EVP_sha1, DUMMYARG, DUMMYARG, return 0, return)
2765− DEFINEFUNC3(int, EVP_PKEY_assign, EVP_PKEY *a, a, int b, b, char *c, c, return -1, return)
2766− DEFINEFUNC2(int, EVP_PKEY_set1_RSA, EVP_PKEY *a, a, RSA *b, b, return -1, return)
2767− DEFINEFUNC2(int, EVP_PKEY_set1_DSA, EVP_PKEY *a, a, DSA *b, b, return -1, return)
2768−@@ -202,10 +349,8 @@ DEFINEFUNC3(int, i2t_ASN1_OBJECT, char *a, a, int b, b, ASN1_OBJECT *c, c, retur
2769− DEFINEFUNC4(int, OBJ_obj2txt, char *a, a, int b, b, ASN1_OBJECT *c, c, int d, d, return -1, return)
2770−
2771− DEFINEFUNC(int, OBJ_obj2nid, const ASN1_OBJECT *a, a, return NID_undef, return)
2772−-#ifdef SSLEAY_MACROS
2773−-DEFINEFUNC6(void *, PEM_ASN1_read_bio, d2i_of_void *a, a, const char *b, b, BIO *c, c, void **d, d, pem_password_cb *e, e, void *f, f, return 0, return)
2774−-DEFINEFUNC6(void *, PEM_ASN1_write_bio, d2i_of_void *a, a, const char *b, b, BIO *c, c, void **d, d, pem_password_cb *e, e, void *f, f, return 0, return)
2775−-#else
2776−+
2777−+#ifndef SSLEAY_MACROS
2778− DEFINEFUNC4(EVP_PKEY *, PEM_read_bio_PrivateKey, BIO *a, a, EVP_PKEY **b, b, pem_password_cb *c, c, void *d, d, return 0, return)
2779− DEFINEFUNC4(DSA *, PEM_read_bio_DSAPrivateKey, BIO *a, a, DSA **b, b, pem_password_cb *c, c, void *d, d, return 0, return)
2780− DEFINEFUNC4(RSA *, PEM_read_bio_RSAPrivateKey, BIO *a, a, RSA **b, b, pem_password_cb *c, c, void *d, d, return 0, return)
2781−@@ -218,7 +363,7 @@ DEFINEFUNC7(int, PEM_write_bio_RSAPrivateKey, BIO *a, a, RSA *b, b, const EVP_CI
2782− #ifndef OPENSSL_NO_EC
2783− DEFINEFUNC7(int, PEM_write_bio_ECPrivateKey, BIO *a, a, EC_KEY *b, b, const EVP_CIPHER *c, c, unsigned char *d, d, int e, e, pem_password_cb *f, f, void *g, g, return 0, return)
2784− #endif
2785−-#endif
2786−+#endif // !SSLEAY_MACROS
2787− DEFINEFUNC4(EVP_PKEY *, PEM_read_bio_PUBKEY, BIO *a, a, EVP_PKEY **b, b, pem_password_cb *c, c, void *d, d, return 0, return)
2788− DEFINEFUNC4(DSA *, PEM_read_bio_DSA_PUBKEY, BIO *a, a, DSA **b, b, pem_password_cb *c, c, void *d, d, return 0, return)
2789− DEFINEFUNC4(RSA *, PEM_read_bio_RSA_PUBKEY, BIO *a, a, RSA **b, b, pem_password_cb *c, c, void *d, d, return 0, return)
2790−@@ -234,23 +379,10 @@ DEFINEFUNC2(void, RAND_seed, const void *a, a, int b, b, return, DUMMYARG)
2791− DEFINEFUNC(int, RAND_status, void, DUMMYARG, return -1, return)
2792− DEFINEFUNC(RSA *, RSA_new, DUMMYARG, DUMMYARG, return 0, return)
2793− DEFINEFUNC(void, RSA_free, RSA *a, a, return, DUMMYARG)
2794−-DEFINEFUNC(int, sk_num, STACK *a, a, return -1, return)
2795−-DEFINEFUNC2(void, sk_pop_free, STACK *a, a, void (*b)(void*), b, return, DUMMYARG)
2796−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2797−-DEFINEFUNC(_STACK *, sk_new_null, DUMMYARG, DUMMYARG, return 0, return)
2798−-DEFINEFUNC2(void, sk_push, _STACK *a, a, void *b, b, return, DUMMYARG)
2799−-DEFINEFUNC(void, sk_free, _STACK *a, a, return, DUMMYARG)
2800−-DEFINEFUNC2(void *, sk_value, STACK *a, a, int b, b, return 0, return)
2801−-#else
2802−-DEFINEFUNC(STACK *, sk_new_null, DUMMYARG, DUMMYARG, return 0, return)
2803−-DEFINEFUNC2(void, sk_push, STACK *a, a, char *b, b, return, DUMMYARG)
2804−-DEFINEFUNC(void, sk_free, STACK *a, a, return, DUMMYARG)
2805−-DEFINEFUNC2(char *, sk_value, STACK *a, a, int b, b, return 0, return)
2806−-#endif
2807− DEFINEFUNC(int, SSL_accept, SSL *a, a, return -1, return)
2808− DEFINEFUNC(int, SSL_clear, SSL *a, a, return -1, return)
2809−-DEFINEFUNC3(char *, SSL_CIPHER_description, SSL_CIPHER *a, a, char *b, b, int c, c, return 0, return)
2810−-DEFINEFUNC2(int, SSL_CIPHER_get_bits, SSL_CIPHER *a, a, int *b, b, return 0, return)
2811−+DEFINEFUNC3(char *, SSL_CIPHER_description, const SSL_CIPHER *a, a, char *b, b, int c, c, return 0, return)
2812−+DEFINEFUNC2(int, SSL_CIPHER_get_bits, const SSL_CIPHER *a, a, int *b, b, return 0, return)
2813− DEFINEFUNC(int, SSL_connect, SSL *a, a, return -1, return)
2814− DEFINEFUNC(int, SSL_CTX_check_private_key, const SSL_CTX *a, a, return -1, return)
2815− DEFINEFUNC4(long, SSL_CTX_ctrl, SSL_CTX *a, a, int b, b, long c, c, void *d, d, return -1, return)
2816−@@ -287,8 +419,6 @@ DEFINEFUNC(long, SSL_get_verify_result, const SSL *a, a, return -1, return)
2817− #else
2818− DEFINEFUNC(long, SSL_get_verify_result, SSL *a, a, return -1, return)
2819− #endif
2820−-DEFINEFUNC(int, SSL_library_init, void, DUMMYARG, return -1, return)
2821−-DEFINEFUNC(void, SSL_load_error_strings, void, DUMMYARG, return, DUMMYARG)
2822− DEFINEFUNC(SSL *, SSL_new, SSL_CTX *a, a, return 0, return)
2823− DEFINEFUNC4(long, SSL_ctrl, SSL *a, a, int cmd, cmd, long larg, larg, void *parg, parg, return -1, return)
2824− DEFINEFUNC3(int, SSL_read, SSL *a, a, void *b, b, int c, c, return -1, return)
2825−@@ -301,7 +431,6 @@ DEFINEFUNC(void, SSL_SESSION_free, SSL_SESSION *ses, ses, return, DUMMYARG)
2826− DEFINEFUNC(SSL_SESSION*, SSL_get1_session, SSL *ssl, ssl, return 0, return)
2827− DEFINEFUNC(SSL_SESSION*, SSL_get_session, const SSL *ssl, ssl, return 0, return)
2828− #if OPENSSL_VERSION_NUMBER >= 0x10001000L
2829−-DEFINEFUNC5(int, SSL_get_ex_new_index, long argl, argl, void *argp, argp, CRYPTO_EX_new *new_func, new_func, CRYPTO_EX_dup *dup_func, dup_func, CRYPTO_EX_free *free_func, free_func, return -1, return)
2830− DEFINEFUNC3(int, SSL_set_ex_data, SSL *ssl, ssl, int idx, idx, void *arg, arg, return 0, return)
2831− DEFINEFUNC2(void *, SSL_get_ex_data, const SSL *ssl, ssl, int idx, idx, return NULL, return)
2832− #endif
2833−@@ -310,51 +439,9 @@ DEFINEFUNC2(void, SSL_set_psk_client_callback, SSL* ssl, ssl, q_psk_client_callb
2834− DEFINEFUNC2(void, SSL_set_psk_server_callback, SSL* ssl, ssl, q_psk_server_callback_t callback, callback, return, DUMMYARG)
2835− DEFINEFUNC2(int, SSL_CTX_use_psk_identity_hint, SSL_CTX* ctx, ctx, const char *hint, hint, return 0, return)
2836− #endif
2837−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
2838−-#ifndef OPENSSL_NO_SSL2
2839−-DEFINEFUNC(const SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return)
2840−-#endif
2841−-#ifndef OPENSSL_NO_SSL3_METHOD
2842−-DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return)
2843−-#endif
2844−-DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return)
2845−-DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return)
2846−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
2847−-DEFINEFUNC(const SSL_METHOD *, TLSv1_1_client_method, DUMMYARG, DUMMYARG, return 0, return)
2848−-DEFINEFUNC(const SSL_METHOD *, TLSv1_2_client_method, DUMMYARG, DUMMYARG, return 0, return)
2849−-#endif
2850−-#ifndef OPENSSL_NO_SSL2
2851−-DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return)
2852−-#endif
2853−-#ifndef OPENSSL_NO_SSL3_METHOD
2854−-DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return)
2855−-#endif
2856−-DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return)
2857−-DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return)
2858−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
2859−-DEFINEFUNC(const SSL_METHOD *, TLSv1_1_server_method, DUMMYARG, DUMMYARG, return 0, return)
2860−-DEFINEFUNC(const SSL_METHOD *, TLSv1_2_server_method, DUMMYARG, DUMMYARG, return 0, return)
2861−-#endif
2862−-#else
2863−-#ifndef OPENSSL_NO_SSL2
2864−-DEFINEFUNC(SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return)
2865−-#endif
2866−-#ifndef OPENSSL_NO_SSL3_METHOD
2867−-DEFINEFUNC(SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return)
2868−-#endif
2869−-DEFINEFUNC(SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return)
2870−-DEFINEFUNC(SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return)
2871−-#ifndef OPENSSL_NO_SSL2
2872−-DEFINEFUNC(SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return)
2873−-#endif
2874−-#ifndef OPENSSL_NO_SSL3_METHOD
2875−-DEFINEFUNC(SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return)
2876−-#endif
2877−-DEFINEFUNC(SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return)
2878−-DEFINEFUNC(SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return)
2879−-#endif
2880− DEFINEFUNC3(int, SSL_write, SSL *a, a, const void *b, b, int c, c, return -1, return)
2881− DEFINEFUNC2(int, X509_cmp, X509 *a, a, X509 *b, b, return -1, return)
2882−+DEFINEFUNC4(int, X509_digest, const X509 *x509, x509, const EVP_MD *type, type, unsigned char *md, md, unsigned int *len, len, return -1, return)
2883− #ifndef SSLEAY_MACROS
2884− DEFINEFUNC(X509 *, X509_dup, X509 *a, a, return 0, return)
2885− #endif
2886−@@ -378,6 +465,7 @@ DEFINEFUNC2(int, ASN1_STRING_print, BIO *a, a, ASN1_STRING *b, b, return 0, retu
2887− DEFINEFUNC2(int, X509_check_issued, X509 *a, a, X509 *b, b, return -1, return)
2888− DEFINEFUNC(X509_NAME *, X509_get_issuer_name, X509 *a, a, return 0, return)
2889− DEFINEFUNC(X509_NAME *, X509_get_subject_name, X509 *a, a, return 0, return)
2890−+DEFINEFUNC(ASN1_INTEGER *, X509_get_serialNumber, X509 *a, a, return 0, return)
2891− DEFINEFUNC(int, X509_verify_cert, X509_STORE_CTX *a, a, return -1, return)
2892− DEFINEFUNC(int, X509_NAME_entry_count, X509_NAME *a, a, return 0, return)
2893− DEFINEFUNC2(X509_NAME_ENTRY *, X509_NAME_get_entry, X509_NAME *a, a, int b, b, return 0, return)
2894−@@ -393,25 +481,8 @@ DEFINEFUNC2(int, X509_STORE_CTX_set_purpose, X509_STORE_CTX *a, a, int b, b, ret
2895− DEFINEFUNC(int, X509_STORE_CTX_get_error, X509_STORE_CTX *a, a, return -1, return)
2896− DEFINEFUNC(int, X509_STORE_CTX_get_error_depth, X509_STORE_CTX *a, a, return -1, return)
2897− DEFINEFUNC(X509 *, X509_STORE_CTX_get_current_cert, X509_STORE_CTX *a, a, return 0, return)
2898−-DEFINEFUNC(STACK_OF(X509) *, X509_STORE_CTX_get_chain, X509_STORE_CTX *a, a, return 0, return)
2899− DEFINEFUNC(X509_STORE_CTX *, X509_STORE_CTX_new, DUMMYARG, DUMMYARG, return 0, return)
2900−-#ifdef SSLEAY_MACROS
2901−-DEFINEFUNC2(int, i2d_DSAPrivateKey, const DSA *a, a, unsigned char **b, b, return -1, return)
2902−-DEFINEFUNC2(int, i2d_RSAPrivateKey, const RSA *a, a, unsigned char **b, b, return -1, return)
2903−-#ifndef OPENSSL_NO_EC
2904−-DEFINEFUNC2(int, i2d_ECPrivateKey, const EC_KEY *a, a, unsigned char **b, b, return -1, return)
2905−-#endif
2906−-DEFINEFUNC3(RSA *, d2i_RSAPrivateKey, RSA **a, a, unsigned char **b, b, long c, c, return 0, return)
2907−-DEFINEFUNC3(DSA *, d2i_DSAPrivateKey, DSA **a, a, unsigned char **b, b, long c, c, return 0, return)
2908−-#ifndef OPENSSL_NO_EC
2909−-DEFINEFUNC3(EC_KEY *, d2i_ECPrivateKey, EC_KEY **a, a, unsigned char **b, b, long c, c, return 0, return)
2910−-#endif
2911−-#endif
2912−-DEFINEFUNC(void, OPENSSL_add_all_algorithms_noconf, void, DUMMYARG, return, DUMMYARG)
2913−-DEFINEFUNC(void, OPENSSL_add_all_algorithms_conf, void, DUMMYARG, return, DUMMYARG)
2914− DEFINEFUNC3(int, SSL_CTX_load_verify_locations, SSL_CTX *ctx, ctx, const char *CAfile, CAfile, const char *CApath, CApath, return 0, return)
2915−-DEFINEFUNC(long, SSLeay, void, DUMMYARG, return 0, return)
2916−-DEFINEFUNC(const char *, SSLeay_version, int a, a, return 0, return)
2917− DEFINEFUNC2(int, i2d_SSL_SESSION, SSL_SESSION *in, in, unsigned char **pp, pp, return 0, return)
2918− DEFINEFUNC3(SSL_SESSION *, d2i_SSL_SESSION, SSL_SESSION **a, a, const unsigned char **pp, pp, long length, length, return 0, return)
2919− #if OPENSSL_VERSION_NUMBER >= 0x1000100fL && !defined(OPENSSL_NO_NEXTPROTONEG)
2920−@@ -694,8 +765,8 @@ static QPair<QLibrary*, QLibrary*> loadOpenSsl()
2921− #ifndef Q_OS_DARWIN
2922− // second attempt: find the development files libssl.so and libcrypto.so
2923− //
2924−- // disabled on OS X/iOS:
2925−- // OS X's /usr/lib/libssl.dylib, /usr/lib/libcrypto.dylib will be picked up in the third
2926−+ // disabled on macOS/iOS:
2927−+ // macOS's /usr/lib/libssl.dylib, /usr/lib/libcrypto.dylib will be picked up in the third
2928− // attempt, _after_ <bundle>/Contents/Frameworks has been searched.
2929− // iOS does not ship a system libssl.dylib, libcrypto.dylib in the first place.
2930− libssl->setFileNameAndVersion(QLatin1String("ssl"), -1);
2931−@@ -754,7 +825,11 @@ bool q_resolveOpenSslSymbols()
2932− static bool symbolsResolved = false;
2933− static bool triedToResolveSymbols = false;
2934− #ifndef QT_NO_THREAD
2935−+#if QT_CONFIG(opensslv11)
2936−+ QMutexLocker locker(QMutexPool::globalInstanceGet((void *)&q_OPENSSL_init_ssl));
2937−+#else
2938− QMutexLocker locker(QMutexPool::globalInstanceGet((void *)&q_SSL_library_init));
2939−+#endif
2940− #endif
2941− if (symbolsResolved)
2942− return true;
2943−@@ -771,11 +846,145 @@ bool q_resolveOpenSslSymbols()
2944− // failed to load them
2945− return false;
2946−
2947−+#if QT_CONFIG(opensslv11)
2948−+
2949−+ RESOLVEFUNC(OPENSSL_init_ssl)
2950−+ RESOLVEFUNC(OPENSSL_init_crypto)
2951−+ RESOLVEFUNC(ASN1_STRING_get0_data)
2952−+ RESOLVEFUNC(EVP_CIPHER_CTX_reset)
2953−+ RESOLVEFUNC(EVP_PKEY_base_id)
2954−+ RESOLVEFUNC(RSA_bits)
2955−+ RESOLVEFUNC(OPENSSL_sk_new_null)
2956−+ RESOLVEFUNC(OPENSSL_sk_push)
2957−+ RESOLVEFUNC(OPENSSL_sk_free)
2958−+ RESOLVEFUNC(OPENSSL_sk_num)
2959−+ RESOLVEFUNC(OPENSSL_sk_pop_free)
2960−+ RESOLVEFUNC(OPENSSL_sk_value)
2961−+ RESOLVEFUNC(DH_get0_pqg)
2962−+ RESOLVEFUNC(SSL_CTX_set_options)
2963−+ RESOLVEFUNC(SSL_get_client_random)
2964−+ RESOLVEFUNC(SSL_SESSION_get_master_key)
2965−+ RESOLVEFUNC(SSL_session_reused)
2966−+ RESOLVEFUNC(SSL_get_session)
2967−+ RESOLVEFUNC(CRYPTO_get_ex_new_index)
2968−+ RESOLVEFUNC(TLS_method)
2969−+ RESOLVEFUNC(TLS_client_method)
2970−+ RESOLVEFUNC(TLS_server_method)
2971−+ RESOLVEFUNC(X509_STORE_CTX_get0_chain)
2972−+ RESOLVEFUNC(X509_getm_notBefore)
2973−+ RESOLVEFUNC(X509_getm_notAfter)
2974−+ RESOLVEFUNC(X509_get_version)
2975−+ RESOLVEFUNC(X509_get_pubkey)
2976−+ RESOLVEFUNC(X509_STORE_set_verify_cb)
2977−+ RESOLVEFUNC(CRYPTO_free)
2978−+ RESOLVEFUNC(OpenSSL_version_num)
2979−+ RESOLVEFUNC(OpenSSL_version)
2980−+ if (!_q_OpenSSL_version) {
2981−+ // Apparently, we were built with OpenSSL 1.1 enabled but are now using
2982−+ // a wrong library.
2983−+ delete libs.first;
2984−+ delete libs.second;
2985−+ qCWarning(lcSsl, "Incompatible version of OpenSSL");
2986−+ return false;
2987−+ }
2988−+
2989−+ RESOLVEFUNC(SSL_SESSION_get_ticket_lifetime_hint)
2990−+ RESOLVEFUNC(DH_bits)
2991−+ RESOLVEFUNC(DSA_bits)
2992−+
2993−+#else // !opensslv11
2994−+
2995−+ RESOLVEFUNC(ASN1_STRING_data)
2996−+
2997− #ifdef SSLEAY_MACROS
2998− RESOLVEFUNC(ASN1_dup)
2999−+#endif // SSLEAY_MACROS
3000−+ RESOLVEFUNC(BIO_new_file)
3001−+ RESOLVEFUNC(ERR_clear_error)
3002−+ RESOLVEFUNC(CRYPTO_free)
3003−+ RESOLVEFUNC(CRYPTO_num_locks)
3004−+ RESOLVEFUNC(CRYPTO_set_id_callback)
3005−+ RESOLVEFUNC(CRYPTO_set_locking_callback)
3006−+ RESOLVEFUNC(ERR_peek_last_error)
3007−+ RESOLVEFUNC(ERR_free_strings)
3008−+ RESOLVEFUNC(EVP_CIPHER_CTX_cleanup)
3009−+ RESOLVEFUNC(EVP_CIPHER_CTX_init)
3010−+
3011−+#ifdef SSLEAY_MACROS // ### verify
3012−+ RESOLVEFUNC(PEM_ASN1_read_bio)
3013−+#endif // SSLEAY_MACROS
3014−+
3015−+ RESOLVEFUNC(sk_new_null)
3016−+ RESOLVEFUNC(sk_push)
3017−+ RESOLVEFUNC(sk_free)
3018−+ RESOLVEFUNC(sk_num)
3019−+ RESOLVEFUNC(sk_pop_free)
3020−+ RESOLVEFUNC(sk_value)
3021−+ RESOLVEFUNC(SSL_library_init)
3022−+ RESOLVEFUNC(SSL_load_error_strings)
3023−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
3024−+ RESOLVEFUNC(SSL_get_ex_new_index)
3025−+#endif
3026−+#ifndef OPENSSL_NO_SSL2
3027−+ RESOLVEFUNC(SSLv2_client_method)
3028− #endif
3029−+#ifndef OPENSSL_NO_SSL3_METHOD
3030−+ RESOLVEFUNC(SSLv3_client_method)
3031−+#endif
3032−+ RESOLVEFUNC(SSLv23_client_method)
3033−+ RESOLVEFUNC(TLSv1_client_method)
3034−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
3035−+ RESOLVEFUNC(TLSv1_1_client_method)
3036−+ RESOLVEFUNC(TLSv1_2_client_method)
3037−+#endif
3038−+#ifndef OPENSSL_NO_SSL2
3039−+ RESOLVEFUNC(SSLv2_server_method)
3040−+#endif
3041−+#ifndef OPENSSL_NO_SSL3_METHOD
3042−+ RESOLVEFUNC(SSLv3_server_method)
3043−+#endif
3044−+ RESOLVEFUNC(SSLv23_server_method)
3045−+ RESOLVEFUNC(TLSv1_server_method)
3046−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
3047−+ RESOLVEFUNC(TLSv1_1_server_method)
3048−+ RESOLVEFUNC(TLSv1_2_server_method)
3049−+#endif
3050−+ RESOLVEFUNC(X509_STORE_CTX_get_chain)
3051−+#ifdef SSLEAY_MACROS
3052−+ RESOLVEFUNC(i2d_DSAPrivateKey)
3053−+ RESOLVEFUNC(i2d_RSAPrivateKey)
3054−+ RESOLVEFUNC(d2i_DSAPrivateKey)
3055−+ RESOLVEFUNC(d2i_RSAPrivateKey)
3056−+#endif
3057−+ RESOLVEFUNC(CONF_get1_default_config_file)
3058−+ RESOLVEFUNC(OPENSSL_add_all_algorithms_noconf)
3059−+ RESOLVEFUNC(OPENSSL_add_all_algorithms_conf)
3060−+ RESOLVEFUNC(SSLeay)
3061−+
3062−+ if (!_q_SSLeay || q_SSLeay() >= 0x10100000L) {
3063−+ // OpenSSL 1.1 has deprecated and removed SSLeay. We consider a failure to
3064−+ // resolve this symbol as a failure to resolve symbols.
3065−+ // The right operand of '||' above is ... a bit of paranoia.
3066−+ delete libs.first;
3067−+ delete libs.second;
3068−+ qCWarning(lcSsl, "Incompatible version of OpenSSL");
3069−+ return false;
3070−+ }
3071−+
3072−+
3073−+ RESOLVEFUNC(SSLeay_version)
3074−+
3075−+#ifndef OPENSSL_NO_EC
3076−+#if OPENSSL_VERSION_NUMBER >= 0x10002000L
3077−+ if (q_SSLeay() >= 0x10002000L)
3078−+ RESOLVEFUNC(EC_curve_nist2nid)
3079−+#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
3080−+#endif // OPENSSL_NO_EC
3081−+
3082−+
3083−+#endif // !opensslv11
3084−+
3085− RESOLVEFUNC(ASN1_INTEGER_get)
3086−- RESOLVEFUNC(ASN1_STRING_data)
3087− RESOLVEFUNC(ASN1_STRING_length)
3088− RESOLVEFUNC(ASN1_STRING_to_UTF8)
3089− RESOLVEFUNC(BIO_ctrl)
3090−@@ -794,25 +1003,22 @@ bool q_resolveOpenSslSymbols()
3091− RESOLVEFUNC(BN_is_word)
3092− #endif
3093− RESOLVEFUNC(BN_mod_word)
3094−- RESOLVEFUNC(CRYPTO_free)
3095−- RESOLVEFUNC(CRYPTO_num_locks)
3096−- RESOLVEFUNC(CRYPTO_set_id_callback)
3097−- RESOLVEFUNC(CRYPTO_set_locking_callback)
3098− RESOLVEFUNC(DSA_new)
3099− RESOLVEFUNC(DSA_free)
3100− RESOLVEFUNC(ERR_error_string)
3101− RESOLVEFUNC(ERR_get_error)
3102−- RESOLVEFUNC(ERR_free_strings)
3103−- RESOLVEFUNC(EVP_CIPHER_CTX_cleanup)
3104−- RESOLVEFUNC(EVP_CIPHER_CTX_init)
3105−+ RESOLVEFUNC(EVP_CIPHER_CTX_new)
3106−+ RESOLVEFUNC(EVP_CIPHER_CTX_free)
3107− RESOLVEFUNC(EVP_CIPHER_CTX_ctrl)
3108− RESOLVEFUNC(EVP_CIPHER_CTX_set_key_length)
3109− RESOLVEFUNC(EVP_CipherInit)
3110−+ RESOLVEFUNC(EVP_CipherInit_ex)
3111− RESOLVEFUNC(EVP_CipherUpdate)
3112− RESOLVEFUNC(EVP_CipherFinal)
3113− RESOLVEFUNC(EVP_des_cbc)
3114− RESOLVEFUNC(EVP_des_ede3_cbc)
3115− RESOLVEFUNC(EVP_rc2_cbc)
3116−+ RESOLVEFUNC(EVP_sha1)
3117− RESOLVEFUNC(EVP_PKEY_assign)
3118− RESOLVEFUNC(EVP_PKEY_set1_RSA)
3119− RESOLVEFUNC(EVP_PKEY_set1_DSA)
3120−@@ -834,9 +1040,8 @@ bool q_resolveOpenSslSymbols()
3121− RESOLVEFUNC(i2t_ASN1_OBJECT)
3122− RESOLVEFUNC(OBJ_obj2txt)
3123− RESOLVEFUNC(OBJ_obj2nid)
3124−-#ifdef SSLEAY_MACROS // ### verify
3125−- RESOLVEFUNC(PEM_ASN1_read_bio)
3126−-#else
3127−+
3128−+#ifndef SSLEAY_MACROS
3129− RESOLVEFUNC(PEM_read_bio_PrivateKey)
3130− RESOLVEFUNC(PEM_read_bio_DSAPrivateKey)
3131− RESOLVEFUNC(PEM_read_bio_RSAPrivateKey)
3132−@@ -849,7 +1054,8 @@ bool q_resolveOpenSslSymbols()
3133− #ifndef OPENSSL_NO_EC
3134− RESOLVEFUNC(PEM_write_bio_ECPrivateKey)
3135− #endif
3136−-#endif
3137−+#endif // !SSLEAY_MACROS
3138−+
3139− RESOLVEFUNC(PEM_read_bio_PUBKEY)
3140− RESOLVEFUNC(PEM_read_bio_DSA_PUBKEY)
3141− RESOLVEFUNC(PEM_read_bio_RSA_PUBKEY)
3142−@@ -865,12 +1071,6 @@ bool q_resolveOpenSslSymbols()
3143− RESOLVEFUNC(RAND_status)
3144− RESOLVEFUNC(RSA_new)
3145− RESOLVEFUNC(RSA_free)
3146−- RESOLVEFUNC(sk_new_null)
3147−- RESOLVEFUNC(sk_push)
3148−- RESOLVEFUNC(sk_free)
3149−- RESOLVEFUNC(sk_num)
3150−- RESOLVEFUNC(sk_pop_free)
3151−- RESOLVEFUNC(sk_value)
3152− RESOLVEFUNC(SSL_CIPHER_description)
3153− RESOLVEFUNC(SSL_CIPHER_get_bits)
3154− RESOLVEFUNC(SSL_CTX_check_private_key)
3155−@@ -898,8 +1098,6 @@ bool q_resolveOpenSslSymbols()
3156− RESOLVEFUNC(SSL_get_peer_cert_chain)
3157− RESOLVEFUNC(SSL_get_peer_certificate)
3158− RESOLVEFUNC(SSL_get_verify_result)
3159−- RESOLVEFUNC(SSL_library_init)
3160−- RESOLVEFUNC(SSL_load_error_strings)
3161− RESOLVEFUNC(SSL_new)
3162− RESOLVEFUNC(SSL_ctrl)
3163− RESOLVEFUNC(SSL_read)
3164−@@ -912,7 +1110,6 @@ bool q_resolveOpenSslSymbols()
3165− RESOLVEFUNC(SSL_get1_session)
3166− RESOLVEFUNC(SSL_get_session)
3167− #if OPENSSL_VERSION_NUMBER >= 0x10001000L
3168−- RESOLVEFUNC(SSL_get_ex_new_index)
3169− RESOLVEFUNC(SSL_set_ex_data)
3170− RESOLVEFUNC(SSL_get_ex_data)
3171− #endif
3172−@@ -922,30 +1119,6 @@ bool q_resolveOpenSslSymbols()
3173− RESOLVEFUNC(SSL_CTX_use_psk_identity_hint)
3174− #endif
3175− RESOLVEFUNC(SSL_write)
3176−-#ifndef OPENSSL_NO_SSL2
3177−- RESOLVEFUNC(SSLv2_client_method)
3178−-#endif
3179−-#ifndef OPENSSL_NO_SSL3_METHOD
3180−- RESOLVEFUNC(SSLv3_client_method)
3181−-#endif
3182−- RESOLVEFUNC(SSLv23_client_method)
3183−- RESOLVEFUNC(TLSv1_client_method)
3184−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
3185−- RESOLVEFUNC(TLSv1_1_client_method)
3186−- RESOLVEFUNC(TLSv1_2_client_method)
3187−-#endif
3188−-#ifndef OPENSSL_NO_SSL2
3189−- RESOLVEFUNC(SSLv2_server_method)
3190−-#endif
3191−-#ifndef OPENSSL_NO_SSL3_METHOD
3192−- RESOLVEFUNC(SSLv3_server_method)
3193−-#endif
3194−- RESOLVEFUNC(SSLv23_server_method)
3195−- RESOLVEFUNC(TLSv1_server_method)
3196−-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
3197−- RESOLVEFUNC(TLSv1_1_server_method)
3198−- RESOLVEFUNC(TLSv1_2_server_method)
3199−-#endif
3200− RESOLVEFUNC(X509_NAME_entry_count)
3201− RESOLVEFUNC(X509_NAME_get_entry)
3202− RESOLVEFUNC(X509_NAME_ENTRY_get_data)
3203−@@ -961,12 +1134,12 @@ bool q_resolveOpenSslSymbols()
3204− RESOLVEFUNC(X509_STORE_CTX_get_error)
3205− RESOLVEFUNC(X509_STORE_CTX_get_error_depth)
3206− RESOLVEFUNC(X509_STORE_CTX_get_current_cert)
3207−- RESOLVEFUNC(X509_STORE_CTX_get_chain)
3208− RESOLVEFUNC(X509_cmp)
3209− #ifndef SSLEAY_MACROS
3210− RESOLVEFUNC(X509_dup)
3211− #endif
3212− RESOLVEFUNC(X509_print)
3213−+ RESOLVEFUNC(X509_digest)
3214− RESOLVEFUNC(X509_EXTENSION_get_object)
3215− RESOLVEFUNC(X509_free)
3216− RESOLVEFUNC(X509_get_ext)
3217−@@ -982,20 +1155,11 @@ bool q_resolveOpenSslSymbols()
3218− RESOLVEFUNC(X509_check_issued)
3219− RESOLVEFUNC(X509_get_issuer_name)
3220− RESOLVEFUNC(X509_get_subject_name)
3221−+ RESOLVEFUNC(X509_get_serialNumber)
3222− RESOLVEFUNC(X509_verify_cert)
3223− RESOLVEFUNC(d2i_X509)
3224− RESOLVEFUNC(i2d_X509)
3225−-#ifdef SSLEAY_MACROS
3226−- RESOLVEFUNC(i2d_DSAPrivateKey)
3227−- RESOLVEFUNC(i2d_RSAPrivateKey)
3228−- RESOLVEFUNC(d2i_DSAPrivateKey)
3229−- RESOLVEFUNC(d2i_RSAPrivateKey)
3230−-#endif
3231−- RESOLVEFUNC(OPENSSL_add_all_algorithms_noconf)
3232−- RESOLVEFUNC(OPENSSL_add_all_algorithms_conf)
3233− RESOLVEFUNC(SSL_CTX_load_verify_locations)
3234−- RESOLVEFUNC(SSLeay)
3235−- RESOLVEFUNC(SSLeay_version)
3236− RESOLVEFUNC(i2d_SSL_SESSION)
3237− RESOLVEFUNC(d2i_SSL_SESSION)
3238− #if OPENSSL_VERSION_NUMBER >= 0x1000100fL && !defined(OPENSSL_NO_NEXTPROTONEG)
3239−@@ -1019,27 +1183,14 @@ bool q_resolveOpenSslSymbols()
3240− RESOLVEFUNC(EC_KEY_new_by_curve_name)
3241− RESOLVEFUNC(EC_KEY_free)
3242− RESOLVEFUNC(EC_get_builtin_curves)
3243−-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
3244−- if (q_SSLeay() >= 0x10002000L)
3245−- RESOLVEFUNC(EC_curve_nist2nid)
3246−-#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
3247− #endif // OPENSSL_NO_EC
3248− RESOLVEFUNC(PKCS12_parse)
3249− RESOLVEFUNC(d2i_PKCS12_bio)
3250− RESOLVEFUNC(PKCS12_free)
3251−
3252−+ symbolsResolved = true;
3253− delete libs.first;
3254− delete libs.second;
3255−- if (!_q_SSLeay || q_SSLeay() >= 0x10100000L) {
3256−- // OpenSSL 1.1 deprecated and removed SSLeay. We consider a failure to
3257−- // resolve this symbol as a failure to resolve symbols.
3258−- // The right operand of '||' above ... a bit of paranoia.
3259−- qCWarning(lcSsl, "Incompatible version of OpenSSL");
3260−- return false;
3261−- }
3262−-
3263−- symbolsResolved = true;
3264−-
3265− return true;
3266− }
3267− #endif // QT_CONFIG(library)
3268−diff --git a/src/network/ssl/qsslsocket_openssl_symbols_p.h b/src/network/ssl/qsslsocket_openssl_symbols_p.h
3269−index b35a895d38..796bf2d4f5 100644
3270−--- a/src/network/ssl/qsslsocket_openssl_symbols_p.h
3271−+++ b/src/network/ssl/qsslsocket_openssl_symbols_p.h
3272−@@ -1,6 +1,6 @@
3273− /****************************************************************************
3274− **
3275−-** Copyright (C) 2016 The Qt Company Ltd.
3276−+** Copyright (C) 2017 The Qt Company Ltd.
3277− ** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
3278− ** Contact: https://www.qt.io/licensing/
3279− **
3280−@@ -56,6 +56,7 @@
3281− #ifndef QSSLSOCKET_OPENSSL_SYMBOLS_P_H
3282− #define QSSLSOCKET_OPENSSL_SYMBOLS_P_H
3283−
3284−+
3285− //
3286− // W A R N I N G
3287− // -------------
3288−@@ -215,17 +216,20 @@ QT_BEGIN_NAMESPACE
3289−
3290− #endif // !defined QT_LINKED_OPENSSL
3291−
3292−+#if QT_CONFIG(opensslv11)
3293−+#include "qsslsocket_openssl11_symbols_p.h"
3294−+#else
3295−+#include "qsslsocket_opensslpre11_symbols_p.h"
3296−+#endif // QT_CONFIG
3297−+
3298− bool q_resolveOpenSslSymbols();
3299− long q_ASN1_INTEGER_get(ASN1_INTEGER *a);
3300−-unsigned char * q_ASN1_STRING_data(ASN1_STRING *a);
3301− int q_ASN1_STRING_length(ASN1_STRING *a);
3302− int q_ASN1_STRING_to_UTF8(unsigned char **a, ASN1_STRING *b);
3303− long q_BIO_ctrl(BIO *a, int b, long c, void *d);
3304− Q_AUTOTEST_EXPORT int q_BIO_free(BIO *a);
3305−-Q_AUTOTEST_EXPORT BIO *q_BIO_new(BIO_METHOD *a);
3306− BIO *q_BIO_new_mem_buf(void *a, int b);
3307− int q_BIO_read(BIO *a, void *b, int c);
3308−-Q_AUTOTEST_EXPORT BIO_METHOD *q_BIO_s_mem();
3309− Q_AUTOTEST_EXPORT int q_BIO_write(BIO *a, const void *b, int c);
3310− int q_BN_num_bits(const BIGNUM *a);
3311− #if OPENSSL_VERSION_NUMBER >= 0x10100000L
3312−@@ -247,26 +251,23 @@ BN_ULONG q_BN_mod_word(const BIGNUM *a, BN_ULONG w);
3313− const EC_GROUP* q_EC_KEY_get0_group(const EC_KEY* k);
3314− int q_EC_GROUP_get_degree(const EC_GROUP* g);
3315− #endif
3316−-int q_CRYPTO_num_locks();
3317−-void q_CRYPTO_set_locking_callback(void (*a)(int, int, const char *, int));
3318−-void q_CRYPTO_set_id_callback(unsigned long (*a)());
3319−-void q_CRYPTO_free(void *a);
3320− DSA *q_DSA_new();
3321− void q_DSA_free(DSA *a);
3322− X509 *q_d2i_X509(X509 **a, const unsigned char **b, long c);
3323− char *q_ERR_error_string(unsigned long a, char *b);
3324− unsigned long q_ERR_get_error();
3325−-void q_ERR_free_strings();
3326−-void q_EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a);
3327−-void q_EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a);
3328−+EVP_CIPHER_CTX *q_EVP_CIPHER_CTX_new();
3329−+void q_EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *a);
3330− int q_EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr);
3331− int q_EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);
3332− int q_EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, const unsigned char *key, const unsigned char *iv, int enc);
3333−+int q_EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc);
3334− int q_EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl);
3335− int q_EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);
3336− const EVP_CIPHER *q_EVP_des_cbc();
3337− const EVP_CIPHER *q_EVP_des_ede3_cbc();
3338− const EVP_CIPHER *q_EVP_rc2_cbc();
3339−+const EVP_MD *q_EVP_sha1();
3340− int q_EVP_PKEY_assign(EVP_PKEY *a, int b, char *c);
3341− Q_AUTOTEST_EXPORT int q_EVP_PKEY_set1_RSA(EVP_PKEY *a, RSA *b);
3342− int q_EVP_PKEY_set1_DSA(EVP_PKEY *a, DSA *b);
3343−@@ -310,7 +311,7 @@ int q_PEM_write_bio_RSAPrivateKey(BIO *a, RSA *b, const EVP_CIPHER *c, unsigned
3344− int q_PEM_write_bio_ECPrivateKey(BIO *a, EC_KEY *b, const EVP_CIPHER *c, unsigned char *d,
3345− int e, pem_password_cb *f, void *g);
3346− #endif
3347−-#endif
3348−+#endif // SSLEAY_MACROS
3349− Q_AUTOTEST_EXPORT EVP_PKEY *q_PEM_read_bio_PUBKEY(BIO *a, EVP_PKEY **b, pem_password_cb *c, void *d);
3350− DSA *q_PEM_read_bio_DSA_PUBKEY(BIO *a, DSA **b, pem_password_cb *c, void *d);
3351− RSA *q_PEM_read_bio_RSA_PUBKEY(BIO *a, RSA **b, pem_password_cb *c, void *d);
3352−@@ -326,23 +327,10 @@ void q_RAND_seed(const void *a, int b);
3353− int q_RAND_status();
3354− RSA *q_RSA_new();
3355− void q_RSA_free(RSA *a);
3356−-int q_sk_num(STACK *a);
3357−-void q_sk_pop_free(STACK *a, void (*b)(void *));
3358−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
3359−-_STACK *q_sk_new_null();
3360−-void q_sk_push(_STACK *st, void *data);
3361−-void q_sk_free(_STACK *a);
3362−-void * q_sk_value(STACK *a, int b);
3363−-#else
3364−-STACK *q_sk_new_null();
3365−-void q_sk_push(STACK *st, char *data);
3366−-void q_sk_free(STACK *a);
3367−-char * q_sk_value(STACK *a, int b);
3368−-#endif
3369− int q_SSL_accept(SSL *a);
3370− int q_SSL_clear(SSL *a);
3371−-char *q_SSL_CIPHER_description(SSL_CIPHER *a, char *b, int c);
3372−-int q_SSL_CIPHER_get_bits(SSL_CIPHER *a, int *b);
3373−+char *q_SSL_CIPHER_description(const SSL_CIPHER *a, char *b, int c);
3374−+int q_SSL_CIPHER_get_bits(const SSL_CIPHER *a, int *b);
3375− int q_SSL_connect(SSL *a);
3376− int q_SSL_CTX_check_private_key(const SSL_CTX *a);
3377− long q_SSL_CTX_ctrl(SSL_CTX *a, int b, long c, void *d);
3378−@@ -374,8 +362,6 @@ int q_SSL_get_error(SSL *a, int b);
3379− STACK_OF(X509) *q_SSL_get_peer_cert_chain(SSL *a);
3380− X509 *q_SSL_get_peer_certificate(SSL *a);
3381− long q_SSL_get_verify_result(const SSL *a);
3382−-int q_SSL_library_init();
3383−-void q_SSL_load_error_strings();
3384− SSL *q_SSL_new(SSL_CTX *a);
3385− long q_SSL_ctrl(SSL *ssl,int cmd, long larg, void *parg);
3386− int q_SSL_read(SSL *a, void *b, int c);
3387−@@ -388,7 +374,6 @@ void q_SSL_SESSION_free(SSL_SESSION *ses);
3388− SSL_SESSION *q_SSL_get1_session(SSL *ssl);
3389− SSL_SESSION *q_SSL_get_session(const SSL *ssl);
3390− #if OPENSSL_VERSION_NUMBER >= 0x10001000L
3391−-int q_SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
3392− int q_SSL_set_ex_data(SSL *ssl, int idx, void *arg);
3393− void *q_SSL_get_ex_data(const SSL *ssl, int idx);
3394− #endif
3395−@@ -399,49 +384,6 @@ typedef unsigned int (*q_psk_server_callback_t)(SSL *ssl, const char *identity,
3396− void q_SSL_set_psk_server_callback(SSL *ssl, q_psk_server_callback_t callback);
3397− int q_SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *hint);
3398− #endif // OPENSSL_VERSION_NUMBER >= 0x10001000L && !defined(OPENSSL_NO_PSK)
3399−-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
3400−-#ifndef OPENSSL_NO_SSL2
3401−-const SSL_METHOD *q_SSLv2_client_method();
3402−-#endif
3403−-#ifndef OPENSSL_NO_SSL3_METHOD
3404−-const SSL_METHOD *q_SSLv3_client_method();
3405−-#endif
3406−-const SSL_METHOD *q_SSLv23_client_method();
3407−-const SSL_METHOD *q_TLSv1_client_method();
3408−-const SSL_METHOD *q_TLSv1_1_client_method();
3409−-const SSL_METHOD *q_TLSv1_2_client_method();
3410−-#ifndef OPENSSL_NO_SSL2
3411−-const SSL_METHOD *q_SSLv2_server_method();
3412−-#endif
3413−-#ifndef OPENSSL_NO_SSL3_METHOD
3414−-const SSL_METHOD *q_SSLv3_server_method();
3415−-#endif
3416−-const SSL_METHOD *q_SSLv23_server_method();
3417−-const SSL_METHOD *q_TLSv1_server_method();
3418−-const SSL_METHOD *q_TLSv1_1_server_method();
3419−-const SSL_METHOD *q_TLSv1_2_server_method();
3420−-#else
3421−-#ifndef OPENSSL_NO_SSL2
3422−-SSL_METHOD *q_SSLv2_client_method();
3423−-#endif
3424−-#ifndef OPENSSL_NO_SSL3_METHOD
3425−-SSL_METHOD *q_SSLv3_client_method();
3426−-#endif
3427−-SSL_METHOD *q_SSLv23_client_method();
3428−-SSL_METHOD *q_TLSv1_client_method();
3429−-SSL_METHOD *q_TLSv1_1_client_method();
3430−-SSL_METHOD *q_TLSv1_2_client_method();
3431−-#ifndef OPENSSL_NO_SSL2
3432−-SSL_METHOD *q_SSLv2_server_method();
3433−-#endif
3434−-#ifndef OPENSSL_NO_SSL3_METHOD
3435−-SSL_METHOD *q_SSLv3_server_method();
3436−-#endif
3437−-SSL_METHOD *q_SSLv23_server_method();
3438−-SSL_METHOD *q_TLSv1_server_method();
3439−-SSL_METHOD *q_TLSv1_1_server_method();
3440−-SSL_METHOD *q_TLSv1_2_server_method();
3441−-#endif
3442− int q_SSL_write(SSL *a, const void *b, int c);
3443− int q_X509_cmp(X509 *a, X509 *b);
3444− #ifdef SSLEAY_MACROS
3445−@@ -452,6 +394,7 @@ void *q_ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, char *x);
3446− X509 *q_X509_dup(X509 *a);
3447− #endif
3448− void q_X509_print(BIO *a, X509*b);
3449−+int q_X509_digest(const X509 *x509, const EVP_MD *type, unsigned char *md, unsigned int *len);
3450− ASN1_OBJECT *q_X509_EXTENSION_get_object(X509_EXTENSION *a);
3451− void q_X509_free(X509 *a);
3452− X509_EXTENSION *q_X509_get_ext(X509 *a, int b);
3453−@@ -471,6 +414,7 @@ int q_ASN1_STRING_print(BIO *a, ASN1_STRING *b);
3454− int q_X509_check_issued(X509 *a, X509 *b);
3455− X509_NAME *q_X509_get_issuer_name(X509 *a);
3456− X509_NAME *q_X509_get_subject_name(X509 *a);
3457−+ASN1_INTEGER *q_X509_get_serialNumber(X509 *a);
3458− int q_X509_verify_cert(X509_STORE_CTX *ctx);
3459− int q_X509_NAME_entry_count(X509_NAME *a);
3460− X509_NAME_ENTRY *q_X509_NAME_get_entry(X509_NAME *a,int b);
3461−@@ -488,7 +432,6 @@ int q_X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);
3462− int q_X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
3463− int q_X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
3464− X509 *q_X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
3465−-STACK_OF(X509) *q_X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx);
3466−
3467− // Diffie-Hellman support
3468− DH *q_DH_new();
3469−@@ -522,34 +465,9 @@ int q_PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
3470− PKCS12 *q_d2i_PKCS12_bio(BIO *bio, PKCS12 **pkcs12);
3471− void q_PKCS12_free(PKCS12 *pkcs12);
3472−
3473−-
3474− #define q_BIO_get_mem_data(b, pp) (int)q_BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp)
3475− #define q_BIO_pending(b) (int)q_BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
3476−-#ifdef SSLEAY_MACROS
3477−-int q_i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
3478−-int q_i2d_RSAPrivateKey(const RSA *a, unsigned char **pp);
3479−-RSA *q_d2i_RSAPrivateKey(RSA **a, unsigned char **pp, long length);
3480−-DSA *q_d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length);
3481−-#define q_PEM_read_bio_RSAPrivateKey(bp, x, cb, u) \
3482−- (RSA *)q_PEM_ASN1_read_bio( \
3483−- (void *(*)(void**, const unsigned char**, long int))q_d2i_RSAPrivateKey, PEM_STRING_RSA, bp, (void **)x, cb, u)
3484−-#define q_PEM_read_bio_DSAPrivateKey(bp, x, cb, u) \
3485−- (DSA *)q_PEM_ASN1_read_bio( \
3486−- (void *(*)(void**, const unsigned char**, long int))q_d2i_DSAPrivateKey, PEM_STRING_DSA, bp, (void **)x, cb, u)
3487−-#define q_PEM_write_bio_RSAPrivateKey(bp,x,enc,kstr,klen,cb,u) \
3488−- PEM_ASN1_write_bio((int (*)(void*, unsigned char**))q_i2d_RSAPrivateKey,PEM_STRING_RSA,\
3489−- bp,(char *)x,enc,kstr,klen,cb,u)
3490−-#define q_PEM_write_bio_DSAPrivateKey(bp,x,enc,kstr,klen,cb,u) \
3491−- PEM_ASN1_write_bio((int (*)(void*, unsigned char**))q_i2d_DSAPrivateKey,PEM_STRING_DSA,\
3492−- bp,(char *)x,enc,kstr,klen,cb,u)
3493−-#define q_PEM_read_bio_DHparams(bp, dh, cb, u) \
3494−- (DH *)q_PEM_ASN1_read_bio( \
3495−- (void *(*)(void**, const unsigned char**, long int))q_d2i_DHparams, PEM_STRING_DHPARAMS, bp, (void **)x, cb, u)
3496−-#endif
3497−-#define q_SSL_CTX_set_options(ctx,op) q_SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL)
3498− #define q_SSL_CTX_set_mode(ctx,op) q_SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)
3499−-#define q_SKM_sk_num(type, st) ((int (*)(const STACK_OF(type) *))q_sk_num)(st)
3500−-#define q_SKM_sk_value(type, st,i) ((type * (*)(const STACK_OF(type) *, int))q_sk_value)(st, i)
3501− #define q_sk_GENERAL_NAME_num(st) q_SKM_sk_num(GENERAL_NAME, (st))
3502− #define q_sk_GENERAL_NAME_value(st, i) q_SKM_sk_value(GENERAL_NAME, (st), (i))
3503− #define q_sk_X509_num(st) q_SKM_sk_num(X509, (st))
3504−@@ -558,18 +476,12 @@ DSA *q_d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length);
3505− #define q_sk_SSL_CIPHER_value(st, i) q_SKM_sk_value(SSL_CIPHER, (st), (i))
3506− #define q_SSL_CTX_add_extra_chain_cert(ctx,x509) \
3507− q_SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)x509)
3508−-#define q_X509_get_notAfter(x) X509_get_notAfter(x)
3509−-#define q_X509_get_notBefore(x) X509_get_notBefore(x)
3510− #define q_EVP_PKEY_assign_RSA(pkey,rsa) q_EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\
3511− (char *)(rsa))
3512− #define q_EVP_PKEY_assign_DSA(pkey,dsa) q_EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\
3513− (char *)(dsa))
3514− #define q_OpenSSL_add_all_algorithms() q_OPENSSL_add_all_algorithms_conf()
3515−-void q_OPENSSL_add_all_algorithms_noconf();
3516−-void q_OPENSSL_add_all_algorithms_conf();
3517− int q_SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, const char *CApath);
3518−-long q_SSLeay();
3519−-const char *q_SSLeay_version(int type);
3520− int q_i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);
3521− SSL_SESSION *q_d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length);
3522−
3523−diff --git a/src/network/ssl/qsslsocket_opensslpre11.cpp b/src/network/ssl/qsslsocket_opensslpre11.cpp
3524−new file mode 100644
3525−index 0000000000..e51888c5f2
3526−--- /dev/null
3527−+++ b/src/network/ssl/qsslsocket_opensslpre11.cpp
3528−@@ -0,0 +1,424 @@
3529−+/****************************************************************************
3530−+**
3531−+** Copyright (C) 2017 The Qt Company Ltd.
3532−+** Copyright (C) 2014 Governikus GmbH & Co. KG
3533−+** Contact: https://www.qt.io/licensing/
3534−+**
3535−+** This file is part of the QtNetwork module of the Qt Toolkit.
3536−+**
3537−+** $QT_BEGIN_LICENSE:LGPL$
3538−+** Commercial License Usage
3539−+** Licensees holding valid commercial Qt licenses may use this file in
3540−+** accordance with the commercial license agreement provided with the
3541−+** Software or, alternatively, in accordance with the terms contained in
3542−+** a written agreement between you and The Qt Company. For licensing terms
3543−+** and conditions see https://www.qt.io/terms-conditions. For further
3544−+** information use the contact form at https://www.qt.io/contact-us.
3545−+**
3546−+** GNU Lesser General Public License Usage
3547−+** Alternatively, this file may be used under the terms of the GNU Lesser
3548−+** General Public License version 3 as published by the Free Software
3549−+** Foundation and appearing in the file LICENSE.LGPL3 included in the
3550−+** packaging of this file. Please review the following information to
3551−+** ensure the GNU Lesser General Public License version 3 requirements
3552−+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
3553−+**
3554−+** GNU General Public License Usage
3555−+** Alternatively, this file may be used under the terms of the GNU
3556−+** General Public License version 2.0 or (at your option) the GNU General
3557−+** Public license version 3 or any later version approved by the KDE Free
3558−+** Qt Foundation. The licenses are as published by the Free Software
3559−+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
3560−+** included in the packaging of this file. Please review the following
3561−+** information to ensure the GNU General Public License requirements will
3562−+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
3563−+** https://www.gnu.org/licenses/gpl-3.0.html.
3564−+**
3565−+** $QT_END_LICENSE$
3566−+**
3567−+****************************************************************************/
3568−+
3569−+/****************************************************************************
3570−+**
3571−+** In addition, as a special exception, the copyright holders listed above give
3572−+** permission to link the code of its release of Qt with the OpenSSL project's
3573−+** "OpenSSL" library (or modified versions of the "OpenSSL" library that use the
3574−+** same license as the original version), and distribute the linked executables.
3575−+**
3576−+** You must comply with the GNU General Public License version 2 in all
3577−+** respects for all of the code used other than the "OpenSSL" code. If you
3578−+** modify this file, you may extend this exception to your version of the file,
3579−+** but you are not obligated to do so. If you do not wish to do so, delete
3580−+** this exception statement from your version of this file.
3581−+**
3582−+****************************************************************************/
3583−+
3584−+//#define QT_DECRYPT_SSL_TRAFFIC
3585−+
3586−+#include "qssl_p.h"
3587−+#include "qsslsocket_openssl_p.h"
3588−+#include "qsslsocket_openssl_symbols_p.h"
3589−+#include "qsslsocket.h"
3590−+#include "qsslkey.h"
3591−+
3592−+#include <QtCore/qdebug.h>
3593−+#include <QtCore/qdir.h>
3594−+#include <QtCore/qdiriterator.h>
3595−+#include <QtCore/qthread.h>
3596−+#include <QtCore/qfile.h>
3597−+#include <QtCore/qmutex.h>
3598−+#include <QtCore/qlibrary.h>
3599−+
3600−+QT_BEGIN_NAMESPACE
3601−+
3602−+/* \internal
3603−+
3604−+ From OpenSSL's thread(3) manual page:
3605−+
3606−+ OpenSSL can safely be used in multi-threaded applications provided that at
3607−+ least two callback functions are set.
3608−+
3609−+ locking_function(int mode, int n, const char *file, int line) is needed to
3610−+ perform locking on shared data structures. (Note that OpenSSL uses a
3611−+ number of global data structures that will be implicitly shared
3612−+ whenever multiple threads use OpenSSL.) Multi-threaded
3613−+ applications will crash at random if it is not set. ...
3614−+ ...
3615−+ id_function(void) is a function that returns a thread ID. It is not
3616−+ needed on Windows nor on platforms where getpid() returns a different
3617−+ ID for each thread (most notably Linux)
3618−+*/
3619−+
3620−+class QOpenSslLocks
3621−+{
3622−+public:
3623−+ QOpenSslLocks()
3624−+ : initLocker(QMutex::Recursive),
3625−+ locksLocker(QMutex::Recursive)
3626−+ {
3627−+ QMutexLocker locker(&locksLocker);
3628−+ int numLocks = q_CRYPTO_num_locks();
3629−+ locks = new QMutex *[numLocks];
3630−+ memset(locks, 0, numLocks * sizeof(QMutex *));
3631−+ }
3632−+ ~QOpenSslLocks()
3633−+ {
3634−+ QMutexLocker locker(&locksLocker);
3635−+ for (int i = 0; i < q_CRYPTO_num_locks(); ++i)
3636−+ delete locks[i];
3637−+ delete [] locks;
3638−+
3639−+ QSslSocketPrivate::deinitialize();
3640−+ }
3641−+ QMutex *lock(int num)
3642−+ {
3643−+ QMutexLocker locker(&locksLocker);
3644−+ QMutex *tmp = locks[num];
3645−+ if (!tmp)
3646−+ tmp = locks[num] = new QMutex(QMutex::Recursive);
3647−+ return tmp;
3648−+ }
3649−+
3650−+ QMutex *globalLock()
3651−+ {
3652−+ return &locksLocker;
3653−+ }
3654−+
3655−+ QMutex *initLock()
3656−+ {
3657−+ return &initLocker;
3658−+ }
3659−+
3660−+private:
3661−+ QMutex initLocker;
3662−+ QMutex locksLocker;
3663−+ QMutex **locks;
3664−+};
3665−+
3666−+Q_GLOBAL_STATIC(QOpenSslLocks, openssl_locks)
3667−+
3668−+extern "C" {
3669−+static void locking_function(int mode, int lockNumber, const char *, int)
3670−+{
3671−+ QMutex *mutex = openssl_locks()->lock(lockNumber);
3672−+
3673−+ // Lock or unlock it
3674−+ if (mode & CRYPTO_LOCK)
3675−+ mutex->lock();
3676−+ else
3677−+ mutex->unlock();
3678−+}
3679−+static unsigned long id_function()
3680−+{
3681−+ return (quintptr)QThread::currentThreadId();
3682−+}
3683−+
3684−+} // extern "C"
3685−+
3686−+static void q_OpenSSL_add_all_algorithms_safe()
3687−+{
3688−+#ifdef Q_OS_WIN
3689−+ // Prior to version 1.0.1m an attempt to call OpenSSL_add_all_algorithms on
3690−+ // Windows could result in 'exit' call from OPENSSL_config (QTBUG-43843).
3691−+ // We can predict this and avoid OPENSSL_add_all_algorithms call.
3692−+ // From OpenSSL docs:
3693−+ // "An application does not need to add algorithms to use them explicitly,
3694−+ // for example by EVP_sha1(). It just needs to add them if it (or any of
3695−+ // the functions it calls) needs to lookup algorithms.
3696−+ // The cipher and digest lookup functions are used in many parts of the
3697−+ // library. If the table is not initialized several functions will
3698−+ // misbehave and complain they cannot find algorithms. This includes the
3699−+ // PEM, PKCS#12, SSL and S/MIME libraries. This is a common query in
3700−+ // the OpenSSL mailing lists."
3701−+ //
3702−+ // Anyway, as a result, we chose not to call this function if it would exit.
3703−+
3704−+ if (q_SSLeay() < 0x100010DFL)
3705−+ {
3706−+ // Now, before we try to call it, check if an attempt to open config file
3707−+ // will result in exit:
3708−+ if (char *confFileName = q_CONF_get1_default_config_file()) {
3709−+ BIO *confFile = q_BIO_new_file(confFileName, "r");
3710−+ const auto lastError = q_ERR_peek_last_error();
3711−+ q_CRYPTO_free(confFileName);
3712−+ if (confFile) {
3713−+ q_BIO_free(confFile);
3714−+ } else {
3715−+ q_ERR_clear_error();
3716−+ if (ERR_GET_REASON(lastError) == ERR_R_SYS_LIB) {
3717−+ qCWarning(lcSsl, "failed to open openssl.conf file");
3718−+ return;
3719−+ }
3720−+ }
3721−+ }
3722−+ }
3723−+#endif // Q_OS_WIN
3724−+
3725−+ q_OpenSSL_add_all_algorithms();
3726−+}
3727−+
3728−+
3729−+/*!
3730−+ \internal
3731−+*/
3732−+void QSslSocketPrivate::deinitialize()
3733−+{
3734−+ q_CRYPTO_set_id_callback(0);
3735−+ q_CRYPTO_set_locking_callback(0);
3736−+ q_ERR_free_strings();
3737−+}
3738−+
3739−+
3740−+bool QSslSocketPrivate::ensureLibraryLoaded()
3741−+{
3742−+ if (!q_resolveOpenSslSymbols())
3743−+ return false;
3744−+
3745−+ // Check if the library itself needs to be initialized.
3746−+ QMutexLocker locker(openssl_locks()->initLock());
3747−+
3748−+ if (!s_libraryLoaded) {
3749−+ s_libraryLoaded = true;
3750−+
3751−+ // Initialize OpenSSL.
3752−+ q_CRYPTO_set_id_callback(id_function);
3753−+ q_CRYPTO_set_locking_callback(locking_function);
3754−+ if (q_SSL_library_init() != 1)
3755−+ return false;
3756−+ q_SSL_load_error_strings();
3757−+ q_OpenSSL_add_all_algorithms_safe();
3758−+
3759−+#if OPENSSL_VERSION_NUMBER >= 0x10001000L
3760−+ if (q_SSLeay() >= 0x10001000L)
3761−+ QSslSocketBackendPrivate::s_indexForSSLExtraData = q_SSL_get_ex_new_index(0L, NULL, NULL, NULL, NULL);
3762−+#endif
3763−+
3764−+ // Initialize OpenSSL's random seed.
3765−+ if (!q_RAND_status()) {
3766−+ qWarning("Random number generator not seeded, disabling SSL support");
3767−+ return false;
3768−+ }
3769−+ }
3770−+ return true;
3771−+}
3772−+
3773−+void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
3774−+{
3775−+ QMutexLocker locker(openssl_locks()->initLock());
3776−+ if (s_loadedCiphersAndCerts)
3777−+ return;
3778−+ s_loadedCiphersAndCerts = true;
3779−+
3780−+ resetDefaultCiphers();
3781−+ resetDefaultEllipticCurves();
3782−+
3783−+#if QT_CONFIG(library)
3784−+ //load symbols needed to receive certificates from system store
3785−+#if defined(Q_OS_WIN)
3786−+ HINSTANCE hLib = LoadLibraryW(L"Crypt32");
3787−+ if (hLib) {
3788−+ ptrCertOpenSystemStoreW = (PtrCertOpenSystemStoreW)GetProcAddress(hLib, "CertOpenSystemStoreW");
3789−+ ptrCertFindCertificateInStore = (PtrCertFindCertificateInStore)GetProcAddress(hLib, "CertFindCertificateInStore");
3790−+ ptrCertCloseStore = (PtrCertCloseStore)GetProcAddress(hLib, "CertCloseStore");
3791−+ if (!ptrCertOpenSystemStoreW || !ptrCertFindCertificateInStore || !ptrCertCloseStore)
3792−+ qCWarning(lcSsl, "could not resolve symbols in crypt32 library"); // should never happen
3793−+ } else {
3794−+ qCWarning(lcSsl, "could not load crypt32 library"); // should never happen
3795−+ }
3796−+#elif defined(Q_OS_QNX)
3797−+ s_loadRootCertsOnDemand = true;
3798−+#elif defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
3799−+ // check whether we can enable on-demand root-cert loading (i.e. check whether the sym links are there)
3800−+ QList<QByteArray> dirs = unixRootCertDirectories();
3801−+ QStringList symLinkFilter;
3802−+ symLinkFilter << QLatin1String("[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].[0-9]");
3803−+ for (int a = 0; a < dirs.count(); ++a) {
3804−+ QDirIterator iterator(QLatin1String(dirs.at(a)), symLinkFilter, QDir::Files);
3805−+ if (iterator.hasNext()) {
3806−+ s_loadRootCertsOnDemand = true;
3807−+ break;
3808−+ }
3809−+ }
3810−+#endif
3811−+#endif // QT_CONFIG(library)
3812−+ // if on-demand loading was not enabled, load the certs now
3813−+ if (!s_loadRootCertsOnDemand)
3814−+ setDefaultCaCertificates(systemCaCertificates());
3815−+#ifdef Q_OS_WIN
3816−+ //Enabled for fetching additional root certs from windows update on windows 6+
3817−+ //This flag is set false by setDefaultCaCertificates() indicating the app uses
3818−+ //its own cert bundle rather than the system one.
3819−+ //Same logic that disables the unix on demand cert loading.
3820−+ //Unlike unix, we do preload the certificates from the cert store.
3821−+ if ((QSysInfo::windowsVersion() & QSysInfo::WV_NT_based) >= QSysInfo::WV_6_0)
3822−+ s_loadRootCertsOnDemand = true;
3823−+#endif
3824−+}
3825−+
3826−+long QSslSocketPrivate::sslLibraryVersionNumber()
3827−+{
3828−+ if (!supportsSsl())
3829−+ return 0;
3830−+
3831−+ return q_SSLeay();
3832−+}
3833−+
3834−+QString QSslSocketPrivate::sslLibraryVersionString()
3835−+{
3836−+ if (!supportsSsl())
3837−+ return QString();
3838−+
3839−+ const char *versionString = q_SSLeay_version(SSLEAY_VERSION);
3840−+ if (!versionString)
3841−+ return QString();
3842−+
3843−+ return QString::fromLatin1(versionString);
3844−+}
3845−+
3846−+void QSslSocketBackendPrivate::continueHandshake()
3847−+{
3848−+ Q_Q(QSslSocket);
3849−+ // if we have a max read buffer size, reset the plain socket's to match
3850−+ if (readBufferMaxSize)
3851−+ plainSocket->setReadBufferSize(readBufferMaxSize);
3852−+
3853−+ if (q_SSL_ctrl((ssl), SSL_CTRL_GET_SESSION_REUSED, 0, NULL))
3854−+ configuration.peerSessionShared = true;
3855−+
3856−+#ifdef QT_DECRYPT_SSL_TRAFFIC
3857−+ if (ssl->session && ssl->s3) {
3858−+ const char *mk = reinterpret_cast<const char *>(ssl->session->master_key);
3859−+ QByteArray masterKey(mk, ssl->session->master_key_length);
3860−+ const char *random = reinterpret_cast<const char *>(ssl->s3->client_random);
3861−+ QByteArray clientRandom(random, SSL3_RANDOM_SIZE);
3862−+
3863−+ // different format, needed for e.g. older Wireshark versions:
3864−+// const char *sid = reinterpret_cast<const char *>(ssl->session->session_id);
3865−+// QByteArray sessionID(sid, ssl->session->session_id_length);
3866−+// QByteArray debugLineRSA("RSA Session-ID:");
3867−+// debugLineRSA.append(sessionID.toHex().toUpper());
3868−+// debugLineRSA.append(" Master-Key:");
3869−+// debugLineRSA.append(masterKey.toHex().toUpper());
3870−+// debugLineRSA.append("\n");
3871−+
3872−+ QByteArray debugLineClientRandom("CLIENT_RANDOM ");
3873−+ debugLineClientRandom.append(clientRandom.toHex().toUpper());
3874−+ debugLineClientRandom.append(" ");
3875−+ debugLineClientRandom.append(masterKey.toHex().toUpper());
3876−+ debugLineClientRandom.append("\n");
3877−+
3878−+ QString sslKeyFile = QDir::tempPath() + QLatin1String("/qt-ssl-keys");
3879−+ QFile file(sslKeyFile);
3880−+ if (!file.open(QIODevice::Append))
3881−+ qCWarning(lcSsl) << "could not open file" << sslKeyFile << "for appending";
3882−+ if (!file.write(debugLineClientRandom))
3883−+ qCWarning(lcSsl) << "could not write to file" << sslKeyFile;
3884−+ file.close();
3885−+ } else {
3886−+ qCWarning(lcSsl, "could not decrypt SSL traffic");
3887−+ }
3888−+#endif
3889−+
3890−+ // Cache this SSL session inside the QSslContext
3891−+ if (!(configuration.sslOptions & QSsl::SslOptionDisableSessionSharing)) {
3892−+ if (!sslContextPointer->cacheSession(ssl)) {
3893−+ sslContextPointer.clear(); // we could not cache the session
3894−+ } else {
3895−+ // Cache the session for permanent usage as well
3896−+ if (!(configuration.sslOptions & QSsl::SslOptionDisableSessionPersistence)) {
3897−+ if (!sslContextPointer->sessionASN1().isEmpty())
3898−+ configuration.sslSession = sslContextPointer->sessionASN1();
3899−+ configuration.sslSessionTicketLifeTimeHint = sslContextPointer->sessionTicketLifeTimeHint();
3900−+ }
3901−+ }
3902−+ }
3903−+
3904−+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && !defined(OPENSSL_NO_NEXTPROTONEG)
3905−+
3906−+ configuration.nextProtocolNegotiationStatus = sslContextPointer->npnContext().status;
3907−+ if (sslContextPointer->npnContext().status == QSslConfiguration::NextProtocolNegotiationUnsupported) {
3908−+ // we could not agree -> be conservative and use HTTP/1.1
3909−+ configuration.nextNegotiatedProtocol = QByteArrayLiteral("http/1.1");
3910−+ } else {
3911−+ const unsigned char *proto = 0;
3912−+ unsigned int proto_len = 0;
3913−+#if OPENSSL_VERSION_NUMBER >= 0x10002000L
3914−+ if (q_SSLeay() >= 0x10002000L) {
3915−+ q_SSL_get0_alpn_selected(ssl, &proto, &proto_len);
3916−+ if (proto_len && mode == QSslSocket::SslClientMode) {
3917−+ // Client does not have a callback that sets it ...
3918−+ configuration.nextProtocolNegotiationStatus = QSslConfiguration::NextProtocolNegotiationNegotiated;
3919−+ }
3920−+ }
3921−+
3922−+ if (!proto_len) { // Test if NPN was more lucky ...
3923−+#else
3924−+ {
3925−+#endif
3926−+ q_SSL_get0_next_proto_negotiated(ssl, &proto, &proto_len);
3927−+ }
3928−+
3929−+ if (proto_len)
3930−+ configuration.nextNegotiatedProtocol = QByteArray(reinterpret_cast<const char *>(proto), proto_len);
3931−+ else
3932−+ configuration.nextNegotiatedProtocol.clear();
3933−+ }
3934−+#endif // OPENSSL_VERSION_NUMBER >= 0x1000100fL ...
3935−+
3936−+#if OPENSSL_VERSION_NUMBER >= 0x10002000L
3937−+ if (q_SSLeay() >= 0x10002000L && mode == QSslSocket::SslClientMode) {
3938−+ EVP_PKEY *key;
3939−+ if (q_SSL_get_server_tmp_key(ssl, &key))
3940−+ configuration.ephemeralServerKey = QSslKey(key, QSsl::PublicKey);
3941−+ }
3942−+#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L ...
3943−+
3944−+ connectionEncrypted = true;
3945−+ emit q->encrypted();
3946−+ if (autoStartHandshake && pendingClose) {
3947−+ pendingClose = false;
3948−+ q->disconnectFromHost();
3949−+ }
3950−+}
3951−+
3952−+QT_END_NAMESPACE
3953−diff --git a/src/network/ssl/ssl.pri b/src/network/ssl/ssl.pri
3954−index d2b0c2d60d..2783effaf1 100644
3955−--- a/src/network/ssl/ssl.pri
3956−+++ b/src/network/ssl/ssl.pri
3957−@@ -60,13 +60,25 @@ qtConfig(ssl) {
3958− HEADERS += ssl/qsslcontext_openssl_p.h \
3959− ssl/qsslsocket_openssl_p.h \
3960− ssl/qsslsocket_openssl_symbols_p.h
3961−- SOURCES += ssl/qsslcertificate_openssl.cpp \
3962−- ssl/qsslcontext_openssl.cpp \
3963−+ SOURCES += ssl/qsslsocket_openssl_symbols.cpp \
3964− ssl/qssldiffiehellmanparameters_openssl.cpp \
3965−+ ssl/qsslcertificate_openssl.cpp \
3966− ssl/qsslellipticcurve_openssl.cpp \
3967− ssl/qsslkey_openssl.cpp \
3968− ssl/qsslsocket_openssl.cpp \
3969−- ssl/qsslsocket_openssl_symbols.cpp
3970−+ ssl/qsslcontext_openssl.cpp
3971−+
3972−+ qtConfig(opensslv11) {
3973−+ HEADERS += ssl/qsslsocket_openssl11_symbols_p.h
3974−+ SOURCES += ssl/qsslsocket_openssl11.cpp \
3975−+ ssl/qsslcontext_openssl11.cpp
3976−+
3977−+ QMAKE_CXXFLAGS += -DOPENSSL_API_COMPAT=0x10100000L
3978−+ } else {
3979−+ HEADERS += ssl/qsslsocket_opensslpre11_symbols_p.h
3980−+ SOURCES += ssl/qsslsocket_opensslpre11.cpp \
3981−+ ssl/qsslcontext_opensslpre11.cpp
3982−+ }
3983−
3984− darwin:SOURCES += ssl/qsslsocket_mac_shared.cpp
3985−
pkgs/development/libraries/qt-5/5.9/qtbase.patchdeleted−1119
@@ -1,1119 +0,0 @@
1−diff --git a/mkspecs/common/mac.conf b/mkspecs/common/mac.conf
2−index 5208379f9a..92fe29a0ac 100644
3−--- a/mkspecs/common/mac.conf
4−+++ b/mkspecs/common/mac.conf
5−@@ -23,7 +23,7 @@ QMAKE_INCDIR_OPENGL = \
6−
7− QMAKE_FIX_RPATH = install_name_tool -id
8−
9−-QMAKE_LFLAGS_RPATH = -Wl,-rpath,
10−+QMAKE_LFLAGS_RPATH =
11− QMAKE_LFLAGS_GCSECTIONS = -Wl,-dead_strip
12−
13− QMAKE_LFLAGS_REL_RPATH =
14−diff --git a/mkspecs/features/create_cmake.prf b/mkspecs/features/create_cmake.prf
15−index bb5083c925..77034f9bb6 100644
16−--- a/mkspecs/features/create_cmake.prf
17−+++ b/mkspecs/features/create_cmake.prf
18−@@ -21,7 +21,7 @@ load(cmake_functions)
19− # at cmake time whether package has been found via a symlink, and correct
20− # that to an absolute path. This is only done for installations to
21− # the /usr or / prefix.
22−-CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$[QT_INSTALL_LIBS])
23−+CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$NIX_OUTPUT_OUT/lib/)
24− contains(CMAKE_INSTALL_LIBS_DIR, ^(/usr)?/lib(64)?.*): CMAKE_USR_MOVE_WORKAROUND = $$CMAKE_INSTALL_LIBS_DIR
25−
26− CMAKE_OUT_DIR = $$MODULE_BASE_OUTDIR/lib/cmake
27−@@ -47,47 +47,22 @@ split_incpath {
28− $$cmake_extra_source_includes.output
29− }
30−
31−-CMAKE_INCLUDE_DIR = $$cmakeRelativePath($$[QT_INSTALL_HEADERS], $$[QT_INSTALL_PREFIX])
32−-contains(CMAKE_INCLUDE_DIR, "^\\.\\./.*") {
33−- CMAKE_INCLUDE_DIR = $$[QT_INSTALL_HEADERS]/
34−- CMAKE_INCLUDE_DIR_IS_ABSOLUTE = True
35−-}
36−+CMAKE_INCLUDE_DIR = $$NIX_OUTPUT_DEV/include/
37−+CMAKE_INCLUDE_DIR_IS_ABSOLUTE = True
38−
39− !exists($$first(QT.$${MODULE}_private.includes)): CMAKE_NO_PRIVATE_INCLUDES = true
40−
41−-CMAKE_LIB_DIR = $$cmakeRelativePath($$[QT_INSTALL_LIBS], $$[QT_INSTALL_PREFIX])
42−-contains(CMAKE_LIB_DIR,"^\\.\\./.*") {
43−- CMAKE_LIB_DIR = $$[QT_INSTALL_LIBS]/
44−- CMAKE_LIB_DIR_IS_ABSOLUTE = True
45−-} else {
46−- CMAKE_RELATIVE_INSTALL_LIBS_DIR = $$cmakeRelativePath($$[QT_INSTALL_PREFIX], $$[QT_INSTALL_LIBS])
47−- # We need to go up another two levels because the CMake files are
48−- # installed in $${CMAKE_LIB_DIR}/cmake/Qt5$${CMAKE_MODULE_NAME}
49−- CMAKE_RELATIVE_INSTALL_DIR = "$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}../../"
50−-}
51−+CMAKE_LIB_DIR = $$NIX_OUTPUT_OUT/lib/
52−+CMAKE_LIB_DIR_IS_ABSOLUTE = True
53−
54−-CMAKE_BIN_DIR = $$cmakeRelativePath($$[QT_HOST_BINS], $$[QT_INSTALL_PREFIX])
55−-contains(CMAKE_BIN_DIR, "^\\.\\./.*") {
56−- CMAKE_BIN_DIR = $$[QT_HOST_BINS]/
57−- CMAKE_BIN_DIR_IS_ABSOLUTE = True
58−-}
59−+CMAKE_BIN_DIR = $$NIX_OUTPUT_BIN/bin/
60−+CMAKE_BIN_DIR_IS_ABSOLUTE = True
61−
62−-CMAKE_PLUGIN_DIR = $$cmakeRelativePath($$[QT_INSTALL_PLUGINS], $$[QT_INSTALL_PREFIX])
63−-contains(CMAKE_PLUGIN_DIR, "^\\.\\./.*") {
64−- CMAKE_PLUGIN_DIR = $$[QT_INSTALL_PLUGINS]/
65−- CMAKE_PLUGIN_DIR_IS_ABSOLUTE = True
66−-}
67−+CMAKE_PLUGIN_DIR = $$NIX_OUTPUT_PLUGIN/
68−+CMAKE_PLUGIN_DIR_IS_ABSOLUTE = True
69−
70−-win32:!static:!staticlib {
71−- CMAKE_DLL_DIR = $$cmakeRelativePath($$[QT_INSTALL_BINS], $$[QT_INSTALL_PREFIX])
72−- contains(CMAKE_DLL_DIR, "^\\.\\./.*") {
73−- CMAKE_DLL_DIR = $$[QT_INSTALL_BINS]/
74−- CMAKE_DLL_DIR_IS_ABSOLUTE = True
75−- }
76−-} else {
77−- CMAKE_DLL_DIR = $$CMAKE_LIB_DIR
78−- CMAKE_DLL_DIR_IS_ABSOLUTE = $$CMAKE_LIB_DIR_IS_ABSOLUTE
79−-}
80−+CMAKE_DLL_DIR = $$NIX_OUTPUT_OUT/lib/
81−+CMAKE_DLL_DIR_IS_ABSOLUTE = True
82−
83− static|staticlib:CMAKE_STATIC_TYPE = true
84−
85−@@ -167,7 +142,7 @@ contains(CONFIG, plugin) {
86− cmake_target_file
87−
88− cmake_qt5_plugin_file.files = $$cmake_target_file.output
89−- cmake_qt5_plugin_file.path = $$[QT_INSTALL_LIBS]/cmake/Qt5$${CMAKE_MODULE_NAME}
90−+ cmake_qt5_plugin_file.path = $$NIX_OUTPUT_OUT/lib/cmake/Qt5$${CMAKE_MODULE_NAME}
91− INSTALLS += cmake_qt5_plugin_file
92−
93− return()
94−@@ -314,7 +289,7 @@ exists($$cmake_macros_file.input) {
95− cmake_qt5_module_files.files += $$cmake_macros_file.output
96− }
97−
98−-cmake_qt5_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5$${CMAKE_MODULE_NAME}
99−+cmake_qt5_module_files.path = $$NIX_OUTPUT_OUT/lib/cmake/Qt5$${CMAKE_MODULE_NAME}
100−
101− # We are generating cmake files. Most developers of Qt are not aware of cmake,
102− # so we require automatic tests to be available. The only module which should
103−diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
104−index 55c74aad66..0bbc8718eb 100644
105−--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
106−+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
107−@@ -9,30 +9,6 @@ if (CMAKE_VERSION VERSION_LESS 3.0.0)
108− endif()
109− !!ENDIF
110−
111−-!!IF !isEmpty(CMAKE_USR_MOVE_WORKAROUND)
112−-!!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
113−-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
114−-!!ELSE
115−-get_filename_component(_IMPORT_PREFIX \"${CMAKE_CURRENT_LIST_FILE}\" PATH)
116−-# Use original install prefix when loaded through a
117−-# cross-prefix symbolic link such as /lib -> /usr/lib.
118−-get_filename_component(_realCurr \"${_IMPORT_PREFIX}\" REALPATH)
119−-get_filename_component(_realOrig \"$$CMAKE_INSTALL_LIBS_DIR/cmake/Qt5$${CMAKE_MODULE_NAME}\" REALPATH)
120−-if(_realCurr STREQUAL _realOrig)
121−- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR/$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}\" ABSOLUTE)
122−-else()
123−- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
124−-endif()
125−-unset(_realOrig)
126−-unset(_realCurr)
127−-unset(_IMPORT_PREFIX)
128−-!!ENDIF
129−-!!ELIF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
130−-get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
131−-!!ELSE
132−-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
133−-!!ENDIF
134−-
135− !!IF !equals(TEMPLATE, aux)
136− # For backwards compatibility only. Use Qt5$${CMAKE_MODULE_NAME}_VERSION instead.
137− set(Qt5$${CMAKE_MODULE_NAME}_VERSION_STRING "$$eval(QT.$${MODULE}.VERSION)")
138−@@ -58,11 +34,7 @@ endmacro()
139− macro(_populate_$${CMAKE_MODULE_NAME}_target_properties Configuration LIB_LOCATION IMPLIB_LOCATION)
140− set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
141−
142−-!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
143−- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
144−-!!ELSE
145− set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
146−-!!ENDIF
147− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
148− set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
149− \"INTERFACE_LINK_LIBRARIES\" \"${_Qt5$${CMAKE_MODULE_NAME}_LIB_DEPENDENCIES}\"
150−@@ -75,11 +47,7 @@ macro(_populate_$${CMAKE_MODULE_NAME}_target_properties Configuration LIB_LOCATI
151− )
152−
153− !!IF !isEmpty(CMAKE_WINDOWS_BUILD)
154−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
155−- set(imported_implib \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
156−-!!ELSE
157− set(imported_implib \"IMPORTED_IMPLIB_${Configuration}\" \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
158−-!!ENDIF
159− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_implib})
160− if(NOT \"${IMPLIB_LOCATION}\" STREQUAL \"\")
161− set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
162−@@ -95,24 +63,13 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
163− !!IF !no_module_headers
164− !!IF !isEmpty(CMAKE_BUILD_IS_FRAMEWORK)
165− set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS
166−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework\"
167−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Headers\"
168−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework\"
169−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Headers\"
170− )
171− !!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
172− set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
173−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/\"
174−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/$${MODULE_INCNAME}\"
175−- )
176−-!!ELSE
177−- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
178−-!!ENDIF
179−-!!ELSE
180−-!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
181−- set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR\" \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}\")
182−-!!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
183−- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
184−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION\"
185−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION/$${MODULE_INCNAME}\"
186−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/\"
187−+ \"$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/$${MODULE_INCNAME}\"
188− )
189− !!ELSE
190− set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
191−@@ -128,7 +85,6 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
192− set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
193− !!ENDIF
194− !!ENDIF
195−-!!ENDIF
196− !!IF !isEmpty(CMAKE_ADD_SOURCE_INCLUDE_DIRS)
197− include(\"${CMAKE_CURRENT_LIST_DIR}/ExtraSourceIncludes.cmake\" OPTIONAL)
198− !!ENDIF
199−@@ -280,25 +236,13 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
200− !!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
201− !!IF isEmpty(CMAKE_DEBUG_TYPE)
202− !!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
203−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
204−- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
205−-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
206− if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
207−-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
208− _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" \"\" )
209− !!ELSE // CMAKE_STATIC_WINDOWS_BUILD
210− if (EXISTS
211−-!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
212−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
213−-!!ELSE
214− \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
215−-!!ENDIF
216− AND EXISTS
217−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
218−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
219−-!!ELSE
220− \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
221−-!!ENDIF
222− _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
223− !!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
224− endif()
225−@@ -317,25 +261,13 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
226− !!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
227− !!IF isEmpty(CMAKE_RELEASE_TYPE)
228− !!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
229−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
230−- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
231−-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
232− if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
233−-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
234− _populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" \"\" )
235− !!ELSE // CMAKE_STATIC_WINDOWS_BUILD
236− if (EXISTS
237−-!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
238−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
239−-!!ELSE
240− \"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
241−-!!ENDIF
242− AND EXISTS
243−-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
244−- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
245−-!!ELSE
246− \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
247−-!!ENDIF
248− _populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
249− !!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
250− endif()
251−@@ -354,11 +286,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
252− macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION)
253− set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
254−
255−-!!IF isEmpty(CMAKE_PLUGIN_DIR_IS_ABSOLUTE)
256−- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
257−-!!ELSE
258− set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
259−-!!ENDIF
260− _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
261− set_target_properties(Qt5::${Plugin} PROPERTIES
262− \"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
263−diff --git a/mkspecs/features/mac/default_post.prf b/mkspecs/features/mac/default_post.prf
264−index e645ba5803..a0e5c68b7e 100644
265−--- a/mkspecs/features/mac/default_post.prf
266−+++ b/mkspecs/features/mac/default_post.prf
267−@@ -24,166 +24,3 @@ qt {
268− }
269− }
270− }
271−-
272−-# Add the same default rpaths as Xcode does for new projects.
273−-# This is especially important for iOS/tvOS/watchOS where no other option is possible.
274−-!no_default_rpath {
275−- QMAKE_RPATHDIR += @executable_path/Frameworks
276−- equals(TEMPLATE, lib):!plugin:lib_bundle: QMAKE_RPATHDIR += @loader_path/Frameworks
277−-}
278−-
279−-# Don't pass -headerpad_max_install_names when using Bitcode.
280−-# In that case the linker emits a warning stating that the flag is ignored when
281−-# used with bitcode, for reasons that cannot be determined (rdar://problem/20748962).
282−-# Using this flag is also unnecessary in practice on UIKit platforms since they
283−-# are sandboxed, and only UIKit platforms support bitcode to begin with.
284−-!bitcode: QMAKE_LFLAGS += $$QMAKE_LFLAGS_HEADERPAD
285−-
286−-app_extension_api_only {
287−- QMAKE_CFLAGS += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
288−- QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
289−- QMAKE_CXXFLAGS_PRECOMPILE += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
290−- QMAKE_LFLAGS += $$QMAKE_CFLAGS_APPLICATION_EXTENSION
291−-}
292−-
293−-macx-xcode {
294−- !isEmpty(QMAKE_XCODE_DEBUG_INFORMATION_FORMAT) {
295−- debug_information_format.name = DEBUG_INFORMATION_FORMAT
296−- debug_information_format.value = $$QMAKE_XCODE_DEBUG_INFORMATION_FORMAT
297−- debug_information_format.build = debug
298−- QMAKE_MAC_XCODE_SETTINGS += debug_information_format
299−- }
300−-
301−- QMAKE_XCODE_ARCHS =
302−-
303−- arch_device.name = "ARCHS[sdk=$${device.sdk}*]"
304−- arch_device.value = $$QMAKE_APPLE_DEVICE_ARCHS
305−- QMAKE_XCODE_ARCHS += $$QMAKE_APPLE_DEVICE_ARCHS
306−- QMAKE_MAC_XCODE_SETTINGS += arch_device
307−-
308−- simulator {
309−- arch_simulator.name = "ARCHS[sdk=$${simulator.sdk}*]"
310−- arch_simulator.value = $$QMAKE_APPLE_SIMULATOR_ARCHS
311−- QMAKE_XCODE_ARCHS += $$QMAKE_APPLE_SIMULATOR_ARCHS
312−- QMAKE_MAC_XCODE_SETTINGS += arch_simulator
313−- }
314−-
315−- only_active_arch.name = ONLY_ACTIVE_ARCH
316−- only_active_arch.value = YES
317−- only_active_arch.build = debug
318−- QMAKE_MAC_XCODE_SETTINGS += only_active_arch
319−-} else {
320−- device|!simulator: VALID_DEVICE_ARCHS = $$QMAKE_APPLE_DEVICE_ARCHS
321−- simulator: VALID_SIMULATOR_ARCHS = $$QMAKE_APPLE_SIMULATOR_ARCHS
322−- VALID_ARCHS = $$VALID_DEVICE_ARCHS $$VALID_SIMULATOR_ARCHS
323−-
324−- isEmpty(VALID_ARCHS): \
325−- error("QMAKE_APPLE_DEVICE_ARCHS or QMAKE_APPLE_SIMULATOR_ARCHS must contain at least one architecture")
326−-
327−- single_arch: VALID_ARCHS = $$first(VALID_ARCHS)
328−-
329−- ACTIVE_ARCHS = $(filter $(EXPORT_VALID_ARCHS), $(ARCHS))
330−- ARCH_ARGS = $(foreach arch, $(if $(EXPORT_ACTIVE_ARCHS), $(EXPORT_ACTIVE_ARCHS), $(EXPORT_VALID_ARCHS)), -arch $(arch))
331−-
332−- QMAKE_EXTRA_VARIABLES += VALID_ARCHS ACTIVE_ARCHS ARCH_ARGS
333−-
334−- arch_flags = $(EXPORT_ARCH_ARGS)
335−-
336−- QMAKE_CFLAGS += $$arch_flags
337−- QMAKE_CXXFLAGS += $$arch_flags
338−- QMAKE_LFLAGS += $$arch_flags
339−-
340−- QMAKE_PCH_ARCHS = $$VALID_ARCHS
341−-
342−- macos: deployment_target = $$QMAKE_MACOSX_DEPLOYMENT_TARGET
343−- ios: deployment_target = $$QMAKE_IOS_DEPLOYMENT_TARGET
344−- tvos: deployment_target = $$QMAKE_TVOS_DEPLOYMENT_TARGET
345−- watchos: deployment_target = $$QMAKE_WATCHOS_DEPLOYMENT_TARGET
346−-
347−- # If we're doing a simulator and device build, device and simulator
348−- # architectures use different paths and flags for the sysroot and
349−- # deployment target switch, so we must multiplex them across multiple
350−- # architectures using -Xarch. Otherwise we fall back to the simple path.
351−- # This is not strictly necessary, but results in cleaner command lines
352−- # and makes it easier for people to override EXPORT_VALID_ARCHS to limit
353−- # individual rules to a different set of architecture(s) from the overall
354−- # build (such as machtest in QtCore).
355−- simulator:device {
356−- QMAKE_XARCH_CFLAGS =
357−- QMAKE_XARCH_LFLAGS =
358−- QMAKE_EXTRA_VARIABLES += QMAKE_XARCH_CFLAGS QMAKE_XARCH_LFLAGS
359−-
360−- for (arch, VALID_ARCHS) {
361−- contains(VALID_SIMULATOR_ARCHS, $$arch) {
362−- sdk = $$simulator.sdk
363−- version_identifier = $$simulator.deployment_identifier
364−- } else {
365−- sdk = $$device.sdk
366−- version_identifier = $$device.deployment_identifier
367−- }
368−-
369−- version_min_flags = \
370−- -Xarch_$${arch} \
371−- -m$${version_identifier}-version-min=$$deployment_target
372−- QMAKE_XARCH_CFLAGS_$${arch} = $$version_min_flags \
373−- -Xarch_$${arch} \
374−- -isysroot$$xcodeSDKInfo(Path, $$sdk)
375−- QMAKE_XARCH_LFLAGS_$${arch} = $$version_min_flags \
376−- -Xarch_$${arch} \
377−- -Wl,-syslibroot,$$xcodeSDKInfo(Path, $$sdk)
378−-
379−- QMAKE_XARCH_CFLAGS += $(EXPORT_QMAKE_XARCH_CFLAGS_$${arch})
380−- QMAKE_XARCH_LFLAGS += $(EXPORT_QMAKE_XARCH_LFLAGS_$${arch})
381−-
382−- QMAKE_EXTRA_VARIABLES += \
383−- QMAKE_XARCH_CFLAGS_$${arch} \
384−- QMAKE_XARCH_LFLAGS_$${arch}
385−- }
386−-
387−- QMAKE_CFLAGS += $(EXPORT_QMAKE_XARCH_CFLAGS)
388−- QMAKE_CXXFLAGS += $(EXPORT_QMAKE_XARCH_CFLAGS)
389−- QMAKE_LFLAGS += $(EXPORT_QMAKE_XARCH_LFLAGS)
390−- } else {
391−- simulator: \
392−- version_identifier = $$simulator.deployment_identifier
393−- else: \
394−- version_identifier = $$device.deployment_identifier
395−- version_min_flag = -m$${version_identifier}-version-min=$$deployment_target
396−- QMAKE_CFLAGS += -isysroot $$QMAKE_MAC_SDK_PATH $$version_min_flag
397−- QMAKE_CXXFLAGS += -isysroot $$QMAKE_MAC_SDK_PATH $$version_min_flag
398−- QMAKE_LFLAGS += -Wl,-syslibroot,$$QMAKE_MAC_SDK_PATH $$version_min_flag
399−- }
400−-
401−- # Enable precompiled headers for multiple architectures
402−- QMAKE_CFLAGS_USE_PRECOMPILE =
403−- for (arch, VALID_ARCHS) {
404−- icc_pch_style: \
405−- use_flag = "-pch-use "
406−- else: \
407−- use_flag = -include
408−-
409−- # Only use Xarch with multi-arch, as the option confuses ccache
410−- count(VALID_ARCHS, 1, greaterThan): \
411−- QMAKE_CFLAGS_USE_PRECOMPILE += \
412−- -Xarch_$${arch}
413−-
414−- QMAKE_CFLAGS_USE_PRECOMPILE += \
415−- $${use_flag}${QMAKE_PCH_OUTPUT_$${arch}}
416−- }
417−- icc_pch_style {
418−- QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE -include ${QMAKE_PCH_INPUT}
419−- QMAKE_CFLAGS_USE_PRECOMPILE =
420−- } else {
421−- QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
422−- QMAKE_OBJCFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
423−- QMAKE_OBJCXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
424−- }
425−-
426−- QMAKE_PCH_OUTPUT_EXT = _${QMAKE_PCH_ARCH}$${QMAKE_PCH_OUTPUT_EXT}
427−-}
428−-
429−-cache(QMAKE_XCODE_DEVELOPER_PATH, stash)
430−-!isEmpty(QMAKE_XCODE_VERSION): \
431−- cache(QMAKE_XCODE_VERSION, stash)
432−-
433−-QMAKE_XCODE_LIBRARY_SUFFIX = $$qtPlatformTargetSuffix()
434−diff --git a/mkspecs/features/mac/default_pre.prf b/mkspecs/features/mac/default_pre.prf
435−index 44636f2288..3b01424e67 100644
436−--- a/mkspecs/features/mac/default_pre.prf
437−+++ b/mkspecs/features/mac/default_pre.prf
438−@@ -1,56 +1,2 @@
439− CONFIG = asset_catalogs rez $$CONFIG
440− load(default_pre)
441−-
442−-isEmpty(QMAKE_XCODE_DEVELOPER_PATH) {
443−- # Get path of Xcode's Developer directory
444−- QMAKE_XCODE_DEVELOPER_PATH = $$system("/usr/bin/xcode-select --print-path 2>/dev/null")
445−- isEmpty(QMAKE_XCODE_DEVELOPER_PATH): \
446−- error("Xcode path is not set. Please use xcode-select to choose Xcode installation path.")
447−-
448−- # Make sure Xcode path is valid
449−- !exists($$QMAKE_XCODE_DEVELOPER_PATH): \
450−- error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.")
451−-}
452−-
453−-isEmpty(QMAKE_XCODEBUILD_PATH): \
454−- QMAKE_XCODEBUILD_PATH = $$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")
455−-
456−-!isEmpty(QMAKE_XCODEBUILD_PATH) {
457−- # Make sure Xcode is set up properly
458−- !system("/usr/bin/xcrun xcodebuild -license check 2>/dev/null"): \
459−- error("Xcode not set up properly. You need to confirm the license agreement by running 'sudo xcrun xcodebuild -license accept'.")
460−-
461−- isEmpty(QMAKE_XCODE_VERSION) {
462−- # Extract Xcode version using xcodebuild
463−- xcode_version = $$system("/usr/bin/xcrun xcodebuild -version")
464−- QMAKE_XCODE_VERSION = $$member(xcode_version, 1)
465−- isEmpty(QMAKE_XCODE_VERSION): error("Could not resolve Xcode version.")
466−- unset(xcode_version)
467−- }
468−-}
469−-
470−-isEmpty(QMAKE_TARGET_BUNDLE_PREFIX) {
471−- QMAKE_XCODE_PREFERENCES_FILE = $$(HOME)/Library/Preferences/com.apple.dt.Xcode.plist
472−- exists($$QMAKE_XCODE_PREFERENCES_FILE): \
473−- QMAKE_TARGET_BUNDLE_PREFIX = $$system("/usr/libexec/PlistBuddy -c 'print IDETemplateOptions:bundleIdentifierPrefix' $$QMAKE_XCODE_PREFERENCES_FILE 2>/dev/null")
474−-
475−- !isEmpty(_QMAKE_CACHE_):!isEmpty(QMAKE_TARGET_BUNDLE_PREFIX): \
476−- cache(QMAKE_TARGET_BUNDLE_PREFIX)
477−-}
478−-
479−-QMAKE_ASSET_CATALOGS_APP_ICON = AppIcon
480−-
481−-# Make the default debug info format for static debug builds
482−-# DWARF instead of DWARF with dSYM. This cuts down build times
483−-# for application debug builds significantly, as Xcode doesn't
484−-# have to pull out all the DWARF info from the Qt static libs
485−-# and put it into a dSYM file. We don't need that dSYM file in
486−-# the first place, since the information is available in the
487−-# object files inside the archives (static libraries).
488−-macx-xcode:qtConfig(static): \
489−- QMAKE_XCODE_DEBUG_INFORMATION_FORMAT = dwarf
490−-
491−-# This variable is used by the xcode_dynamic_library_suffix
492−-# feature, which allows Xcode to choose the Qt libraries to link to
493−-# at build time, depending on the current Xcode SDK and configuration.
494−-QMAKE_XCODE_LIBRARY_SUFFIX_SETTING = QT_LIBRARY_SUFFIX
495−diff --git a/mkspecs/features/mac/sdk.prf b/mkspecs/features/mac/sdk.prf
496−index 3f6dc076ca..e69de29bb2 100644
497−--- a/mkspecs/features/mac/sdk.prf
498−+++ b/mkspecs/features/mac/sdk.prf
499−@@ -1,58 +0,0 @@
500−-
501−-isEmpty(QMAKE_MAC_SDK): \
502−- error("QMAKE_MAC_SDK must be set when using CONFIG += sdk.")
503−-
504−-contains(QMAKE_MAC_SDK, .*/.*): \
505−- error("QMAKE_MAC_SDK can only contain short-form SDK names (eg. macosx, iphoneos)")
506−-
507−-defineReplace(xcodeSDKInfo) {
508−- info = $$1
509−- equals(info, "Path"): \
510−- info = --show-sdk-path
511−- equals(info, "PlatformPath"): \
512−- info = --show-sdk-platform-path
513−- equals(info, "SDKVersion"): \
514−- info = --show-sdk-version
515−- sdk = $$2
516−- isEmpty(sdk): \
517−- sdk = $$QMAKE_MAC_SDK
518−-
519−- isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}) {
520−- QMAKE_MAC_SDK.$${sdk}.$${info} = $$system("/usr/bin/xcrun --sdk $$sdk $$info 2>/dev/null")
521−- # --show-sdk-platform-path won't work for Command Line Tools; this is fine
522−- # only used by the XCTest backend to testlib
523−- isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}):if(!isEmpty(QMAKE_XCODEBUILD_PATH)|!equals(info, "--show-sdk-platform-path")): \
524−- error("Could not resolve SDK $$info for \'$$sdk\'")
525−- cache(QMAKE_MAC_SDK.$${sdk}.$${info}, set stash, QMAKE_MAC_SDK.$${sdk}.$${info})
526−- }
527−-
528−- return($$eval(QMAKE_MAC_SDK.$${sdk}.$${info}))
529−-}
530−-
531−-QMAKE_MAC_SDK_PATH = $$xcodeSDKInfo(Path)
532−-QMAKE_MAC_SDK_PLATFORM_PATH = $$xcodeSDKInfo(PlatformPath)
533−-QMAKE_MAC_SDK_VERSION = $$xcodeSDKInfo(SDKVersion)
534−-
535−-sysrootified =
536−-for(val, QMAKE_INCDIR_OPENGL): sysrootified += $${QMAKE_MAC_SDK_PATH}$$val
537−-QMAKE_INCDIR_OPENGL = $$sysrootified
538−-
539−-QMAKESPEC_NAME = $$basename(QMAKESPEC)
540−-
541−-# Resolve SDK version of various tools
542−-for(tool, $$list(QMAKE_CC QMAKE_CXX QMAKE_FIX_RPATH QMAKE_AR QMAKE_RANLIB QMAKE_LINK QMAKE_LINK_SHLIB QMAKE_ACTOOL)) {
543−- tool_variable = QMAKE_MAC_SDK.$${QMAKESPEC_NAME}.$${QMAKE_MAC_SDK}.$${tool}
544−- !isEmpty($$tool_variable) {
545−- $$tool = $$eval($$tool_variable)
546−- next()
547−- }
548−-
549−- value = $$eval($$tool)
550−- isEmpty(value): next()
551−-
552−- sysrooted = $$system("/usr/bin/xcrun -sdk $$QMAKE_MAC_SDK -find $$first(value) 2>/dev/null")
553−- isEmpty(sysrooted): next()
554−-
555−- $$tool = $$sysrooted $$member(value, 1, -1)
556−- cache($$tool_variable, set stash, $$tool)
557−-}
558−diff --git a/mkspecs/features/qml_module.prf b/mkspecs/features/qml_module.prf
559−index 4db0040dc5..65d6da1f4d 100644
560−--- a/mkspecs/features/qml_module.prf
561−+++ b/mkspecs/features/qml_module.prf
562−@@ -23,13 +23,8 @@ for(qmlf, AUX_QML_FILES): fq_aux_qml_files += $$absolute_path($$qmlf, $$_PRO_FIL
563−
564− load(qt_build_paths)
565−
566−-qml1_target {
567−- DESTDIR = $$MODULE_BASE_OUTDIR/imports/$$TARGETPATH
568−- instbase = $$[QT_INSTALL_IMPORTS]
569−-} else {
570−- DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
571−- instbase = $$[QT_INSTALL_QML]
572−-}
573−+DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
574−+instbase = $$NIX_OUTPUT_QML
575−
576− !qml1_target:static: CONFIG += builtin_resources
577−
578−diff --git a/mkspecs/features/qml_plugin.prf b/mkspecs/features/qml_plugin.prf
579−index d49f4c49c1..097dcd7d39 100644
580−--- a/mkspecs/features/qml_plugin.prf
581−+++ b/mkspecs/features/qml_plugin.prf
582−@@ -48,13 +48,8 @@ exists($$QMLTYPEFILE): AUX_QML_FILES += $$QMLTYPEFILE
583−
584− load(qt_build_paths)
585−
586−-qml1_target {
587−- DESTDIR = $$MODULE_BASE_OUTDIR/imports/$$TARGETPATH
588−- instbase = $$[QT_INSTALL_IMPORTS]
589−-} else {
590−- DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
591−- instbase = $$[QT_INSTALL_QML]
592−-}
593−+DESTDIR = $$MODULE_BASE_OUTDIR/qml/$$TARGETPATH
594−+instbase = $$NIX_OUTPUT_QML
595−
596− target.path = $$instbase/$$TARGETPATH
597− INSTALLS += target
598−diff --git a/mkspecs/features/qt_app.prf b/mkspecs/features/qt_app.prf
599−index 883f8ca215..81db8eb2d4 100644
600−--- a/mkspecs/features/qt_app.prf
601−+++ b/mkspecs/features/qt_app.prf
602−@@ -33,7 +33,7 @@ host_build:force_bootstrap {
603− target.path = $$[QT_HOST_BINS]
604− } else {
605− !build_pass:qtConfig(debug_and_release): CONFIG += release
606−- target.path = $$[QT_INSTALL_BINS]
607−+ target.path = $$NIX_OUTPUT_BIN/bin
608− CONFIG += relative_qt_rpath # Qt's tools and apps should be relocatable
609− }
610− INSTALLS += target
611−diff --git a/mkspecs/features/qt_build_paths.prf b/mkspecs/features/qt_build_paths.prf
612−index 1848f00e90..2af93675c5 100644
613−--- a/mkspecs/features/qt_build_paths.prf
614−+++ b/mkspecs/features/qt_build_paths.prf
615−@@ -23,6 +23,6 @@ exists($$MODULE_BASE_INDIR/.git): \
616− !force_independent {
617− # If the module is not built independently, everything ends up in qtbase.
618− # This is the case in non-prefix builds, except for selected modules.
619−- MODULE_BASE_OUTDIR = $$[QT_HOST_PREFIX]
620−- MODULE_QMAKE_OUTDIR = $$[QT_HOST_PREFIX]
621−+ MODULE_BASE_OUTDIR = $$NIX_OUTPUT_OUT
622−+ MODULE_QMAKE_OUTDIR = $$NIX_OUTPUT_OUT
623− }
624−diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf
625−index fb96d1b6a0..508ed17d30 100644
626−--- a/mkspecs/features/qt_common.prf
627−+++ b/mkspecs/features/qt_common.prf
628−@@ -32,8 +32,8 @@ contains(TEMPLATE, .*lib) {
629− qqt_libdir = \$\$\$\$[QT_HOST_LIBS]
630− qt_libdir = $$[QT_HOST_LIBS]
631− } else {
632−- qqt_libdir = \$\$\$\$[QT_INSTALL_LIBS]
633−- qt_libdir = $$[QT_INSTALL_LIBS]
634−+ qqt_libdir = \$\$\$\$NIX_OUTPUT_OUT/lib
635−+ qt_libdir = $$NIX_OUTPUT_OUT/lib
636− }
637− contains(QMAKE_DEFAULT_LIBDIRS, $$qt_libdir) {
638− lib_replace.match = "[^ ']*$$rplbase/lib"
639−diff --git a/mkspecs/features/qt_docs.prf b/mkspecs/features/qt_docs.prf
640−index 72dde61a40..f891a2baed 100644
641−--- a/mkspecs/features/qt_docs.prf
642−+++ b/mkspecs/features/qt_docs.prf
643−@@ -45,7 +45,7 @@ QMAKE_DOCS_OUTPUTDIR = $$QMAKE_DOCS_BASE_OUTDIR/$$QMAKE_DOCS_TARGETDIR
644−
645− QDOC += -outputdir $$shell_quote($$QMAKE_DOCS_OUTPUTDIR)
646− !build_online_docs: \
647−- QDOC += -installdir $$shell_quote($$[QT_INSTALL_DOCS])
648−+ QDOC += -installdir $$shell_quote($$NIX_OUTPUT_DOC)
649− PREP_DOC_INDEXES =
650− DOC_INDEXES =
651− !isEmpty(QTREPOS) {
652−@@ -64,8 +64,8 @@ DOC_INDEXES =
653− DOC_INDEXES += -indexdir $$shell_quote($$qrep/doc)
654− } else {
655− prepare_docs: \
656−- PREP_DOC_INDEXES += -indexdir $$shell_quote($$[QT_INSTALL_DOCS/get])
657−- DOC_INDEXES += -indexdir $$shell_quote($$[QT_INSTALL_DOCS/get])
658−+ PREP_DOC_INDEXES += -indexdir $$shell_quote($$NIX_OUTPUT_DOC)
659−+ DOC_INDEXES += -indexdir $$shell_quote($$NIX_OUTPUT_DOC)
660− }
661−
662− qtattributionsscanner.target = qtattributionsscanner
663−@@ -88,12 +88,12 @@ prepare_docs {
664− qch_docs.commands = $$QHELPGENERATOR $$shell_quote($$QMAKE_DOCS_OUTPUTDIR/$${QMAKE_DOCS_TARGET}.qhp) -o $$shell_quote($$QMAKE_DOCS_BASE_OUTDIR/$${QMAKE_DOCS_TARGET}.qch)
665−
666− inst_html_docs.files = $$QMAKE_DOCS_OUTPUTDIR
667−- inst_html_docs.path = $$[QT_INSTALL_DOCS]
668−+ inst_html_docs.path = $$NIX_OUTPUT_DOC
669− inst_html_docs.CONFIG += no_check_exist directory no_default_install no_build
670− INSTALLS += inst_html_docs
671−
672− inst_qch_docs.files = $$QMAKE_DOCS_BASE_OUTDIR/$${QMAKE_DOCS_TARGET}.qch
673−- inst_qch_docs.path = $$[QT_INSTALL_DOCS]
674−+ inst_qch_docs.path = $$NIX_OUTPUT_DOC
675− inst_qch_docs.CONFIG += no_check_exist no_default_install no_build
676− INSTALLS += inst_qch_docs
677−
678−diff --git a/mkspecs/features/qt_example_installs.prf b/mkspecs/features/qt_example_installs.prf
679−index 668669e4cd..eb4840a0aa 100644
680−--- a/mkspecs/features/qt_example_installs.prf
681−+++ b/mkspecs/features/qt_example_installs.prf
682−@@ -82,7 +82,7 @@ sourcefiles += \
683− $$SOURCES $$HEADERS $$FORMS $$RESOURCES $$TRANSLATIONS \
684− $$DBUS_ADAPTORS $$DBUS_INTERFACES
685− addInstallFiles(sources.files, $$sourcefiles)
686−-sources.path = $$[QT_INSTALL_EXAMPLES]/$$probase
687−+sources.path = $$NIX_OUTPUT_DEV/share/examples/$$probase
688− INSTALLS += sources
689−
690− check_examples {
691−diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
692−index 1903e509c8..ae7b585989 100644
693−--- a/mkspecs/features/qt_functions.prf
694−+++ b/mkspecs/features/qt_functions.prf
695−@@ -69,7 +69,7 @@ defineTest(qtHaveModule) {
696− defineTest(qtPrepareTool) {
697− cmd = $$eval(QT_TOOL.$${2}.binary)
698− isEmpty(cmd) {
699−- cmd = $$[QT_HOST_BINS]/$$2
700−+ cmd = $$system("command -v $$2")
701− exists($${cmd}.pl) {
702− $${1}_EXE = $${cmd}.pl
703− cmd = perl -w $$system_path($${cmd}.pl)
704−diff --git a/mkspecs/features/qt_installs.prf b/mkspecs/features/qt_installs.prf
705−index 0d3dfb6b93..5f935b4424 100644
706−--- a/mkspecs/features/qt_installs.prf
707−+++ b/mkspecs/features/qt_installs.prf
708−@@ -12,16 +12,10 @@
709− #library
710− !qt_no_install_library {
711− win32 {
712−- host_build: \
713−- dlltarget.path = $$[QT_HOST_BINS]
714−- else: \
715−- dlltarget.path = $$[QT_INSTALL_BINS]
716−+ dlltarget.path = $$NIX_OUTPUT_BIN/bin
717− INSTALLS += dlltarget
718− }
719−- host_build: \
720−- target.path = $$[QT_HOST_LIBS]
721−- else: \
722−- target.path = $$[QT_INSTALL_LIBS]
723−+ target.path = $$NIX_OUTPUT_OUT/lib
724− !static: target.CONFIG = no_dll
725− INSTALLS += target
726− }
727−@@ -29,33 +23,33 @@
728− #headers
729− qt_install_headers {
730− class_headers.files = $$SYNCQT.HEADER_CLASSES
731−- class_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME
732−+ class_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME
733− INSTALLS += class_headers
734−
735− targ_headers.files = $$SYNCQT.HEADER_FILES
736−- targ_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME
737−+ targ_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME
738− INSTALLS += targ_headers
739−
740− private_headers.files = $$SYNCQT.PRIVATE_HEADER_FILES $$SYNCQT.INJECTED_PRIVATE_HEADER_FILES
741−- private_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/private
742−+ private_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/private
743− INSTALLS += private_headers
744−
745− qpa_headers.files = $$SYNCQT.QPA_HEADER_FILES
746−- qpa_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/qpa
747−+ qpa_headers.path = $$NIX_OUTPUT_DEV/include/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/qpa
748− INSTALLS += qpa_headers
749− }
750−
751− #module
752− qt_install_module {
753− !isEmpty(MODULE_PRI) {
754−- pritarget.path = $$[QT_HOST_DATA]/mkspecs/modules
755−+ pritarget.path = $$NIX_OUTPUT_DEV/mkspecs/modules
756− pritarget.files = $$MODULE_PRI
757− INSTALLS += pritarget
758− } else: isEmpty(MODULE_PRIVATE_PRI) {
759− warning("Project $$basename(_PRO_FILE_) is a module, but has not defined MODULE_PRI, which is required for Qt to expose the module to other projects.")
760− }
761− !isEmpty(MODULE_PRIVATE_PRI) {
762−- privpritarget.path = $$[QT_HOST_DATA]/mkspecs/modules
763−+ privpritarget.path = $$NIX_OUTPUT_DEV/mkspecs/modules
764− privpritarget.files = $$MODULE_PRIVATE_PRI
765− INSTALLS += privpritarget
766− }
767−diff --git a/mkspecs/features/qt_plugin.prf b/mkspecs/features/qt_plugin.prf
768−index 62e1b69fde..abd63123f9 100644
769−--- a/mkspecs/features/qt_plugin.prf
770−+++ b/mkspecs/features/qt_plugin.prf
771−@@ -88,7 +88,7 @@ CONFIG(static, static|shared)|prefix_build {
772− }
773− }
774−
775−-target.path = $$[QT_INSTALL_PLUGINS]/$$PLUGIN_TYPE
776−+target.path = $$NIX_OUTPUT_PLUGIN/$$PLUGIN_TYPE
777− INSTALLS += target
778−
779− TARGET = $$qt5LibraryTarget($$TARGET)
780−diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in
781−index 545b9a3d1e..6ac0cdefe4 100644
782−--- a/src/corelib/Qt5CoreConfigExtras.cmake.in
783−+++ b/src/corelib/Qt5CoreConfigExtras.cmake.in
784−@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::qmake)
785− add_executable(Qt5::qmake IMPORTED)
786−
787− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
788−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
789−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
790− !!ELSE
791− set(imported_location \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
792− !!ENDIF
793−@@ -18,7 +18,7 @@ if (NOT TARGET Qt5::moc)
794− add_executable(Qt5::moc IMPORTED)
795−
796− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
797−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
798−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
799− !!ELSE
800− set(imported_location \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
801− !!ENDIF
802−@@ -35,7 +35,7 @@ if (NOT TARGET Qt5::rcc)
803− add_executable(Qt5::rcc IMPORTED)
804−
805− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
806−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
807−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
808− !!ELSE
809− set(imported_location \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
810− !!ENDIF
811−@@ -133,7 +133,7 @@ if (NOT TARGET Qt5::WinMain)
812− !!IF !isEmpty(CMAKE_RELEASE_TYPE)
813− set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
814− !!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
815−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
816−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
817− !!ELSE
818− set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
819− !!ENDIF
820−@@ -147,7 +147,7 @@ if (NOT TARGET Qt5::WinMain)
821− set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
822−
823− !!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
824−- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
825−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
826− !!ELSE
827− set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
828− !!ENDIF
829−diff --git a/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in b/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
830−index c357237d0e..6f0c75de3c 100644
831−--- a/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
832−+++ b/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
833−@@ -1,6 +1,6 @@
834−
835− !!IF isEmpty(CMAKE_HOST_DATA_DIR_IS_ABSOLUTE)
836−-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
837−+set(_qt5_corelib_extra_includes \"$$NIX_OUTPUT_DEV/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
838− !!ELSE
839− set(_qt5_corelib_extra_includes \"$${CMAKE_HOST_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
840− !!ENDIF
841−diff --git a/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in b/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
842−index 706304cf34..546420f6ad 100644
843−--- a/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
844−+++ b/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
845−@@ -1,6 +1,6 @@
846−
847− !!IF isEmpty(CMAKE_INSTALL_DATA_DIR_IS_ABSOLUTE)
848−-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
849−+set(_qt5_corelib_extra_includes \"$$NIX_OUTPUT_DEV/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
850− !!ELSE
851− set(_qt5_corelib_extra_includes \"$${CMAKE_INSTALL_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
852− !!ENDIF
853−diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
854−index cba279c184..5ae3fd62e5 100644
855−--- a/src/corelib/kernel/qcoreapplication.cpp
856−+++ b/src/corelib/kernel/qcoreapplication.cpp
857−@@ -2533,6 +2533,15 @@ QStringList QCoreApplication::libraryPaths()
858− QStringList *app_libpaths = new QStringList;
859− coreappdata()->app_libpaths.reset(app_libpaths);
860−
861−+ // Add library paths derived from PATH
862−+ const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
863−+ const QString plugindir = QStringLiteral("../" NIXPKGS_QT_PLUGIN_PREFIX);
864−+ for (const QString &path: paths) {
865−+ if (!path.isEmpty()) {
866−+ app_libpaths->append(QDir::cleanPath(path + QDir::separator() + plugindir));
867−+ }
868−+ }
869−+
870− const QByteArray libPathEnv = qgetenv("QT_PLUGIN_PATH");
871− if (!libPathEnv.isEmpty()) {
872− QStringList paths = QFile::decodeName(libPathEnv).split(QDir::listSeparator(), QString::SkipEmptyParts);
873−diff --git a/src/corelib/tools/qtimezoneprivate_tz.cpp b/src/corelib/tools/qtimezoneprivate_tz.cpp
874−index 4fdc2e36ac..d3ec222543 100644
875−--- a/src/corelib/tools/qtimezoneprivate_tz.cpp
876−+++ b/src/corelib/tools/qtimezoneprivate_tz.cpp
877−@@ -70,7 +70,11 @@ typedef QHash<QByteArray, QTzTimeZone> QTzTimeZoneHash;
878− // Parse zone.tab table, assume lists all installed zones, if not will need to read directories
879− static QTzTimeZoneHash loadTzTimeZones()
880− {
881−- QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab");
882−+ // Try TZDIR first, in case we're running on NixOS.
883−+ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab");
884−+ // Fallback to traditional paths in case we are not on NixOS.
885−+ if (!QFile::exists(path))
886−+ path = QStringLiteral("/usr/share/zoneinfo/zone.tab");
887− if (!QFile::exists(path))
888− path = QStringLiteral("/usr/lib/zoneinfo/zone.tab");
889−
890−@@ -645,12 +649,16 @@ void QTzTimeZonePrivate::init(const QByteArray &ianaId)
891− if (!tzif.open(QIODevice::ReadOnly))
892− return;
893− } else {
894−- // Open named tz, try modern path first, if fails try legacy path
895−- tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId));
896−+ // Try TZDIR first, in case we're running on NixOS
897−+ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId));
898− if (!tzif.open(QIODevice::ReadOnly)) {
899−- tzif.setFileName(QLatin1String("/usr/lib/zoneinfo/") + QString::fromLocal8Bit(ianaId));
900−- if (!tzif.open(QIODevice::ReadOnly))
901−- return;
902−+ // Open named tz, try modern path first, if fails try legacy path
903−+ tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId));
904−+ if (!tzif.open(QIODevice::ReadOnly)) {
905−+ tzif.setFileName(QLatin1String("/usr/lib/zoneinfo/") + QString::fromLocal8Bit(ianaId));
906−+ if (!tzif.open(QIODevice::ReadOnly))
907−+ return;
908−+ }
909− }
910− }
911−
912−diff --git a/src/dbus/Qt5DBusConfigExtras.cmake.in b/src/dbus/Qt5DBusConfigExtras.cmake.in
913−index 1d947159e2..b36865fc48 100644
914−--- a/src/dbus/Qt5DBusConfigExtras.cmake.in
915−+++ b/src/dbus/Qt5DBusConfigExtras.cmake.in
916−@@ -2,11 +2,7 @@
917− if (NOT TARGET Qt5::qdbuscpp2xml)
918− add_executable(Qt5::qdbuscpp2xml IMPORTED)
919−
920−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
921−- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
922−-!!ELSE
923−- set(imported_location \"$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
924−-!!ENDIF
925−+ set(imported_location \"$$NIX_OUTPUT_DEV/bin/qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
926− _qt5_DBus_check_file_exists(${imported_location})
927−
928− set_target_properties(Qt5::qdbuscpp2xml PROPERTIES
929−@@ -17,11 +13,7 @@ endif()
930− if (NOT TARGET Qt5::qdbusxml2cpp)
931− add_executable(Qt5::qdbusxml2cpp IMPORTED)
932−
933−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
934−- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
935−-!!ELSE
936−- set(imported_location \"$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
937−-!!ENDIF
938−+ set(imported_location \"$$NIX_OUTPUT_DEV/bin/qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
939− _qt5_DBus_check_file_exists(${imported_location})
940−
941− set_target_properties(Qt5::qdbusxml2cpp PROPERTIES
942−diff --git a/src/gui/Qt5GuiConfigExtras.cmake.in b/src/gui/Qt5GuiConfigExtras.cmake.in
943−index 07869efd7d..fb4183bada 100644
944−--- a/src/gui/Qt5GuiConfigExtras.cmake.in
945−+++ b/src/gui/Qt5GuiConfigExtras.cmake.in
946−@@ -2,7 +2,7 @@
947− !!IF !isEmpty(CMAKE_ANGLE_EGL_DLL_RELEASE)
948−
949− !!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
950−-set(Qt5Gui_EGL_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR/QtANGLE\")
951−+set(Qt5Gui_EGL_INCLUDE_DIRS \"$$NIX_OUTPUT_DEV/$$CMAKE_INCLUDE_DIR/QtANGLE\")
952− !!ELSE
953− set(Qt5Gui_EGL_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR/QtANGLE\")
954− !!ENDIF
955−@@ -17,13 +17,13 @@ macro(_populate_qt5gui_gl_target_properties TargetName Configuration LIB_LOCATIO
956− set_property(TARGET Qt5::${TargetName} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
957−
958− !!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
959−- set(imported_location \"${_qt5Gui_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
960−+ set(imported_location \"$$NIX_OUTPUT_OUT/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
961− !!ELSE
962− set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
963− !!ENDIF
964−
965− !!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
966−- set(imported_implib \"${_qt5Gui_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
967−+ set(imported_implib \"$$NIX_OUTPUT_OUT/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
968− !!ELSE
969− set(imported_implib \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
970− !!ENDIF
971−diff --git a/src/network/kernel/qdnslookup_unix.cpp b/src/network/kernel/qdnslookup_unix.cpp
972−index 1da00813ce..0bf877afcb 100644
973−--- a/src/network/kernel/qdnslookup_unix.cpp
974−+++ b/src/network/kernel/qdnslookup_unix.cpp
975−@@ -92,7 +92,7 @@ static bool resolveLibraryInternal()
976− if (!lib.load())
977− #endif
978− {
979−- lib.setFileName(QLatin1String("resolv"));
980−+ lib.setFileName(QLatin1String(NIXPKGS_LIBRESOLV));
981− if (!lib.load())
982− return false;
983− }
984−diff --git a/src/network/kernel/qhostinfo_unix.cpp b/src/network/kernel/qhostinfo_unix.cpp
985−index 9a24938284..74962b4ae2 100644
986−--- a/src/network/kernel/qhostinfo_unix.cpp
987−+++ b/src/network/kernel/qhostinfo_unix.cpp
988−@@ -102,7 +102,7 @@ static bool resolveLibraryInternal()
989− if (!lib.load())
990− #endif
991− {
992−- lib.setFileName(QLatin1String("resolv"));
993−+ lib.setFileName(QLatin1String(NIXPKGS_LIBRESOLV));
994− if (!lib.load())
995− return false;
996− }
997−diff --git a/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp b/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
998−index b5a0a5bbeb..6c20305f4d 100644
999−--- a/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
1000−+++ b/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
1001−@@ -265,12 +265,9 @@ void TableGenerator::initPossibleLocations()
1002− m_possibleLocations.reserve(7);
1003− if (qEnvironmentVariableIsSet("QTCOMPOSE"))
1004− m_possibleLocations.append(QString::fromLocal8Bit(qgetenv("QTCOMPOSE")));
1005−- m_possibleLocations.append(QStringLiteral("/usr/share/X11/locale"));
1006−- m_possibleLocations.append(QStringLiteral("/usr/local/share/X11/locale"));
1007−- m_possibleLocations.append(QStringLiteral("/usr/lib/X11/locale"));
1008−- m_possibleLocations.append(QStringLiteral("/usr/local/lib/X11/locale"));
1009− m_possibleLocations.append(QStringLiteral(X11_PREFIX "/share/X11/locale"));
1010− m_possibleLocations.append(QStringLiteral(X11_PREFIX "/lib/X11/locale"));
1011−+ m_possibleLocations.append(QLatin1String(NIXPKGS_QTCOMPOSE));
1012− }
1013−
1014− QString TableGenerator::findComposeFile()
1015−diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
1016−index e2e573f0e1..1c8289f81e 100644
1017−--- a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
1018−+++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
1019−@@ -580,7 +580,14 @@ QFunctionPointer QGLXContext::getProcAddress(const char *procName)
1020− #if QT_CONFIG(library)
1021− extern const QString qt_gl_library_name();
1022− // QLibrary lib(qt_gl_library_name());
1023−+ // Check system library paths first
1024− QLibrary lib(QLatin1String("GL"));
1025−+#ifdef NIXPKGS_MESA_GL
1026−+ if (!lib.load()) {
1027−+ // Fallback to Mesa driver
1028−+ lib.setFileName(QLatin1String(NIXPKGS_MESA_GL));
1029−+ }
1030−+#endif // NIXPKGS_MESA_GL
1031− glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
1032− #endif
1033− }
1034−diff --git a/src/plugins/platforms/xcb/qxcbcursor.cpp b/src/plugins/platforms/xcb/qxcbcursor.cpp
1035−index 7c62c2e2b3..fefa40e0f6 100644
1036−--- a/src/plugins/platforms/xcb/qxcbcursor.cpp
1037−+++ b/src/plugins/platforms/xcb/qxcbcursor.cpp
1038−@@ -311,10 +311,10 @@ QXcbCursor::QXcbCursor(QXcbConnection *conn, QXcbScreen *screen)
1039− #if QT_CONFIG(xcb_xlib) && QT_CONFIG(library)
1040− static bool function_ptrs_not_initialized = true;
1041− if (function_ptrs_not_initialized) {
1042−- QLibrary xcursorLib(QLatin1String("Xcursor"), 1);
1043−+ QLibrary xcursorLib(QLatin1String(NIXPKGS_LIBXCURSOR), 1);
1044− bool xcursorFound = xcursorLib.load();
1045− if (!xcursorFound) { // try without the version number
1046−- xcursorLib.setFileName(QLatin1String("Xcursor"));
1047−+ xcursorLib.setFileName(QLatin1String(NIXPKGS_LIBXCURSOR));
1048− xcursorFound = xcursorLib.load();
1049− }
1050− if (xcursorFound) {
1051−diff --git a/src/plugins/platformthemes/gtk3/main.cpp b/src/plugins/platformthemes/gtk3/main.cpp
1052−index c4cd66c33b..b6f2691587 100644
1053−--- a/src/plugins/platformthemes/gtk3/main.cpp
1054−+++ b/src/plugins/platformthemes/gtk3/main.cpp
1055−@@ -39,6 +39,7 @@
1056−
1057− #include <qpa/qplatformthemeplugin.h>
1058− #include "qgtk3theme.h"
1059−+#include <QFile>
1060−
1061− QT_BEGIN_NAMESPACE
1062−
1063−@@ -54,8 +55,22 @@ public:
1064− QPlatformTheme *QGtk3ThemePlugin::create(const QString &key, const QStringList &params)
1065− {
1066− Q_UNUSED(params);
1067−- if (!key.compare(QLatin1String(QGtk3Theme::name), Qt::CaseInsensitive))
1068−+ if (!key.compare(QLatin1String(QGtk3Theme::name), Qt::CaseInsensitive)) {
1069−+
1070−+#ifdef NIXPKGS_QGTK3_XDG_DATA_DIRS
1071−+ QStringList XDG_DATA_DIRS = QFile::decodeName(qgetenv("XDG_DATA_DIRS")).split(':');
1072−+ XDG_DATA_DIRS << QLatin1String(NIXPKGS_QGTK3_XDG_DATA_DIRS);
1073−+ qputenv("XDG_DATA_DIRS", QFile::encodeName(XDG_DATA_DIRS.join(':')));
1074−+#endif
1075−+
1076−+#ifdef NIXPKGS_QGTK3_GIO_EXTRA_MODULES
1077−+ QStringList GIO_EXTRA_MODULES = QFile::decodeName(qgetenv("GIO_EXTRA_MODULES")).split(':');
1078−+ GIO_EXTRA_MODULES << QLatin1String(NIXPKGS_QGTK3_GIO_EXTRA_MODULES);
1079−+ qputenv("GIO_EXTRA_MODULES", QFile::encodeName(GIO_EXTRA_MODULES.join(':')));
1080−+#endif
1081−+
1082− return new QGtk3Theme;
1083−+ }
1084−
1085− return 0;
1086− }
1087−diff --git a/src/testlib/qtestassert.h b/src/testlib/qtestassert.h
1088−index 6498ea84ef..d821ced7fc 100644
1089−--- a/src/testlib/qtestassert.h
1090−+++ b/src/testlib/qtestassert.h
1091−@@ -44,10 +44,13 @@
1092−
1093− QT_BEGIN_NAMESPACE
1094−
1095−-
1096−+#if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
1097−+#define QTEST_ASSERT(cond) do { } while ((false) && (cond))
1098−+#define QTEST_ASSERT_X(cond, where, what) do { } while ((false) && (cond))
1099−+#else
1100− #define QTEST_ASSERT(cond) do { if (!(cond)) qt_assert(#cond,__FILE__,__LINE__); } while (false)
1101−-
1102− #define QTEST_ASSERT_X(cond, where, what) do { if (!(cond)) qt_assert_x(where, what,__FILE__,__LINE__); } while (false)
1103−+#endif
1104−
1105− QT_END_NAMESPACE
1106−
1107−diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in
1108−index 99d87e2e46..a4eab2aa72 100644
1109−--- a/src/widgets/Qt5WidgetsConfigExtras.cmake.in
1110−+++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in
1111−@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::uic)
1112− add_executable(Qt5::uic IMPORTED)
1113−
1114− !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
1115−- set(imported_location \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
1116−+ set(imported_location \"$$NIX_OUTPUT_DEV/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
1117− !!ELSE
1118− set(imported_location \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
1119− !!ENDIF
pkgs/development/libraries/qt-5/5.9/qtdeclarative.patchdeleted−33
@@ -1,33 +0,0 @@
1−diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
2−index ee5b38717..bbccef8c4 100644
3−--- a/src/qml/qml/qqmlimport.cpp
4−+++ b/src/qml/qml/qqmlimport.cpp
5−@@ -1678,6 +1678,15 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
6− QString installImportsPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
7− addImportPath(installImportsPath);
8−
9−+ // Add import paths derived from PATH
10−+ const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
11−+ const QString qmldir = QStringLiteral("../" NIXPKGS_QML2_IMPORT_PREFIX);
12−+ for (const QString &path: paths) {
13−+ if (!path.isEmpty()) {
14−+ addImportPath(QDir::cleanPath(path + QDir::separator() + qmldir));
15−+ }
16−+ }
17−+
18− // env import paths
19− if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QML2_IMPORT_PATH"))) {
20− const QByteArray envImportPath = qgetenv("QML2_IMPORT_PATH");
21−diff --git a/tools/qmlcachegen/qmlcache.prf b/tools/qmlcachegen/qmlcache.prf
22−index 330da358b..cdf570205 100644
23−--- a/tools/qmlcachegen/qmlcache.prf
24−+++ b/tools/qmlcachegen/qmlcache.prf
25−@@ -44,7 +44,7 @@ defineReplace(qmlCacheOutputFileName) {
26− }
27−
28− qmlcacheinst.base = $$QMLCACHE_DESTDIR
29−-qmlcacheinst.path = $$[QT_INSTALL_QML]/$$TARGETPATH
30−+qmlcacheinst.path = $$NIX_OUTPUT_QML/$$TARGETPATH
31− qmlcacheinst.CONFIG = no_check_exist
32−
33− qmlcachegen.input = CACHEGEN_FILES
pkgs/development/libraries/qt-5/5.9/qtscript.patchdeleted−13
@@ -1,13 +0,0 @@
1−diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
2−index 1f6d25e..087c3fb 100644
3−--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
4−+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
5−@@ -81,7 +81,7 @@
6− #include <pthread.h>
7− #elif PLATFORM(GTK)
8− #include <wtf/gtk/GOwnPtr.h>
9−-typedef struct _GMutex GMutex;
10−+typedef union _GMutex GMutex;
11− typedef struct _GCond GCond;
12− #endif
13−
pkgs/development/libraries/qt-5/5.9/qtserialport.patchdeleted−22
@@ -1,22 +0,0 @@
1−diff --git a/src/serialport/qtudev_p.h b/src/serialport/qtudev_p.h
2−index af2dab2..8e17f64 100644
3−--- a/src/serialport/qtudev_p.h
4−+++ b/src/serialport/qtudev_p.h
5−@@ -111,9 +111,17 @@ inline QFunctionPointer resolveSymbol(QLibrary *udevLibrary, const char *symbolN
6− inline bool resolveSymbols(QLibrary *udevLibrary)
7− {
8− if (!udevLibrary->isLoaded()) {
9−+#ifdef NIXPKGS_LIBUDEV
10−+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 1);
11−+#else
12− udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 1);
13−+#endif
14− if (!udevLibrary->load()) {
15−+#ifdef NIXPKGS_LIBUDEV
16−+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 0);
17−+#else
18− udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 0);
19−+#endif
20− if (!udevLibrary->load()) {
21− qWarning("Failed to load the library: %s, supported version(s): %i and %i", qPrintable(udevLibrary->fileName()), 1, 0);
22− return false;
pkgs/development/libraries/qt-5/5.9/qttools.patchdeleted−71
@@ -1,71 +0,0 @@
1−diff --git a/src/assistant/help/Qt5HelpConfigExtras.cmake.in b/src/assistant/help/Qt5HelpConfigExtras.cmake.in
2−index 3b97923a..63336bd5 100644
3−--- a/src/assistant/help/Qt5HelpConfigExtras.cmake.in
4−+++ b/src/assistant/help/Qt5HelpConfigExtras.cmake.in
5−@@ -2,11 +2,10 @@
6− if (NOT TARGET Qt5::qcollectiongenerator)
7− add_executable(Qt5::qcollectiongenerator IMPORTED)
8−
9−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
10−- set(imported_location \"${_qt5Help_install_prefix}/$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
11−-!!ELSE
12− set(imported_location \"$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
13−-!!ENDIF
14−+ if(NOT EXISTS \"${imported_location}\")
15−+ set(imported_location \"$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
16−+ endif()
17− _qt5_Help_check_file_exists(${imported_location})
18−
19− set_target_properties(Qt5::qcollectiongenerator PROPERTIES
20−@@ -17,11 +16,7 @@ endif()
21− if (NOT TARGET Qt5::qhelpgenerator)
22− add_executable(Qt5::qhelpgenerator IMPORTED)
23−
24−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
25−- set(imported_location \"${_qt5Help_install_prefix}/$${CMAKE_BIN_DIR}qhelpgenerator$$CMAKE_BIN_SUFFIX\")
26−-!!ELSE
27− set(imported_location \"$${CMAKE_BIN_DIR}qhelpgenerator$$CMAKE_BIN_SUFFIX\")
28−-!!ENDIF
29− _qt5_Help_check_file_exists(${imported_location})
30−
31− set_target_properties(Qt5::qhelpgenerator PROPERTIES
32−diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in
33−index 4318b16f..d60db4ff 100644
34−--- a/src/linguist/Qt5LinguistToolsConfig.cmake.in
35−+++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in
36−@@ -44,11 +44,7 @@ endmacro()
37− if (NOT TARGET Qt5::lrelease)
38− add_executable(Qt5::lrelease IMPORTED)
39−
40−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
41−- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
42−-!!ELSE
43− set(imported_location \"$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
44−-!!ENDIF
45− _qt5_LinguistTools_check_file_exists(${imported_location})
46−
47− set_target_properties(Qt5::lrelease PROPERTIES
48−@@ -59,11 +55,7 @@ endif()
49− if (NOT TARGET Qt5::lupdate)
50− add_executable(Qt5::lupdate IMPORTED)
51−
52−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
53−- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
54−-!!ELSE
55− set(imported_location \"$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
56−-!!ENDIF
57− _qt5_LinguistTools_check_file_exists(${imported_location})
58−
59− set_target_properties(Qt5::lupdate PROPERTIES
60−@@ -74,11 +66,7 @@ endif()
61− if (NOT TARGET Qt5::lconvert)
62− add_executable(Qt5::lconvert IMPORTED)
63−
64−-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
65−- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
66−-!!ELSE
67− set(imported_location \"$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
68−-!!ENDIF
69− _qt5_LinguistTools_check_file_exists(${imported_location})
70−
71− set_target_properties(Qt5::lconvert PROPERTIES
pkgs/development/libraries/qt-5/5.9/qtwebengine-clang-fix.patchdeleted−38
@@ -1,38 +0,0 @@
1−Fix a following build error:
2−
3−In file included from ../../3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:7:
4−In file included from ../../3rdparty/chromium/base/bind.h:8:
5−../../3rdparty/chromium/base/bind_internal.h:214:31: error: cannot initialize a parameter of type 'NSError *' with an lvalue of type 'const long'
6− return (receiver.*method)(std::forward<RunArgs>(args)...);
7− ^~~~~~~~~~~~~~~~~~~~~~~~~~~
8−../../3rdparty/chromium/base/bind_internal.h:285:20: note: in instantiation of function template specialization 'base::internal::FunctorTraits<void (device::BluetoothRemoteGat
9−tCharacteristicMac::*)(NSError *), void>::Invoke<device::BluetoothRemoteGattCharacteristicMac *, const long &>' requested here
10− return Traits::Invoke(std::forward<Functor>(functor),
11− ^
12−../../3rdparty/chromium/base/bind_internal.h:361:43: note: in instantiation of function template specialization 'base::internal::InvokeHelper<false, void>::MakeItSo<void (devi
13−ce::BluetoothRemoteGattCharacteristicMac::*const &)(NSError *), device::BluetoothRemoteGattCharacteristicMac *, const long &>' requested here
14− return InvokeHelper<is_weak_call, R>::MakeItSo(
15− ^
16−../../3rdparty/chromium/base/bind_internal.h:339:12: note: in instantiation of function template specialization 'base::internal::Invoker<base::internal::BindState<void (device::BluetoothRemoteGattCharacteristicMac::*)(NSError *), base::internal::UnretainedWrapper<device::BluetoothRemoteGattCharacteristicMac>, long>, void ()>::RunImpl<void (device::BluetoothRemoteGattCharacteristicMac::*const &)(NSError *), const std::__1::tuple<base::internal::UnretainedWrapper<device::BluetoothRemoteGattCharacteristicMac>, long> &, 0, 1>' requested here
17− return RunImpl(storage->functor_,
18− ^
19−../../3rdparty/chromium/base/bind.h:62:45: note: in instantiation of member function 'base::internal::Invoker<base::internal::BindState<void (device::BluetoothRemoteGattCharacteristicMac::*)(NSError *), base::internal::UnretainedWrapper<device::BluetoothRemoteGattCharacteristicMac>, long>, void ()>::Run' requested here
20− PolymorphicInvoke invoke_func = &Invoker::Run;
21− ^
22−../../3rdparty/chromium/base/bind.h:77:10: note: in instantiation of function template specialization 'base::BindRepeating<void (device::BluetoothRemoteGattCharacteristicMac::*)(NSError *), base::internal::UnretainedWrapper<device::BluetoothRemoteGattCharacteristicMac>, long>' requested here
23− return BindRepeating(std::forward<Functor>(functor),
24− ^
25−../../3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:241:15: note: in instantiation of function template specialization 'base::Bind<void (device::BluetoothRemoteGattCharacteristicMac::*)(NSError *), base::internal::UnretainedWrapper<device::BluetoothRemoteGattCharacteristicMac>, long>' requested here
26− base::Bind(&BluetoothRemoteGattCharacteristicMac::DidWriteValue,
27−
28−--- a/src/3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
29−+++ b/src/3rdparty/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
30−@@ -239,7 +239,7 @@ void BluetoothRemoteGattCharacteristicMac::WriteRemoteCharacteristic(
31− base::ThreadTaskRunnerHandle::Get()->PostTask(
32− FROM_HERE,
33− base::Bind(&BluetoothRemoteGattCharacteristicMac::DidWriteValue,
34−- base::Unretained(this), nil));
35−+ base::Unretained(this), nullptr));
36− }
37− }
38−
pkgs/development/libraries/qt-5/5.9/qtwebengine-darwin-no-platform-check.patchdeleted−50
@@ -1,50 +0,0 @@
1−diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
2−--- a/mkspecs/features/configure.prf
3−+++ b/mkspecs/features/configure.prf
4−@@ -194,9 +194,6 @@ defineTest(runConfigure) {
5− } else {
6− log("Native Spellchecker .............. Not enabled (Default, enable with WEBENGINE_CONFIG+=use_native_spellchecker)$${EOL}")
7− }
8−- !isMinOSXSDKVersion(10, 10, 3) {
9−- log(" Force Touch API usage .............. Not enabled (Because the OS X SDK version to be used \"$${WEBENGINE_OSX_SDK_PRODUCT_VERSION}\" is lower than the required \"10.10.3\")$${EOL}")
10−- }
11− }
12− }
13−
14−diff --git a/mkspecs/features/functions.prf b/mkspecs/features/functions.prf
15−--- a/mkspecs/features/functions.prf
16−+++ b/mkspecs/features/functions.prf
17−@@ -38,10 +38,6 @@ defineTest(isPlatformSupported) {
18− return(false)
19− }
20− } else:osx {
21−- !isMinXcodeVersion(5, 1) {
22−- skipBuild("Using XCode version $$QMAKE_XCODE_VERSION, but at least version 5.1 is required to build Qt WebEngine.")
23−- return(false)
24−- }
25− !clang|intel_icc {
26− skipBuild("Qt WebEngine on macOS requires Clang.")
27− return(false)
28−@@ -52,10 +48,6 @@ defineTest(isPlatformSupported) {
29− skipBuild("Qt WebEngine requires OS X version 10.10 or newer.")
30− return(false)
31− }
32−- !isMinOSXSDKVersion(10, 10): {
33−- skipBuild("Qt WebEngine requires an OS X SDK version of 10.10 or newer. Current version is $${WEBENGINE_OSX_SDK_PRODUCT_VERSION}.")
34−- return(false)
35−- }
36− } else {
37− skipBuild("Unknown platform. Qt WebEngine only supports Linux, Windows, and OS X.")
38− return(false)
39−diff --git a/src/core/config/mac_osx.pri b/src/core/config/mac_osx.pri
40−--- a/src/core/config/mac_osx.pri
41−+++ b/src/core/config/mac_osx.pri
42−@@ -5,8 +5,6 @@ load(functions)
43− # otherwise query for it.
44− QMAKE_MAC_SDK_VERSION = $$eval(QMAKE_MAC_SDK.$${QMAKE_MAC_SDK}.SDKVersion)
45− isEmpty(QMAKE_MAC_SDK_VERSION) {
46−- QMAKE_MAC_SDK_VERSION = $$system("/usr/bin/xcodebuild -sdk $${QMAKE_MAC_SDK} -version SDKVersion 2>/dev/null")
47−- isEmpty(QMAKE_MAC_SDK_VERSION): error("Could not resolve SDK version for \'$${QMAKE_MAC_SDK}\'")
48− }
49−
50− QMAKE_CLANG_DIR = "/usr"
pkgs/development/libraries/qt-5/5.9/qtwebengine-no-build-skip.patchdeleted−12
@@ -1,12 +0,0 @@
1−diff --git a/qtwebengine.pro b/qtwebengine.pro
2−--- a/qtwebengine.pro
3−+++ b/qtwebengine.pro
4−@@ -5,7 +5,7 @@ runConfigure()
5−
6− !isEmpty(skipBuildReason) {
7− SUBDIRS =
8−- log($${skipBuildReason}$${EOL})
9−+ error($${skipBuildReason}$${EOL})
10− log(QtWebEngine will not be built.$${EOL})
11− }
12−
pkgs/development/libraries/qt-5/5.9/qtwebkit.patchdeleted−64
@@ -1,64 +0,0 @@
1−diff --git a/Source/WebCore/plugins/qt/PluginPackageQt.cpp b/Source/WebCore/plugins/qt/PluginPackageQt.cpp
2−index a923d49aa..46772a4bb 100644
3−--- a/Source/WebCore/plugins/qt/PluginPackageQt.cpp
4−+++ b/Source/WebCore/plugins/qt/PluginPackageQt.cpp
5−@@ -136,7 +136,11 @@ static void initializeGtk(QLibrary* module = 0)
6− }
7− }
8−
9−+#ifdef NIXPKGS_LIBGTK2
10−+ QLibrary library(QLatin1String(NIXPKGS_LIBGTK2), 0);
11−+#else
12− QLibrary library(QLatin1String("libgtk-x11-2.0"), 0);
13−+#endif
14− if (library.load()) {
15− typedef void *(*gtk_init_check_ptr)(int*, char***);
16− gtk_init_check_ptr gtkInitCheck = (gtk_init_check_ptr)library.resolve("gtk_init_check");
17−diff --git a/Source/WebCore/plugins/qt/PluginViewQt.cpp b/Source/WebCore/plugins/qt/PluginViewQt.cpp
18−index de06a2fea..86fe39ef1 100644
19−--- a/Source/WebCore/plugins/qt/PluginViewQt.cpp
20−+++ b/Source/WebCore/plugins/qt/PluginViewQt.cpp
21−@@ -697,7 +697,11 @@ static Display *getPluginDisplay()
22− // support gdk based plugins (like flash) that use a different X connection.
23− // The code below has the same effect as this one:
24− // Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
25−+#ifdef NIXPKGS_LIBGDK2
26−+ QLibrary library(QLatin1String(NIXPKGS_LIBGDK2), 0);
27−+#else
28− QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
29−+#endif
30− if (!library.load())
31− return 0;
32−
33−diff --git a/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp b/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
34−index 8de65216b..38f5c05e5 100644
35−--- a/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
36−+++ b/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
37−@@ -53,7 +53,11 @@ static void messageHandler(QtMsgType type, const QMessageLogContext&, const QStr
38−
39− static bool initializeGtk()
40− {
41−+#ifdef NIXPKGS_LIBGTK2
42−+ QLibrary gtkLibrary(QLatin1String(NIXPKGS_LIBGTK2), 0);
43−+#else
44− QLibrary gtkLibrary(QLatin1String("libgtk-x11-2.0"), 0);
45−+#endif
46− if (!gtkLibrary.load())
47− return false;
48− typedef void* (*gtk_init_ptr)(void*, void*);
49−diff --git a/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp b/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
50−index d734ff684..0f6ff63d1 100644
51−--- a/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
52−+++ b/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
53−@@ -64,7 +64,11 @@ static Display* getPluginDisplay()
54− // The code below has the same effect as this one:
55− // Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
56−
57−+#ifdef NIXPKGS_LIBGDK2
58−+ QLibrary library(QLatin1String(NIXPKGS_LIBGDK2), 0);
59−+#else
60− QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
61−+#endif
62− if (!library.load())
63− return 0;
64−
pkgs/development/libraries/qt-5/5.9/srcs.nixdeleted−333
@@ -1,333 +0,0 @@
1−# DO NOT EDIT! This file is generated automatically by fetch-kde-qt.sh
2−{ fetchurl, mirror }:
3−
4−{
5− qt3d = {
6− version = "5.9.7";
7− src = fetchurl {
8− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qt3d-opensource-src-5.9.7.tar.xz";
9− sha256 = "0skdp72jlfy97cw9lpa3l2ivs6f5x9w53978sf2xbkl9k1ai268l";
10− name = "qt3d-opensource-src-5.9.7.tar.xz";
11− };
12− };
13− qtactiveqt = {
14− version = "5.9.7";
15− src = fetchurl {
16− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtactiveqt-opensource-src-5.9.7.tar.xz";
17− sha256 = "01yp0railyc80ldvpiy36lpsdk26rs8vfp78xca9jy1glm4cmaik";
18− name = "qtactiveqt-opensource-src-5.9.7.tar.xz";
19− };
20− };
21− qtandroidextras = {
22− version = "5.9.7";
23− src = fetchurl {
24− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtandroidextras-opensource-src-5.9.7.tar.xz";
25− sha256 = "1bl05hr0zm23z7qig3kxhzyvm440wfrjfgsxvpmlvk9pbb8h2q63";
26− name = "qtandroidextras-opensource-src-5.9.7.tar.xz";
27− };
28− };
29− qtbase = {
30− version = "5.9.7";
31− src = fetchurl {
32− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtbase-opensource-src-5.9.7.tar.xz";
33− sha256 = "004gs95ig51jv2wz64kwzl4rvqqzs4rln3kqmzjs3sh6y1s9bp9n";
34− name = "qtbase-opensource-src-5.9.7.tar.xz";
35− };
36− };
37− qtcanvas3d = {
38− version = "5.9.7";
39− src = fetchurl {
40− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtcanvas3d-opensource-src-5.9.7.tar.xz";
41− sha256 = "131zwqddjns7cpkdbr33jahqgvnw6f8gdcr1b2hmadi0p2shrcwq";
42− name = "qtcanvas3d-opensource-src-5.9.7.tar.xz";
43− };
44− };
45− qtcharts = {
46− version = "5.9.7";
47− src = fetchurl {
48− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtcharts-opensource-src-5.9.7.tar.xz";
49− sha256 = "1rkj4lkpgdqk4ygxivkj7gc8mlccb5sgi9mfr0xwvq5j85r3dk8n";
50− name = "qtcharts-opensource-src-5.9.7.tar.xz";
51− };
52− };
53− qtconnectivity = {
54− version = "5.9.7";
55− src = fetchurl {
56− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtconnectivity-opensource-src-5.9.7.tar.xz";
57− sha256 = "0f7g2lfnfgsjka7y5hdf0lbzpfxlxh8bfhdxix44cwlmwzjizy3l";
58− name = "qtconnectivity-opensource-src-5.9.7.tar.xz";
59− };
60− };
61− qtdatavis3d = {
62− version = "5.9.7";
63− src = fetchurl {
64− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtdatavis3d-opensource-src-5.9.7.tar.xz";
65− sha256 = "08anm8byxcym7h1n49j3cbxkh3kh3xjlxd3b8vi8fxyqqhvll4lv";
66− name = "qtdatavis3d-opensource-src-5.9.7.tar.xz";
67− };
68− };
69− qtdeclarative = {
70− version = "5.9.7";
71− src = fetchurl {
72− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtdeclarative-opensource-src-5.9.7.tar.xz";
73− sha256 = "0p26c96fb33khbf7ws91ha73n72lwmn714v8spg0bla9m1jkfhk8";
74− name = "qtdeclarative-opensource-src-5.9.7.tar.xz";
75− };
76− };
77− qtdoc = {
78− version = "5.9.7";
79− src = fetchurl {
80− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtdoc-opensource-src-5.9.7.tar.xz";
81− sha256 = "1vs6dy0mdcn65fhpl8nib0pjw9bliqkjnaahqm833ayvxr15vzyj";
82− name = "qtdoc-opensource-src-5.9.7.tar.xz";
83− };
84− };
85− qtgamepad = {
86− version = "5.9.7";
87− src = fetchurl {
88− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtgamepad-opensource-src-5.9.7.tar.xz";
89− sha256 = "0242683h9jz6b0n11s4m4ii2691dbws0gkj45n6sx6z513blfx9f";
90− name = "qtgamepad-opensource-src-5.9.7.tar.xz";
91− };
92− };
93− qtgraphicaleffects = {
94− version = "5.9.7";
95− src = fetchurl {
96− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtgraphicaleffects-opensource-src-5.9.7.tar.xz";
97− sha256 = "1yhxa3i3jvfnc9l6a3q3pyk7y702a3pp87ypshb63607xvrxrv2d";
98− name = "qtgraphicaleffects-opensource-src-5.9.7.tar.xz";
99− };
100− };
101− qtimageformats = {
102− version = "5.9.7";
103− src = fetchurl {
104− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtimageformats-opensource-src-5.9.7.tar.xz";
105− sha256 = "1an0k3rzxjc4x4rscnibdk36zff6g1n41lh5dasys4jc05k3w1b2";
106− name = "qtimageformats-opensource-src-5.9.7.tar.xz";
107− };
108− };
109− qtlocation = {
110− version = "5.9.7";
111− src = fetchurl {
112− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtlocation-opensource-src-5.9.7.tar.xz";
113− sha256 = "0lp6zn630px1lj7623shq47dlv02nr0aj7iqscrk0yzhygbv7dc2";
114− name = "qtlocation-opensource-src-5.9.7.tar.xz";
115− };
116− };
117− qtmacextras = {
118− version = "5.9.7";
119− src = fetchurl {
120− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtmacextras-opensource-src-5.9.7.tar.xz";
121− sha256 = "0b0znccbach41la226cmps9aaigpz8mj940xj890arjf8hn4jd97";
122− name = "qtmacextras-opensource-src-5.9.7.tar.xz";
123− };
124− };
125− qtmultimedia = {
126− version = "5.9.7";
127− src = fetchurl {
128− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtmultimedia-opensource-src-5.9.7.tar.xz";
129− sha256 = "060gic3gl27r7k4vw4n550384b4wadqfn3biajbq6lbyj3zhgxxx";
130− name = "qtmultimedia-opensource-src-5.9.7.tar.xz";
131− };
132− };
133− qtnetworkauth = {
134− version = "5.9.7";
135− src = fetchurl {
136− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtnetworkauth-opensource-src-5.9.7.tar.xz";
137− sha256 = "14n8wzsyq7bw67r1k442widfvszawgi5sh0b10h2jcrp5aikqr0p";
138− name = "qtnetworkauth-opensource-src-5.9.7.tar.xz";
139− };
140− };
141− qtpurchasing = {
142− version = "5.9.7";
143− src = fetchurl {
144− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtpurchasing-opensource-src-5.9.7.tar.xz";
145− sha256 = "1qvxsi0ar04qy0zajbhvwj5blldhfq2mn3laq15g0xxy1xh4m46i";
146− name = "qtpurchasing-opensource-src-5.9.7.tar.xz";
147− };
148− };
149− qtquickcontrols = {
150− version = "5.9.7";
151− src = fetchurl {
152− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtquickcontrols-opensource-src-5.9.7.tar.xz";
153− sha256 = "1jkz2b2wzxzmskvwwb4afqxz0yp0siaf3yhj2i01y865sp6q1wz0";
154− name = "qtquickcontrols-opensource-src-5.9.7.tar.xz";
155− };
156− };
157− qtquickcontrols2 = {
158− version = "5.9.7";
159− src = fetchurl {
160− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtquickcontrols2-opensource-src-5.9.7.tar.xz";
161− sha256 = "0w9rq77a8vc9avhbwbx7swg7zw7jn21wd7si59822rw9ln1p6zb0";
162− name = "qtquickcontrols2-opensource-src-5.9.7.tar.xz";
163− };
164− };
165− qtremoteobjects = {
166− version = "5.9.7";
167− src = fetchurl {
168− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtremoteobjects-opensource-src-5.9.7.tar.xz";
169− sha256 = "1ninscf4jkframv585zzi76fml1lyz0mhb091r2r54lrf66wl3lw";
170− name = "qtremoteobjects-opensource-src-5.9.7.tar.xz";
171− };
172− };
173− qtscript = {
174− version = "5.9.7";
175− src = fetchurl {
176− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtscript-opensource-src-5.9.7.tar.xz";
177− sha256 = "0mv33a1mjaahq7ixfasvjasc881bprfbkjhx8pn3z5f0l8213m67";
178− name = "qtscript-opensource-src-5.9.7.tar.xz";
179− };
180− };
181− qtscxml = {
182− version = "5.9.7";
183− src = fetchurl {
184− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtscxml-opensource-src-5.9.7.tar.xz";
185− sha256 = "0xz2q2bl1n43gxx00nrzyc0bsnq4wch0k2rkj3prc9gsgmpq0bih";
186− name = "qtscxml-opensource-src-5.9.7.tar.xz";
187− };
188− };
189− qtsensors = {
190− version = "5.9.7";
191− src = fetchurl {
192− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtsensors-opensource-src-5.9.7.tar.xz";
193− sha256 = "0pfh4lr9zxsh9winzx1lmcgl2hgp9lr45smcvslr4an93z6mbf8r";
194− name = "qtsensors-opensource-src-5.9.7.tar.xz";
195− };
196− };
197− qtserialbus = {
198− version = "5.9.7";
199− src = fetchurl {
200− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtserialbus-opensource-src-5.9.7.tar.xz";
201− sha256 = "0n6z56axm0gbrxmnwbz8fv40ar9mw1rlfvmpqvpg5xb9031qil1b";
202− name = "qtserialbus-opensource-src-5.9.7.tar.xz";
203− };
204− };
205− qtserialport = {
206− version = "5.9.7";
207− src = fetchurl {
208− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtserialport-opensource-src-5.9.7.tar.xz";
209− sha256 = "05qy4m1p5j5bh6af7d97iblsmgy9kppm5wif3bl63p6yghn319sh";
210− name = "qtserialport-opensource-src-5.9.7.tar.xz";
211− };
212− };
213− qtspeech = {
214− version = "5.9.7";
215− src = fetchurl {
216− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtspeech-opensource-src-5.9.7.tar.xz";
217− sha256 = "0nnbqnh18vw26vphancs38vjr816xha8m6wl389kjqi01kjrcz70";
218− name = "qtspeech-opensource-src-5.9.7.tar.xz";
219− };
220− };
221− qtsvg = {
222− version = "5.9.7";
223− src = fetchurl {
224− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtsvg-opensource-src-5.9.7.tar.xz";
225− sha256 = "0r2mqy6lb2ypmilf83zyp73v5d9ars314jfm6f0fv5if8yw253v2";
226− name = "qtsvg-opensource-src-5.9.7.tar.xz";
227− };
228− };
229− qttools = {
230− version = "5.9.7";
231− src = fetchurl {
232− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qttools-opensource-src-5.9.7.tar.xz";
233− sha256 = "18b7jg25434p80yr929nfihk0i124bxpd2dv9mqdcicnv5q0ybnn";
234− name = "qttools-opensource-src-5.9.7.tar.xz";
235− };
236− };
237− qttranslations = {
238− version = "5.9.7";
239− src = fetchurl {
240− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qttranslations-opensource-src-5.9.7.tar.xz";
241− sha256 = "051a3igp1qnd7d7bg2dvjaqwh6f67fvkn19jdfjzrdis7kcsfvdk";
242− name = "qttranslations-opensource-src-5.9.7.tar.xz";
243− };
244− };
245− qtvirtualkeyboard = {
246− version = "5.9.7";
247− src = fetchurl {
248− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtvirtualkeyboard-opensource-src-5.9.7.tar.xz";
249− sha256 = "1qcj6ncg53rv4pg4ijdq7vbkzgzfr9bn40aif7g4dndykj0zwla7";
250− name = "qtvirtualkeyboard-opensource-src-5.9.7.tar.xz";
251− };
252− };
253− qtwayland = {
254− version = "5.9.7";
255− src = fetchurl {
256− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtwayland-opensource-src-5.9.7.tar.xz";
257− sha256 = "0y6ky1ipg42gq390ibgr4nns9i4j648yb7bkmx6b7lhsi7mvnp2n";
258− name = "qtwayland-opensource-src-5.9.7.tar.xz";
259− };
260− };
261− qtwebchannel = {
262− version = "5.9.7";
263− src = fetchurl {
264− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtwebchannel-opensource-src-5.9.7.tar.xz";
265− sha256 = "189qkfxixddfblwkaf46yrqjp91vhmw90gpafjryqfmd2141r8qj";
266− name = "qtwebchannel-opensource-src-5.9.7.tar.xz";
267− };
268− };
269− qtwebengine = {
270− version = "5.9.7";
271− src = fetchurl {
272− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtwebengine-opensource-src-5.9.7.tar.xz";
273− sha256 = "0kzpgks5h19rm7gbhr688lr5f5d9ykf062kj91q7wf6fk7qd72v2";
274− name = "qtwebengine-opensource-src-5.9.7.tar.xz";
275− };
276− };
277− qtwebkit = {
278− version = "5.9.1";
279− src = fetchurl {
280− url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebkit-opensource-src-5.9.1.tar.xz";
281− sha256 = "1ksjn1vjbfhdm4y4rg08ag4krk87ahp7qcdcpwll42l0rnz61998";
282− name = "qtwebkit-opensource-src-5.9.1.tar.xz";
283− };
284− };
285− qtwebkit-examples = {
286− version = "5.9.1";
287− src = fetchurl {
288− url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebkit-examples-opensource-src-5.9.1.tar.xz";
289− sha256 = "1l2l7ycgqql6rf4gx6sjhsqjapdhvy6vxaxssax3l938nkk4vkp4";
290− name = "qtwebkit-examples-opensource-src-5.9.1.tar.xz";
291− };
292− };
293− qtwebsockets = {
294− version = "5.9.7";
295− src = fetchurl {
296− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtwebsockets-opensource-src-5.9.7.tar.xz";
297− sha256 = "1qqvd6qf7m2xq71mdaidwabj5c03cbbi1hwc7p95fvbnz9crz79x";
298− name = "qtwebsockets-opensource-src-5.9.7.tar.xz";
299− };
300− };
301− qtwebview = {
302− version = "5.9.7";
303− src = fetchurl {
304− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtwebview-opensource-src-5.9.7.tar.xz";
305− sha256 = "1zwqkmzik4f83hdffmw0hz90mzga34hkyz7d0skfbdp25y278r12";
306− name = "qtwebview-opensource-src-5.9.7.tar.xz";
307− };
308− };
309− qtwinextras = {
310− version = "5.9.7";
311− src = fetchurl {
312− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtwinextras-opensource-src-5.9.7.tar.xz";
313− sha256 = "1a57v7krglfdi4gizm402jn9pg7fqpcma7xk6sm68zg1siv11a6x";
314− name = "qtwinextras-opensource-src-5.9.7.tar.xz";
315− };
316− };
317− qtx11extras = {
318− version = "5.9.7";
319− src = fetchurl {
320− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtx11extras-opensource-src-5.9.7.tar.xz";
321− sha256 = "02jdiw94dasnkszi5w1pysfgz8xrr71pzah37nbnqg0knn4dzich";
322− name = "qtx11extras-opensource-src-5.9.7.tar.xz";
323− };
324− };
325− qtxmlpatterns = {
326− version = "5.9.7";
327− src = fetchurl {
328− url = "${mirror}/official_releases/qt/5.9/5.9.7/submodules/qtxmlpatterns-opensource-src-5.9.7.tar.xz";
329− sha256 = "0j0rxkpyww5cgcjhy0332jsyka1d811wf6zmr16d5fdkbryp7d65";
330− name = "qtxmlpatterns-opensource-src-5.9.7.tar.xz";
331− };
332− };
333−}
pkgs/development/libraries/quesoglc/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libGLU_combined, glew, freetype, fontconfig, fribidi, libX11 }:
1+{ stdenv, fetchurl, libGLU, libGL, glew, freetype, fontconfig, fribidi, libX11 }:
22stdenv.mkDerivation rec {
33 pname = "quesoglc";
44 version = "0.7.2";
@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
66 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
77 sha256 = "0cf9ljdzii5d4i2m23gdmf3kn521ljcldzq69lsdywjid3pg5zjl";
88 };
9− buildInputs = [ libGLU_combined glew freetype fontconfig fribidi libX11 ];
9+ buildInputs = [ libGLU libGL glew freetype fontconfig fribidi libX11 ];
1010 # FIXME: Configure fails to use system glew.
1111 meta = with stdenv.lib; {
1212 description = "A free implementation of the OpenGL Character Renderer";
pkgs/development/libraries/simgear/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, plib, freeglut, xorgproto, libX11, libXext, libXi
2−, libICE, libSM, libXt, libXmu, libGLU_combined, boost, zlib, libjpeg, freealut
2+, libICE, libSM, libXt, libXmu, libGLU, libGL, boost, zlib, libjpeg, freealut
33, openscenegraph, openal, expat, cmake, apr
44, curl
55}:
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818
1919 nativeBuildInputs = [ cmake ];
2020 buildInputs = [ plib freeglut xorgproto libX11 libXext libXi
21− libICE libSM libXt libXmu libGLU_combined boost zlib libjpeg freealut
21+ libICE libSM libXt libXmu libGLU libGL boost zlib libjpeg freealut
2222 openscenegraph openal expat apr curl ];
2323
2424 enableParallelBuilding = true;
pkgs/development/libraries/smpeg/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk2, m4, pkgconfig, libGLU_combined, makeWrapper }:
1+{ stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk2, m4, pkgconfig, libGLU, libGL, makeWrapper }:
22
33stdenv.mkDerivation rec {
44 name = "smpeg-svn${version}";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818
1919 enableParallelBuilding = true;
2020
21− buildInputs = [ SDL gtk2 libGLU_combined ];
21+ buildInputs = [ SDL gtk2 libGLU libGL ];
2222
2323 nativeBuildInputs = [ autoconf automake libtool m4 pkgconfig makeWrapper ];
2424
pkgs/development/libraries/soxt/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchhg, stdenv, cmake, coin3d, motif, xlibsWrapper, libXmu, libGLU_combined }:
1+{ fetchhg, stdenv, cmake, coin3d, motif, xlibsWrapper, libXmu, libGLU, libGL }:
22
33stdenv.mkDerivation {
44 pname = "soxt";
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
1212 };
1313
1414 nativeBuildInputs = [ cmake ];
15− buildInputs = [ coin3d motif xlibsWrapper libGLU_combined libXmu ];
15+ buildInputs = [ coin3d motif xlibsWrapper libGLU libGL libXmu ];
1616
1717 meta = with stdenv.lib; {
1818 homepage = https://bitbucket.org/Coin3D/coin/wiki/Home;
pkgs/development/libraries/vaapi-vdpau/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchpatch, libvdpau, libGLU_combined, libva, pkgconfig }:
1+{ stdenv, fetchurl, fetchpatch, libvdpau, libGLU, libGL, libva, pkgconfig }:
22
33stdenv.mkDerivation rec {
44 pname = "libva-vdpau-driver";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
2525 ];
2626
2727 nativeBuildInputs = [ pkgconfig ];
28− buildInputs = [ libvdpau libGLU_combined libva ];
28+ buildInputs = [ libvdpau libGLU libGL libva ];
2929
3030 postPatch = ''
3131 sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
pkgs/development/libraries/vrpn/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, unzip, cmake, libGLU_combined }:
1+{ stdenv, fetchFromGitHub, unzip, cmake, libGLU, libGL }:
22
33stdenv.mkDerivation rec {
44 name = "${pname}-${date}";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 sha256 = "032q295d68w34rk5q8nfqdd29s55n00bfik84y7xzkjrpspaprlh";
1313 };
1414
15− buildInputs = [ unzip cmake libGLU_combined ];
15+ buildInputs = [ unzip cmake libGLU libGL ];
1616
1717 doCheck = false; # FIXME: test failure
1818 checkTarget = "test";
pkgs/development/libraries/xine-lib/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchpatch, pkgconfig, xorg, alsaLib, libGLU_combined, aalib
1+{ stdenv, fetchurl, fetchpatch, pkgconfig, xorg, alsaLib, libGLU, libGL, aalib
22, libvorbis, libtheora, speex, zlib, perl, ffmpeg
33, flac, libcaca, libpulseaudio, libmng, libcdio, libv4l, vcdimager
44, libmpcdec
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
1616
1717 buildInputs = [
1818 xorg.libX11 xorg.libXv xorg.libXinerama xorg.libxcb xorg.libXext
19− alsaLib libGLU_combined aalib libvorbis libtheora speex perl ffmpeg flac
19+ alsaLib libGLU libGL aalib libvorbis libtheora speex perl ffmpeg flac
2020 libcaca libpulseaudio libmng libcdio libv4l vcdimager libmpcdec
2121 ];
2222
pkgs/development/misc/amdapp-sdk/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, makeWrapper, perl, libGLU_combined, xorg,
1+{ stdenv, fetchurl, makeWrapper, perl, libGLU, libGL, xorg,
22 version? "2.8", # What version
33 samples? false # Should samples be installed
44}:
@@ -47,7 +47,7 @@ in stdenv.mkDerivation {
4747 patches = stdenv.lib.attrByPath [version "patches"] [] src_info;
4848
4949 patchFlags = "-p0";
50− buildInputs = [ makeWrapper perl libGLU_combined xorg.libX11 xorg.libXext xorg.libXaw xorg.libXi xorg.libXxf86vm ];
50+ buildInputs = [ makeWrapper perl libGLU libGL xorg.libX11 xorg.libXext xorg.libXaw xorg.libXi xorg.libXxf86vm ];
5151 propagatedBuildInputs = [ stdenv.cc ];
5252 NIX_LDFLAGS = "-lX11 -lXext -lXmu -lXi -lXxf86vm";
5353 doCheck = false;
pkgs/development/ocaml-modules/lablgl/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, ocaml, lablgtk, findlib, libGLU_combined, freeglut, camlp4 } :
1+{stdenv, fetchurl, ocaml, lablgtk, findlib, libGLU, libGL, freeglut, camlp4 } :
22
33let
44 pname = "lablgl";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 };
1515
1616 buildInputs = [ocaml findlib lablgtk freeglut camlp4];
17− propagatedBuildInputs = [ libGLU_combined ];
17+ propagatedBuildInputs = [ libGLU libGL ];
1818
1919 patches = [ ./Makefile.config.patch ./META.patch ];
2020
pkgs/development/pharo/vm/build-vm-legacy.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, libGLU_combined, freetype, xorg, alsaLib, cairo, libuuid, makeWrapper, ... }:
1+{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, libGLU, libGL, freetype, xorg, alsaLib, cairo, libuuid, makeWrapper, ... }:
22
33{ name, src, ... }:
44
@@ -46,9 +46,9 @@ stdenv.mkDerivation rec {
4646 ln -s "${pharo-share}/lib/"*.sources $prefix/lib/$name
4747 '';
4848
49− LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ cairo libGLU_combined freetype openssl libuuid alsaLib xorg.libICE xorg.libSM ];
49+ LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ cairo libGLU libGL freetype openssl libuuid alsaLib xorg.libICE xorg.libSM ];
5050 nativeBuildInputs = [ unzip cmake gcc makeWrapper ];
51− buildInputs = [ bash glibc openssl libGLU_combined freetype xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];
51+ buildInputs = [ bash glibc openssl libGLU libGL freetype xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];
5252
5353 meta = {
5454 description = "Clean and innovative Smalltalk-inspired environment";
pkgs/development/pharo/vm/build-vm.nix+3−3
@@ -5,7 +5,7 @@
55, glibc
66, openssl
77, libgit2
8−, libGLU_combined
8+, libGLU, libGL
99, freetype
1010, xorg
1111, alsaLib
@@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
8585 libs = [
8686 cairo
8787 libgit2
88− libGLU_combined
88+ libGLU libGL
8989 freetype
9090 openssl
9191 libuuid
@@ -139,7 +139,7 @@ stdenv.mkDerivation rec {
139139 glibc
140140 openssl
141141 gcc48
142− libGLU_combined
142+ libGLU libGL
143143 freetype
144144 xorg.libX11
145145 xorg.libICE
pkgs/development/pharo/vm/vms.nix+1−1
@@ -7,7 +7,7 @@
77, openssl
88, gcc
99, libgit2
10−, libGLU_combined
10+, libGLU, libGL
1111, freetype
1212, xorg
1313, alsaLib
pkgs/development/pure-modules/gl/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, pure, freeglut, libGLU_combined, xlibsWrapper }:
1+{ stdenv, fetchurl, pkgconfig, pure, freeglut, libGLU, libGL, xlibsWrapper }:
22
33stdenv.mkDerivation rec {
44 baseName = "gl";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 };
1212
1313 nativeBuildInputs = [ pkgconfig ];
14− propagatedBuildInputs = [ pure freeglut libGLU_combined xlibsWrapper ];
14+ propagatedBuildInputs = [ pure freeglut libGLU libGL xlibsWrapper ];
1515 makeFlags = "libdir=$(out)/lib prefix=$(out)/";
1616 setupHook = ../generic-setup-hook.sh;
1717
pkgs/development/python-modules/APScheduler/default.nix+2−2
@@ -20,11 +20,11 @@
2020
2121buildPythonPackage rec {
2222 pname = "APScheduler";
23− version = "3.6.1";
23+ version = "3.6.3";
2424
2525 src = fetchPypi {
2626 inherit pname version;
27− sha256 = "1c56066rx09xk1zbd156whsynlakxazqq64i509id17015wzp6jj";
27+ sha256 = "3bb5229eed6fbbdafc13ce962712ae66e175aa214c69bed35a06bffcf0c5e244";
2828 };
2929
3030 buildInputs = [
pkgs/development/python-modules/Cython/default.nix+2−2
@@ -25,11 +25,11 @@ let
2525
2626in buildPythonPackage rec {
2727 pname = "Cython";
28− version = "0.29.13";
28+ version = "0.29.14";
2929
3030 src = fetchPypi {
3131 inherit pname version;
32− sha256 = "c29d069a4a30f472482343c866f7486731ad638ef9af92bfe5fca9c7323d638e";
32+ sha256 = "e4d6bb8703d0319eb04b7319b12ea41580df44fd84d83ccda13ea463c6801414";
3333 };
3434
3535 nativeBuildInputs = [
pkgs/development/python-modules/GitPython/default.nix+2−2
@@ -1,13 +1,13 @@
11{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb2, mock, nose, ddt }:
22
33buildPythonPackage rec {
4− version = "3.0.4";
4+ version = "3.0.5";
55 pname = "GitPython";
66 disabled = isPy27; # no longer supported
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "3237caca1139d0a7aa072f6735f5fd2520de52195e0fa1d8b83a9b212a2498b2";
10+ sha256 = "9c2398ffc3dcb3c40b27324b316f08a4f93ad646d5a6328cafbb871aa79f5e42";
1111 };
1212
1313 patches = [
pkgs/development/python-modules/Nikola/default.nix+2−2
@@ -35,7 +35,7 @@
3535
3636buildPythonPackage rec {
3737 pname = "Nikola";
38− version = "8.0.2";
38+ version = "8.0.3";
3939
4040 # Nix contains only Python 3 supported version of doit, which is a dependency
4141 # of Nikola. Python 2 support would require older doit 0.29.0 (which on the
@@ -54,7 +54,7 @@ buildPythonPackage rec {
5454
5555 src = fetchPypi {
5656 inherit pname version;
57− sha256 = "1a5y1qriy76hl4yxvbf365b1ggsxybm06mi1pwb5jkgbkwk2gkrf";
57+ sha256 = "a53470be082fce1843fb73002be2504828f9abc49a84eab5d1effc06ae2a5ddc";
5858 };
5959
6060 patchPhase = ''
pkgs/development/python-modules/acoustics/default.nix+2−2
@@ -3,14 +3,14 @@
33
44buildPythonPackage rec {
55 pname = "acoustics";
6− version = "0.2.2";
6+ version = "0.2.3";
77
88 checkInputs = [ pytest ];
99 propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "00981908c7cf54be58c0bfe902d7743225554ecf3432b30723e9300d9f3a0b0e";
13+ sha256 = "ca663059d61fbd2899aed4e3cedbc3f983aa67afd3ae1617db3c59b724206fb3";
1414 };
1515
1616 checkPhase = ''
pkgs/development/python-modules/aenum/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "aenum";
5− version = "2.2.1";
5+ version = "2.2.3";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "b12a7be3d89b270f266f8643aaa126404e5cdc0929bd6f09548b8eaed85e2aa1";
9+ sha256 = "a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8";
1010 };
1111
1212 # For Python 3, locale has to be set to en_US.UTF-8 for
pkgs/development/python-modules/aioesphomeapi/default.nix+2−2
@@ -2,13 +2,13 @@
22
33buildPythonPackage rec {
44 pname = "aioesphomeapi";
5− version = "2.4.0";
5+ version = "2.4.2";
66
77 disabled = !isPy3k;
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "bef494dd39a12e2e76cf4ea772a2746f1669ee243f03ad3579085ca9605beccb";
11+ sha256 = "e43e0fd628506f95752e90ab1579e5495183cc3c46915d0b0a062975cb5d181b";
1212 };
1313
1414 propagatedBuildInputs = [ attrs protobuf zeroconf ];
pkgs/development/python-modules/ansible-runner/default.nix+2−2
@@ -13,11 +13,11 @@
1313
1414buildPythonPackage rec {
1515 pname = "ansible-runner";
16− version = "1.4.2";
16+ version = "1.4.4";
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "9db56a69ad5d43fe7656ad8efb4083cb1800ea400f7828af6b20f44c0882404f";
20+ sha256 = "e6ccb7ccf9bab9c49a391db37e0d399ba0e73f969801ae35ff74020bfd4fc346";
2121 };
2222
2323 checkInputs = [ pytest mock ];
pkgs/development/python-modules/argcomplete/default.nix+2−2
@@ -3,11 +3,11 @@
33}:
44buildPythonPackage rec {
55 pname = "argcomplete";
6− version = "1.10.0";
6+ version = "1.10.2";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "1hdysr9z28sgwv47mivf4iyr1sg19hgfz349dghgdlk3rkl6v0s5";
10+ sha256 = "ec88b5ccefe2d47d8f14916a006431d0afb756751ee5c46f28654a7d8a69be53";
1111 };
1212
1313 doCheck = false; # bash-completion test fails with "compgen: command not found".
pkgs/development/python-modules/arrow/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "arrow";
8− version = "0.15.2";
8+ version = "0.15.4";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "10257c5daba1a88db34afa284823382f4963feca7733b9107956bed041aff24f";
12+ sha256 = "e1a318a4c0b787833ae46302c02488b6eeef413c6a13324b3261ad320f21ec1e";
1313 };
1414
1515 checkPhase = ''
pkgs/development/python-modules/astroid/default.nix+2−2
@@ -5,13 +5,13 @@
55
66buildPythonPackage rec {
77 pname = "astroid";
8− version = "2.3.2";
8+ version = "2.3.3";
99
1010 disabled = pythonOlder "3.4";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "09a3fba616519311f1af8a461f804b68f0370e100c9264a035aa7846d7852e33";
14+ sha256 = "71ea07f44df9568a75d0f354c49143a4575d90645e9fead6dfb52c26a85ed13a";
1515 };
1616
1717 # From astroid/__pkginfo__.py
pkgs/development/python-modules/astropy-helpers/default.nix+2−2
@@ -6,7 +6,7 @@
66
77buildPythonPackage rec {
88 pname = "astropy-helpers";
9− version = "3.2.1";
9+ version = "3.2.2";
1010
1111 disabled = !isPy3k;
1212
@@ -14,7 +14,7 @@ buildPythonPackage rec {
1414
1515 src = fetchPypi {
1616 inherit pname version;
17− sha256 = "1klxyfvl9hbhy37n1z3mb0vm5pmd7hbsnzhjkvigz3647hmfzva6";
17+ sha256 = "cf32cb008b19597a1fe1a4d97f59734f30cd513aa3369a321e7b5b86cdb623fb";
1818 };
1919
2020 meta = with lib; {
pkgs/development/python-modules/astropy/default.nix+2−2
@@ -10,13 +10,13 @@
1010
1111buildPythonPackage rec {
1212 pname = "astropy";
13− version = "3.2.2";
13+ version = "3.2.3";
1414
1515 disabled = !isPy3k; # according to setup.py
1616
1717 src = fetchPypi {
1818 inherit pname version;
19− sha256 = "8553f4a95e9938a0c7ae520633f7172356824b8eb324dd967fca6baf00ac19bf";
19+ sha256 = "47f00816c2978fdd10f448c8f0337d6dca7b8cbeaab4bf272b5fd37cb4b890d3";
2020 };
2121
2222 nativeBuildInputs = [ astropy-helpers ];
pkgs/development/python-modules/awkward/default.nix+2−2
@@ -11,11 +11,11 @@
1111
1212buildPythonPackage rec {
1313 pname = "awkward";
14− version = "0.12.14";
14+ version = "0.12.16";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "a76b0b76e4e843bfffc26771f6e1848be6f1c225e79f541c12215ae90503e489";
18+ sha256 = "df5380b96dc9c1b129e68057578e4a2d42d9b73a0ae97ff263a9072baf8f7a5e";
1919 };
2020
2121 nativeBuildInputs = [ pytestrunner ];
pkgs/development/python-modules/aws-adfs/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "aws-adfs";
6− version = "1.19.0";
6+ version = "1.19.1";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "da20c682993d87d41534ffc2be0819d924aaf230b27abbc5d1fa8ad62410bf39";
10+ sha256 = "20b2ad44d19aa494fa11cb2d1290359b3a7a0c6c8908179b4af0c9367d83e370";
1111 };
1212
1313 # Relax version constraint
pkgs/development/python-modules/azure-cosmosdb-table/default.nix+2−2
@@ -11,11 +11,11 @@
1111
1212buildPythonPackage rec {
1313 pname = "azure-cosmosdb-table";
14− version = "1.0.5";
14+ version = "1.0.6";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "4a34c2c792036afc2a3811f4440ab967351e9ceee6542cc96453b63c678c0145";
18+ sha256 = "5f061d2ab8dcf2f0b4e965d5976e7b7aeb1247ea896911f0e1d29092aaaa29c7";
1919 };
2020
2121 propagatedBuildInputs = [
pkgs/development/python-modules/azure-datalake-store/default.nix+2−2
@@ -11,11 +11,11 @@
1111
1212buildPythonPackage rec {
1313 pname = "azure-datalake-store";
14− version = "0.0.47";
14+ version = "0.0.48";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "19fkkabr76r851r95kh5dpk4bdn3jkysv3aij6i2x99mkb4vxg2m";
18+ sha256 = "d27c335783d4add00b3a5f709341e4a8009857440209e15a739a9a96b52386f7";
1919 };
2020
2121 propagatedBuildInputs = [
pkgs/development/python-modules/btrees/default.nix+2−2
@@ -9,7 +9,7 @@
99
1010buildPythonPackage rec {
1111 pname = "BTrees";
12− version = "4.6.0";
12+ version = "4.6.1";
1313
1414 buildInputs = [ transaction ];
1515 propagatedBuildInputs = [ persistent zope_interface ];
@@ -23,7 +23,7 @@ buildPythonPackage rec {
2323
2424 src = fetchPypi {
2525 inherit pname version;
26− sha256 = "0bmkpg6z5z47p21340nyrfbdv2jkfp80yv085ndgbwaas1zi7ac9";
26+ sha256 = "b3a0e1d073800bf7bcca6cbb97a6b3c9ec485a4ba3ee0b354da1ed076cfb9f30";
2727 };
2828
2929 meta = with stdenv.lib; {
pkgs/development/python-modules/carbon/default.nix+2−2
@@ -4,13 +4,13 @@
44
55buildPythonPackage rec {
66 pname = "carbon";
7− version = "1.1.5";
7+ version = "1.1.6";
88
99 disabled = isPy3k;
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "a88390553a9ea628fdb74b5b358ed83a657e058bcc811e5819d9db856b4fcf5b";
13+ sha256 = "9ecda1469e497e3fed346b23ac94fd576e1bd9962677ab88975f4f598186e851";
1414 };
1515
1616 propagatedBuildInputs = [ twisted whisper txamqp cachetools urllib3 ];
pkgs/development/python-modules/cchardet/default.nix+2−2
@@ -7,11 +7,11 @@
77
88buildPythonPackage rec {
99 pname = "cchardet";
10− version = "2.1.4";
10+ version = "2.1.5";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "1h3wajwwgqpyb1q44lzr8djbcwr4y8cphph7kyscz90d83h4b5yc";
14+ sha256 = "240efe3f255f916769458343840b9c6403cf3192720bc5129792cbcb88bf72fb";
1515 };
1616
1717 checkInputs = [ nose ];
pkgs/development/python-modules/cffi/default.nix+2−2
@@ -2,11 +2,11 @@
22
33if isPyPy then null else buildPythonPackage rec {
44 pname = "cffi";
5− version = "1.13.1";
5+ version = "1.13.2";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "558b3afef987cf4b17abd849e7bedf64ee12b28175d564d05b628a0f9355599b";
9+ sha256 = "599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346";
1010 };
1111
1212 outputs = [ "out" "dev" ];
pkgs/development/python-modules/cfn-lint/default.nix+2−2
@@ -13,11 +13,11 @@
1313
1414buildPythonPackage rec {
1515 pname = "cfn-lint";
16− version = "0.24.5";
16+ version = "0.24.8";
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "1268c9730ba869f0f630eaf5bac34795553a97385d38eb91b9f7f5c3f73c8982";
20+ sha256 = "5aa1540ee9a7efc23ebe54a22f1a505766a4bb44f64a0f4fe79574a156a9b43e";
2121 };
2222
2323 propagatedBuildInputs = [
pkgs/development/python-modules/cleo/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "cleo";
6− version = "0.7.5";
6+ version = "0.7.6";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "0d0sxca308ilp73jdny4frn93asr4ih87xxl1d9rxf8m12xssa3c";
10+ sha256 = "99cf342406f3499cec43270fcfaf93c126c5164092eca201dfef0f623360b409";
1111 };
1212
1313 propagatedBuildInputs = [
pkgs/development/python-modules/cornice/default.nix+2−2
@@ -9,11 +9,11 @@
99
1010buildPythonPackage rec {
1111 pname = "cornice";
12− version = "3.6.0";
12+ version = "3.6.1";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "4dab97fe52d7075ecc87b8cadf549ca2c2c628512741193fb81a0c0433b46715";
16+ sha256 = "d3d608b9ff405e7ba5e9629ef0c09b7605997e1aea0dafb2aaa66761ff7cab08";
1717 };
1818
1919 propagatedBuildInputs = [ pyramid simplejson six venusian ];
pkgs/development/python-modules/dateutil/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, buildPythonPackage, fetchPypi, six, setuptools_scm, pytest }:
22buildPythonPackage rec {
33 pname = "python-dateutil";
4− version = "2.8.0";
4+ version = "2.8.1";
55
66 src = fetchPypi {
77 inherit pname version;
8− sha256 = "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e";
8+ sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
99 };
1010
1111 checkInputs = [ pytest ];
pkgs/development/python-modules/decorator/default.nix+6−2
@@ -5,13 +5,17 @@
55
66buildPythonPackage rec {
77 pname = "decorator";
8− version = "4.4.0";
8+ version = "4.4.1";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "1pi54wqj2p6ka13x7q8d5zgqg9bcf7m5d00l7x5bi204qmhn65c6";
12+ sha256 = "54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce";
1313 };
1414
15+ postPatch = ''
16+ substituteInPlace src/tests/test.py --replace "DocumentationTestCase" "NoDocumentation"
17+ '';
18+
1519 meta = with lib; {
1620 homepage = https://pypi.python.org/pypi/decorator;
1721 description = "Better living through Python with decorators";
pkgs/development/python-modules/deprecated/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "Deprecated";
6− version = "1.2.6";
6+ version = "1.2.7";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "1hcw9y7dvhwg5flk6wy8aa4kkgpvcqq3q4jd53h54586fp7w85d5";
10+ sha256 = "408038ab5fdeca67554e8f6742d1521cd3cd0ee0ff9d47f29318a4f4da31c308";
1111 };
1212
1313 postPatch = ''
pkgs/development/python-modules/django-multiselectfield/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "django-multiselectfield";
9− version = "0.1.9";
9+ version = "0.1.10";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "54fa3886884cbc5d9c2f523e0e4af2cc3b976bd077718b2b443a5be44eb481ec";
13+ sha256 = "ec305ca79b6e16fb6d699d3159258f9f680ead8ea5ef9b419e7faf13f31355df";
1414 };
1515
1616 propagatedBuildInputs = [ django ];
pkgs/development/python-modules/django/2_1.nix+2−2
@@ -6,13 +6,13 @@
66
77buildPythonPackage rec {
88 pname = "Django";
9− version = "2.1.13";
9+ version = "2.1.14";
1010
1111 disabled = !isPy3k;
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "7a28a4eb0167eba491ccfafd7006843b5cdd26d8c93b955a74c2ea74f94efc2c";
15+ sha256 = "d9159141fc354c4c28cc2b2586d55ba6d5e1531f5470218bb56a75be03d67398";
1616 };
1717
1818 patches = stdenv.lib.optionals withGdal [
pkgs/development/python-modules/django/2_2.nix+2−2
@@ -6,13 +6,13 @@
66
77buildPythonPackage rec {
88 pname = "Django";
9− version = "2.2.6";
9+ version = "2.2.7";
1010
1111 disabled = !isPy3k;
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "a8ca1033acac9f33995eb2209a6bf18a4681c3e5269a878e9a7e0b7384ed1ca3";
15+ sha256 = "16040e1288c6c9f68c6da2fe75ebde83c0a158f6f5d54f4c5177b0c1478c5b86";
1616 };
1717
1818 patches = stdenv.lib.optional withGdal
pkgs/development/python-modules/dotnetcore2/default.nix+2−2
@@ -7,7 +7,7 @@
77
88buildPythonPackage rec {
99 pname = "dotnetcore2";
10− version = "2.1.9";
10+ version = "2.1.11";
1111 format = "wheel";
1212 disabled = isPy27;
1313
@@ -15,7 +15,7 @@ buildPythonPackage rec {
1515 inherit pname version format;
1616 python = "py3";
1717 platform = "manylinux1_x86_64";
18− sha256 = "0h1igixk84md68z7gwj1vd6ki4d5drxh0ih5zww8xcr3qh5r0drb";
18+ sha256 = "a335fb0abdaaeee7ba128b81b5350adfc5d2b2adf6a64cbc4d1a3b7cdf8560da";
1919 };
2020
2121 nativeBuildInputs = [ unzip ];
pkgs/development/python-modules/emcee/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "emcee";
6− version = "3.0.1";
6+ version = "3.0.2";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "01mx1w4a7j5p29a3r7ilh9la9n6gnlgwb46m439vrnfgvbvjjy9c";
10+ sha256 = "035a44d7594fdd03efd10a522558cdfaa080e046ad75594d0bf2aec80ec35388";
1111 };
1212
1313 propagatedBuildInputs = [ numpy ];
pkgs/development/python-modules/eyed3/default.nix+2−2
@@ -13,13 +13,13 @@
1313}:
1414
1515buildPythonPackage rec {
16− version = "0.8.10";
16+ version = "0.8.11";
1717 pname = "eyeD3";
1818 disabled = isPyPy;
1919
2020 src = fetchPypi {
2121 inherit pname version;
22− sha256 = "1jb22n1jczxgbpcnfiw12r8dcs74556g1d09mzms44f52kgs7lgc";
22+ sha256 = "0e4c9b9b42257deb9c38c112dbe44e1203dea686d454dc76adb72ded25ac878c";
2323 };
2424
2525 # https://github.com/nicfit/eyeD3/pull/284
pkgs/development/python-modules/faker/default.nix+2−2
@@ -17,11 +17,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
1717
1818buildPythonPackage rec {
1919 pname = "Faker";
20− version = "2.0.3";
20+ version = "2.0.4";
2121
2222 src = fetchPypi {
2323 inherit pname version;
24− sha256 = "19zdcdmc11syjbmnbq98yny3dwb5jqw8cxcbq9g2scwzc5f7b32y";
24+ sha256 = "6327c665c0d8721280b3036d9c9e851c60092bc1f30c8394cc433f8723e2bda5";
2525 };
2626
2727 nativeBuildInputs = [ pytestrunner ];
pkgs/development/python-modules/fido2/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "fido2";
8− version = "0.7.1";
8+ version = "0.7.3";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "10i61g8srx1dk0wfjj11s7ka5pv0661ivwg2r0y3y2nsnf5b90s4";
12+ sha256 = "8b592ec0e51348f29636706fe3266423a0e41c35c9df63a259a91488450c1285";
1313 };
1414
1515 propagatedBuildInputs = [ six cryptography ];
pkgs/development/python-modules/fiona/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "Fiona";
9− version = "1.8.9.post2";
9+ version = "1.8.11";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "210fb038b579fab38f35ddbdd31b9725f4d5099b3edfd4b87c983e5d47b79983";
13+ sha256 = "1e7ca9e051f5bffa1c43c70d573da9ca223fc076b84fa73380614fc02b9eb7f6";
1414 };
1515
1616 CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
pkgs/development/python-modules/flake8-debugger/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "flake8-debugger";
5− version = "3.2.0";
5+ version = "3.2.1";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "6e662f7e75a3ed729d3be7c92e72bde385ab08ec26e7808bf3dfc63445c87857";
9+ sha256 = "712d7c1ff69ddf3f0130e94cc88c2519e720760bce45e8c330bfdcb61ab4090d";
1010 };
1111
1212 nativeBuildInputs = [ pytestrunner ];
pkgs/development/python-modules/flake8/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "flake8";
8− version = "3.7.8";
8+ version = "3.7.9";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "19241c1cbc971b9962473e4438a2ca19749a7dd002dd1a946eaba171b4114548";
12+ sha256 = "45681a117ecc81e870cbf1262835ae4af5e7a8b08e40b944a8a6e6b895914cfb";
1313 };
1414
1515 checkInputs = [ pytest mock pytestrunner ];
pkgs/development/python-modules/future/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "future";
8− version = "0.18.1";
8+ version = "0.18.2";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "858e38522e8fd0d3ce8f0c1feaf0603358e366d5403209674c7b617fa0c24093";
12+ sha256 = "b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d";
1313 };
1414
1515 doCheck = false;
pkgs/development/python-modules/google-pasta/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "google-pasta";
9− version = "0.1.7";
9+ version = "0.1.8";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "1zmqfvy28i2509277s6sz098kddd16cx21vpxyc8xml1nclcxlbr";
13+ sha256 = "713813a9f7d6589e5defdaf21e80e4392eb124662f8bd829acd51a4f8735c0cb";
1414 };
1515
1616 propagatedBuildInputs = [
pkgs/development/python-modules/google_cloud_automl/default.nix+2−2
@@ -9,11 +9,11 @@
99
1010buildPythonPackage rec {
1111 pname = "google-cloud-automl";
12− version = "0.7.0";
12+ version = "0.7.1";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "532cee03a976eedf308c178484b61f80bc4c68991b3bd8eb8f6abd000a217ef7";
16+ sha256 = "fa92a77fcc79032dba756b82196a29f63a7b374379bacdb78be128e09b8abc03";
1717 };
1818
1919 checkInputs = [ pytest mock ];
pkgs/development/python-modules/graph_nets/default.nix+2−2
@@ -13,11 +13,11 @@
1313
1414buildPythonPackage rec {
1515 pname = "graph_nets";
16− version = "1.0.4";
16+ version = "1.0.5";
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "6f27f0358a477d4ec3ab300bf09944b4dfdd5c10b0a5f7ac06bcb32d1327ebe1";
20+ sha256 = "73e98a5930c6c7b609257ada2cf4523db70810343e0593bf0fa710b77e991933";
2121 };
2222
2323 postPatch = ''
pkgs/development/python-modules/graphite-web/default.nix+2−2
@@ -6,13 +6,13 @@ if django.version != "1.8.19"
66then throw "graphite-web should be build with django_1_8 and django_tagging_0_4_3"
77else buildPythonPackage rec {
88 pname = "graphite-web";
9− version = "1.1.5";
9+ version = "1.1.6";
1010
1111 disabled = isPy3k;
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "d43945d190f2b3a6d18daa6ace9a1bd3695e93dc593f50cd72c2af420883b99d";
15+ sha256 = "f4c293008ad588456397cd125cdad7f47f4bab5b6dd82b5fb69f5467e7346a2a";
1616 };
1717
1818 propagatedBuildInputs = [
pkgs/development/python-modules/gym/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "gym";
8− version = "0.15.3";
8+ version = "0.15.4";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "18381e13bbd1e2f206a1b88a2af4fb87affd7d06ee7955a6e5e6a79478a9adfc";
12+ sha256 = "3b930cbe1c76bbd30455b5e82ba723dea94159a5f988e927f443324bf7cc7ddd";
1313 };
1414
1515 postPatch = ''
pkgs/development/python-modules/handout/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "handout";
6− version = "1.1.1";
6+ version = "1.1.2";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "dbe5da9b422fa937b94a1a5221ce99387ebd75fe97ab4255e49b26d846b8614b";
10+ sha256 = "52daaf1f9a4cb2ceb88c1dedf85d22ef449b9422b424a2534d21f941e57bc915";
1111 };
1212
1313 propagatedBuildInputs = [ imageio imageio-ffmpeg ];
pkgs/development/python-modules/hiredis/default.nix+2−2
@@ -7,11 +7,11 @@
77
88buildPythonPackage rec {
99 pname = "hiredis";
10− version = "1.0.0";
10+ version = "1.0.1";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "158pymdlnv4d218w66i8kzdn4ka30l1pdwa0wyjh16bj10zraz79";
14+ sha256 = "aa59dd63bb3f736de4fc2d080114429d5d369dfb3265f771778e8349d67a97a4";
1515 };
1616 propagatedBuildInputs = [ redis ];
1717
pkgs/development/python-modules/html5-parser/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "html5-parser";
5− version = "0.4.8";
5+ version = "0.4.9";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "00d1zfk72xzyibh7l4ib57y0isn5gic7avgbh7afbkk99iwd5smi";
9+ sha256 = "25fe8f6848cbc15187f6748c0695df32bcf1b37df6420b6a01b4ebe1ec1ed48f";
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
pkgs/development/python-modules/hupper/default.nix+2−2
@@ -4,11 +4,11 @@
44
55buildPythonPackage rec {
66 pname = "hupper";
7− version = "1.9";
7+ version = "1.9.1";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "afd4e7beedc7417fed12cb2e15a21610c73cb08821c7f09aa926be24d4038dae";
11+ sha256 = "3b1c2222ec7b8159e7ad059e4493c6cc634c86184af0bf2ce5aba6edd241cf5f";
1212 };
1313
1414 checkPhase = ''
pkgs/development/python-modules/jdatetime/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "jdatetime";
5− version = "3.6.1";
5+ version = "3.6.2";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "72f8c72873f9d3f536a696014e4ebffe431a644d7aa95db18c52e086d23b2939";
9+ sha256 = "a589e35f0dab89283c1a3de9d70ed6cf657932aaed8e8ce1b0e5801aaab1da67";
1010 };
1111
1212 propagatedBuildInputs = [ six ];
pkgs/development/python-modules/jenkinsapi/default.nix+2−2
@@ -11,11 +11,11 @@
1111
1212buildPythonPackage rec {
1313 pname = "jenkinsapi";
14− version = "0.3.10";
14+ version = "0.3.11";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "fc2fcdf95d954d9bbbdb1303a2c3c32997935655c99aff300f1759dba3cebc6d";
18+ sha256 = "a212a244b0a6022a61657746c8120ac9b6db83432371b345154075eb8faceb61";
1919 };
2020
2121 propagatedBuildInputs = [ pytz requests ];
pkgs/development/python-modules/jsonrpc-async/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "jsonrpc-async";
6− version = "1.1.0";
6+ version = "1.1.1";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "488ab3b63a96c246f7ded14b3458eb13a36e3e16eb4319aa56806476517c7433";
10+ sha256 = "383f331e28cd8f6e3fa86f3e7052efa541b7ae8bf328a4e692aa045cfc0ecf25";
1111 };
1212
1313 propagatedBuildInputs = [ aiohttp jsonrpc-base ];
pkgs/development/python-modules/jsonrpc-base/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "jsonrpc-base";
5− version = "1.0.2";
5+ version = "1.0.3";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "f9baac32aa51c3052d03b86ff30a9856900b8b4a4eb175f7bf2c8722520b8637";
9+ sha256 = "7bda99589b4566f5027c2aeae122f409d8ccf4c811b278b8cfb616903871efb2";
1010 };
1111
1212 propagatedBuildInputs = [ ];
pkgs/development/python-modules/jsonrpc-websocket/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "jsonrpc-websocket";
6− version = "1.0.1";
6+ version = "1.0.2";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "e74e490fefa3b8f33620fca98f7cd9a53fb765b9ed6f78360482a3f364230885";
10+ sha256 = "f1aaca95db795d6a9f7bba52ff83c7fd4139050d0df93ee3a5a448adcfa0c0ac";
1111 };
1212
1313 propagatedBuildInputs = [ aiohttp jsonrpc-base ];
pkgs/development/python-modules/jupyterlab/default.nix+2−2
@@ -8,12 +8,12 @@
88
99buildPythonPackage rec {
1010 pname = "jupyterlab";
11− version = "1.2.2";
11+ version = "1.2.3";
1212 disabled = pythonOlder "3.5";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "96d3146eb09ffa0a198f31b36706859dadd4a59ed184aa9329a9c12733e6af0b";
16+ sha256 = "2188a9bcaaf0b6a68ff9098a481f37ece8231634b862fd3c9adedc466aac79f2";
1717 };
1818
1919 propagatedBuildInputs = [ jupyterlab_server notebook ];
pkgs/development/python-modules/kombu/default.nix+2−2
@@ -9,11 +9,11 @@
99
1010buildPythonPackage rec {
1111 pname = "kombu";
12− version = "4.6.5";
12+ version = "4.6.6";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "c9078124ce2616b29cf6607f0ac3db894c59154252dee6392cdbbe15e5c4b566";
16+ sha256 = "1760b54b1d15a547c9a26d3598a1c8cdaf2436386ac1f5561934bc8a3cbbbd86";
1717 };
1818
1919 postPatch = ''
pkgs/development/python-modules/lazr/config.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "lazr.config";
5− version = "2.2.1";
5+ version = "2.2.2";
66
77 propagatedBuildInputs = [ lazr_delegates ];
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "1s7pyvlq06qjrkaw9r6nc290lb095n25ybzgavvy51ygpxkgqxwn";
11+ sha256 = "cdb9a70dac4a76ca1ff3528d9eafe5414c6c69c1b92e7e84d3477ae85f6bb787";
1212 };
1313}
pkgs/development/python-modules/lazy-object-proxy/default.nix+2−2
@@ -7,11 +7,11 @@
77
88buildPythonPackage rec {
99 pname = "lazy-object-proxy";
10− version = "1.4.2";
10+ version = "1.4.3";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "fd135b8d35dfdcdb984828c84d695937e58cc5f49e1c854eb311c4d6aa03f4f1";
14+ sha256 = "f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0";
1515 };
1616
1717 nativeBuildInputs = [ setuptools_scm ];
pkgs/development/python-modules/ledgerblue/default.nix+2−2
@@ -5,11 +5,11 @@
55
66buildPythonPackage rec {
77 pname = "ledgerblue";
8− version = "0.1.29";
8+ version = "0.1.31";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "14zv8bp62r1fwrrpbwyg9a3s5dl76lbhd8lv16xim0w55p9vvixn";
12+ sha256 = "f1fc7ab685780309a7220c6ee517d88072cc594a9615bcc18e68ed5f149fa432";
1313 };
1414
1515 propagatedBuildInputs = [
pkgs/development/python-modules/libcloud/default.nix+2−2
@@ -11,11 +11,11 @@
1111
1212buildPythonPackage rec {
1313 pname = "apache-libcloud";
14− version = "2.6.0";
14+ version = "2.6.1";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "1spjkw5nxhbawblj5db8izff05kjw425iyydipajb7qh73vm25r0";
18+ sha256 = "fcc165f2cc2db9a379c6d3a17b3beb9081bb64ba5c0bf7bbb58da864810092f0";
1919 };
2020
2121 checkInputs = [ mock pytest pytestrunner requests-mock ];
pkgs/development/python-modules/logilab/common.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "logilab-common";
5− version = "1.4.3";
5+ version = "1.4.4";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "1zw8bijlcmqrigsqvzj7gwh3qbd33dmpi9ij6h56b41x0dpm957d";
9+ sha256 = "8c1bf26431a3b487940cd4a7c0eefde328f5ff7098222ee695805752dae94aa6";
1010 };
1111
1212 propagatedBuildInputs = [ unittest2 six ];
pkgs/development/python-modules/marshmallow/default.nix+2−2
@@ -4,7 +4,7 @@
44
55buildPythonPackage rec {
66 pname = "marshmallow";
7− version = "3.2.1";
7+ version = "3.2.2";
88
99 meta = {
1010 homepage = "https://github.com/marshmallow-code/marshmallow";
@@ -17,7 +17,7 @@ buildPythonPackage rec {
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "9a2f3e8ea5f530a9664e882d7d04b58650f46190178b2264c72b7d20399d28f0";
20+ sha256 = "1a358beb89c2b4d5555272065a9533591a3eb02f1b854f3c4002d88d8f2a1ddb";
2121 };
2222
2323 propagatedBuildInputs = [ dateutil simplejson ];
pkgs/development/python-modules/mechanize/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "mechanize";
9− version = "0.4.3";
9+ version = "0.4.4";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "1gyxkwjnabqf8xxnkj787xh2dpcnm858g369fnahdcz1wn5hdmyp";
13+ sha256 = "9fff89e973bdf1aee75a351bd4dde53ca51a7e76944ddeae3ea3b6ad6c46045c";
1414 };
1515
1616 propagatedBuildInputs = [ html5lib ];
pkgs/development/python-modules/minio/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "minio";
6− version = "5.0.1";
6+ version = "5.0.5";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "8f7ba1ca0750dfca3302cb03b14a92bf5f1c755ff84f9ba268079bf582e0f735";
10+ sha256 = "a5886b3ccb9b46cb4a322a486e06674d1f287b773f20b24cdc3de8450ff935a7";
1111 };
1212
1313 disabled = !isPy3k;
pkgs/development/python-modules/mock/default.nix+5−6
@@ -1,7 +1,7 @@
1−{ stdenv
1+{ lib
22, buildPythonPackage
33, fetchPypi
4−, unittest2
4+, isPy27
55, funcsigs
66, six
77, pbr
@@ -17,8 +17,7 @@ buildPythonPackage rec {
1717 sha256 = "83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3";
1818 };
1919
20− buildInputs = [ unittest2 ];
21− propagatedBuildInputs = [ funcsigs six pbr ];
20+ propagatedBuildInputs = [ six pbr ] ++ lib.optionals isPy27 [ funcsigs ];
2221
2322 # On PyPy for Python 2.7 in particular, Mock's tests have a known failure.
2423 # Mock upstream has a decoration to disable the failing test and make
@@ -30,10 +29,10 @@ buildPythonPackage rec {
3029 ${python.interpreter} -m unittest discover
3130 '';
3231
33− meta = with stdenv.lib; {
32+ meta = with lib; {
3433 description = "Mock objects for Python";
3534 homepage = http://python-mock.sourceforge.net/;
36− license = stdenv.lib.licenses.bsd2;
35+ license = licenses.bsd2;
3736 };
3837
3938}
pkgs/development/python-modules/moderngl/default.nix+2−2
@@ -8,11 +8,11 @@
88
99buildPythonPackage rec {
1010 pname = "moderngl";
11− version = "5.5.3";
11+ version = "5.5.4";
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "1k2yf2yglzx65gcv2bqql6w6lmgyp3f1jz4ddq9vylf09a8j7fga";
15+ sha256 = "08badabb6a1bbc9aa9e65fae8ecd3275d8342cb45d9c457b19e32b3312a8b663";
1616 };
1717
1818 disabled = !isPy3k;
pkgs/development/python-modules/openpyxl/default.nix+2−2
@@ -10,12 +10,12 @@
1010
1111buildPythonPackage rec {
1212 pname = "openpyxl";
13− version = "3.0.0";
13+ version = "3.0.1";
1414 disabled = isPy27; # 2.6.4 was final python2 release
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "340a1ab2069764559b9d58027a43a24db18db0e25deb80f81ecb8ca7ee5253db";
18+ sha256 = "a3ee361d3ff04af6048d594775b3a54ffdf215d40fa5c6c78b2a41c0d0b020d3";
1919 };
2020
2121 checkInputs = [ pytest ];
pkgs/development/python-modules/phonenumbers/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "phonenumbers";
5− version = "8.10.22";
5+ version = "8.10.23";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "705dc7bbaa0d5932e9c010437c718bb3c0d7c93ab25b9710b4d9ae7370cc0121";
9+ sha256 = "b31916281b0819c1e24ee3c21561ecd8be5af9381088557a986af85051a243bf";
1010 };
1111
1212 meta = {
pkgs/development/python-modules/pivy/default.nix+1−1
@@ -17,7 +17,7 @@ buildPythonPackage rec {
1717
1818 buildInputs = with pkgs; with xorg; [
1919 coin3d soqt qt5.qtbase
20− libGLU_combined
20+ libGLU libGL
2121 libXi libXext libSM libICE libX11
2222 ];
2323
pkgs/development/python-modules/pyasn1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "pyasn1";
5− version = "0.4.7";
5+ version = "0.4.8";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "a9495356ca1d66ed197a0f72b41eb1823cf7ea8b5bd07191673e8147aecf8604";
9+ sha256 = "aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba";
1010 };
1111
1212 meta = with stdenv.lib; {
pkgs/development/python-modules/pybullet/default.nix+2−2
@@ -1,7 +1,7 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4−, libGLU_combined
4+, libGLU, libGL
55, xorg
66}:
77
@@ -15,7 +15,7 @@ buildPythonPackage rec {
1515 };
1616
1717 buildInputs = [
18− libGLU_combined
18+ libGLU libGL
1919 xorg.libX11
2020 ];
2121
pkgs/development/python-modules/pycairo/default.nix+2−2
@@ -2,7 +2,7 @@
22
33buildPythonPackage rec {
44 pname = "pycairo";
5− version = "1.18.1";
5+ version = "1.18.2";
66
77 format = "other";
88
@@ -12,7 +12,7 @@ buildPythonPackage rec {
1212 owner = "pygobject";
1313 repo = "pycairo";
1414 rev = "v${version}";
15− sha256 = "0f4l7d1ibkk8xdspyv5zx8fah9z3x775bd91zirnp37vlgqds7xj";
15+ sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j";
1616 };
1717
1818 nativeBuildInputs = [
pkgs/development/python-modules/pycryptodome/default.nix+2−2
@@ -1,12 +1,12 @@
11{ stdenv, fetchPypi, buildPythonPackage }:
22
33buildPythonPackage rec {
4− version = "3.9.2";
4+ version = "3.9.4";
55 pname = "pycryptodome";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "e1e007d072d50844188c067c325af8b3ad31e4b87792381469b821e95bf14cd8";
9+ sha256 = "a168e73879619b467072509a223282a02c8047d932a48b74fbd498f27224aa04";
1010 };
1111
1212 meta = {
pkgs/development/python-modules/pycryptodomex/default.nix+2−2
@@ -2,7 +2,7 @@
22
33buildPythonPackage rec {
44 pname = "pycryptodomex";
5− version = "3.9.2";
5+ version = "3.9.4";
66
77 meta = {
88 description = "A self-contained cryptographic library for Python";
@@ -12,6 +12,6 @@ buildPythonPackage rec {
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "137e8e2c7438184dae0b940cdf5d0d4f639b1df564a95dadbb7c4ec188850921";
15+ sha256 = "22d970cee5c096b9123415e183ae03702b2cd4d3ba3f0ced25c4e1aba3967167";
1616 };
1717}
pkgs/development/python-modules/pyftgl/default.nix+2−2
@@ -1,5 +1,5 @@
11{ lib, buildPythonPackage, fetchFromGitHub
2−, boost, freetype, ftgl, libGLU_combined
2+, boost, freetype, ftgl, libGLU, libGL
33, python
44}:
55
@@ -24,7 +24,7 @@ buildPythonPackage rec {
2424 sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py
2525 '';
2626
27− buildInputs = [ boost freetype ftgl libGLU_combined ];
27+ buildInputs = [ boost freetype ftgl libGLU libGL ];
2828
2929 meta = with lib; {
3030 description = "Python bindings for FTGL (FreeType for OpenGL)";
pkgs/development/python-modules/pyglet/default.nix+4−3
@@ -1,7 +1,8 @@
11{ stdenv
22, buildPythonPackage
33, fetchPypi
4−, libGLU_combined
4+, libGL
5+, libGLU
56, xorg
67, future
78, pytest
@@ -34,9 +35,9 @@ buildPythonPackage rec {
3435 for name in names:
3536 path = None
3637 if name == 'GL':
37− path = '${libGLU_combined}/lib/libGL${ext}'
38+ path = '${libGL}/lib/libGL${ext}'
3839 elif name == 'GLU':
39− path = '${libGLU_combined}/lib/libGLU${ext}'
40+ path = '${libGLU}/lib/libGLU${ext}'
4041 elif name == 'c':
4142 path = '${glibc}/lib/libc${ext}.6'
4243 elif name == 'X11':
pkgs/development/python-modules/pylibacl/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "pylibacl";
9− version = "0.5.3";
9+ version = "0.5.4";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "0c3xw1s5bh6jnsc0wwyxnn6kn6x6rpbmmi05ap1f81fyqlgrzgj0";
13+ sha256 = "060f375aeff90a16fbc3a827b7e234694ad636485d8ecd6654e01e1fc4ea3b37";
1414 };
1515
1616 # ERROR: testExtended (tests.test_acls.AclExtensions)
pkgs/development/python-modules/pylint/default.nix+2−2
@@ -3,13 +3,13 @@
33
44buildPythonPackage rec {
55 pname = "pylint";
6− version = "2.4.3";
6+ version = "2.4.4";
77
88 disabled = pythonOlder "3.4";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "856476331f3e26598017290fd65bebe81c960e806776f324093a46b76fb2d1c0";
12+ sha256 = "3db5468ad013380e987410a8d6956226963aed94ecb5f9d3a28acca6d9ac36cd";
1313 };
1414
1515 nativeBuildInputs = [ pytestrunner ];
pkgs/development/python-modules/pymupdf/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, buildPythonPackage, fetchPypi, mupdf, swig }:
22buildPythonPackage rec {
33 pname = "PyMuPDF";
4− version = "1.16.7";
4+ version = "1.16.8";
55
66 src = fetchPypi {
77 inherit pname version;
8− sha256 = "b16c85b2f89cc89e36b59fe734f14e5c939c8b24697bf33ff7a19584e8334976";
8+ sha256 = "3099b48a796885c0760d8ac5439131dee1bc6adadf7ae008417e0ca8d8fcdf15";
99 };
1010
1111 patchPhase = ''
pkgs/development/python-modules/pyopengl/default.nix+1−1
@@ -14,7 +14,7 @@ buildPythonPackage rec {
1414 sha256 = "9b47c5c3a094fa518ca88aeed35ae75834d53e4285512c61879f67a48c94ddaf";
1515 };
1616
17− propagatedBuildInputs = [ pkgs.libGLU_combined pkgs.freeglut pillow ];
17+ propagatedBuildInputs = [ pkgs.libGLU pkgs.libGL pkgs.freeglut pillow ];
1818
1919 patchPhase = let
2020 ext = stdenv.hostPlatform.extensions.sharedLibrary; in ''
pkgs/development/python-modules/pyspf/default.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "pyspf";
5− version = "2.0.12"; # version 2.0.13 should not be used, see #72791
5+ version = "2.0.13"; # version 2.0.13 should not be used, see #72791
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "18j1rmbmhih7q6y12grcj169q7sx1986qn4gmpla9y5gwfh1p8la";
9+ sha256 = "62dc1be39519e343202d480da7ef93d834b5a50cd4f217bef9335ed15292929b";
1010 };
1111
1212 propagatedBuildInputs = [ pydns ];
pkgs/development/python-modules/pytest/default.nix+2−2
@@ -3,7 +3,7 @@
33, atomicwrites, mock, writeText, pathlib2, wcwidth, packaging, isPyPy, python
44}:
55buildPythonPackage rec {
6− version = "5.2.2";
6+ version = "5.2.4";
77 pname = "pytest";
88
99 disabled = !isPy3k;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "27abc3fef618a01bebb1f0d6d303d2816a99aa87a5968ebc32fe971be91eb1e6";
18+ sha256 = "ff0090819f669aaa0284d0f4aad1a6d9d67a6efdc6dd4eb4ac56b704f890a0d6";
1919 };
2020
2121 checkInputs = [ hypothesis mock ];
pkgs/development/python-modules/pyzmq/default.nix+2−2
@@ -9,11 +9,11 @@
99
1010buildPythonPackage rec {
1111 pname = "pyzmq";
12− version = "18.1.0";
12+ version = "18.1.1";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "93f44739db69234c013a16990e43db1aa0af3cf5a4b8b377d028ff24515fbeb3";
16+ sha256 = "8c69a6cbfa94da29a34f6b16193e7c15f5d3220cb772d6d17425ff3faa063a6d";
1717 };
1818
1919 checkInputs = [ pytest tornado ];
pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix+2−2
@@ -9,11 +9,11 @@
99
1010buildPythonPackage rec {
1111 pname = "readthedocs-sphinx-ext";
12− version = "1.0.0";
12+ version = "1.0.1";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "cc94753be6b2db997e3291046b39e49d578f6441fd75159db22a51a29d2cf1fc";
16+ sha256 = "c920d8129752ee3f339c8cf3dfeba800a25730249d6ab43dc9b3c384312d1d32";
1717 };
1818
1919 propagatedBuildInputs = [ requests ];
pkgs/development/python-modules/runway-python/default.nix+2−2
@@ -13,11 +13,11 @@
1313
1414buildPythonPackage rec {
1515 pname = "runway-python";
16− version = "0.5.1";
16+ version = "0.5.3";
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "00cf6fa9ea3b6a195e9eca96216a9d206b6884624d0214bd776f8654cd5e8fea";
20+ sha256 = "30046ced74b5502eca604b1ae766fd3daa1b5ed6379fbe1210730710c752d4f6";
2121 };
2222
2323 propagatedBuildInputs = [ flask flask-cors numpy pillow gevent wget six colorcet ];
pkgs/development/python-modules/setuptools/default.nix+2−2
@@ -13,7 +13,7 @@
1313
1414let
1515 pname = "setuptools";
16− version = "41.4.0";
16+ version = "41.6.0";
1717
1818 # Create an sdist of setuptools
1919 sdist = stdenv.mkDerivation rec {
@@ -23,7 +23,7 @@ let
2323 owner = "pypa";
2424 repo = pname;
2525 rev = "v${version}";
26− sha256 = "0asxfnsi56r81lm48ynqbfkmm3kvw2jwrlf2l9azn5w6xm30jvp5";
26+ sha256 = "0j7bfxq9fwa55ijzw8zn9aa2z2zx4lw2n4jbn1662pjg7v62knv1";
2727 name = "${pname}-${version}-source";
2828 };
2929
pkgs/development/python-modules/shodan/default.nix+2−2
@@ -10,11 +10,11 @@
1010
1111buildPythonPackage rec {
1212 pname = "shodan";
13− version = "1.19.0";
13+ version = "1.19.1";
1414
1515 src = fetchPypi {
1616 inherit pname version;
17− sha256 = "1i4zrzamvgy3g117a2x66gyi7pzh27slc2w9pqysc0ldfcibi2wx";
17+ sha256 = "76b8a3ba577a62799e3ea86410aea54e1f403ef6efbf681a3f38baa2bf4e1c58";
1818 };
1919
2020 propagatedBuildInputs = [
pkgs/development/python-modules/starfish/default.nix+2−2
@@ -26,11 +26,11 @@
2626
2727buildPythonPackage rec {
2828 pname = "starfish";
29− version = "0.1.8";
29+ version = "0.1.9";
3030
3131 src = fetchPypi {
3232 inherit pname version;
33− sha256 = "6924404b9ce7c55b427bebc5712656b87d17b5114e9fb610f2821865bd8d70f4";
33+ sha256 = "02002b908572fcd2c7471475936a6c375f143d15df871399ce86ced6d7aef865";
3434 };
3535
3636 propagatedBuildInputs = [
pkgs/development/python-modules/tabulate/default.nix+2−2
@@ -5,12 +5,12 @@
55}:
66
77buildPythonPackage rec {
8− version = "0.8.5";
8+ version = "0.8.6";
99 pname = "tabulate";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "d0097023658d4dea848d6ae73af84532d1e86617ac0925d1adf1dd903985dac3";
13+ sha256 = "5470cc6687a091c7042cee89b2946d9235fe9f6d49c193a4ae2ac7bf386737c8";
1414 };
1515
1616 checkInputs = [ nose ];
pkgs/development/python-modules/terminado/default.nix+2−2
@@ -7,11 +7,11 @@
77
88buildPythonPackage rec {
99 pname = "terminado";
10− version = "0.8.2";
10+ version = "0.8.3";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "de08e141f83c3a0798b050ecb097ab6259c3f0331b2f7b7750c9075ced2c20c2";
14+ sha256 = "4804a774f802306a7d9af7322193c5390f1da0abb429e082a10ef1d46e6fb2c2";
1515 };
1616
1717 propagatedBuildInputs = [ ptyprocess tornado ];
pkgs/development/python-modules/testfixtures/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "testfixtures";
6− version = "6.10.1";
6+ version = "6.10.2";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "abbca7ed381d34a77699c6cb68be67919a1e7f5cf8728b57396145417fa34110";
10+ sha256 = "c0eb9d20ce3b53e0cf543da7c46c263cc9792f13223def8b26edb6180ecdc895";
1111 };
1212
1313 checkInputs = [ pytest mock sybil zope_component twisted ];
pkgs/development/python-modules/tld/default.nix+2−2
@@ -2,11 +2,11 @@
22
33python.pkgs.buildPythonPackage rec {
44 pname = "tld";
5− version = "0.9.7";
5+ version = "0.9.8";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "cef15360ec42547a583d49ef5246936b3ace424a95c00b59c09dcbe44b289961";
9+ sha256 = "5963b22029e632a17bde87e35a19dc8c5b17266fb8c58e4d550d5593307e3a72";
1010 };
1111
1212 propagatedBuildInputs = with python.pkgs; [ six ];
pkgs/development/python-modules/tox/default.nix+2−2
@@ -13,7 +13,7 @@
1313
1414buildPythonPackage rec {
1515 pname = "tox";
16− version = "3.14.0";
16+ version = "3.14.1";
1717
1818 buildInputs = [ setuptools_scm ];
1919 propagatedBuildInputs = [ packaging pluggy py six virtualenv toml filelock ];
@@ -22,7 +22,7 @@ buildPythonPackage rec {
2222
2323 src = fetchPypi {
2424 inherit pname version;
25− sha256 = "c4f6b319c20ba4913dbfe71ebfd14ff95d1853c4231493608182f66e566ecfe1";
25+ sha256 = "bcfa3e40abc1e9b70607b56adfd976fe7dc8286ad56aab44e3151daca7d2d0d0";
2626 };
2727
2828 meta = with lib; {
pkgs/development/python-modules/uncompyle6/default.nix+2−2
@@ -11,11 +11,11 @@
1111
1212buildPythonPackage rec {
1313 pname = "uncompyle6";
14− version = "3.5.0";
14+ version = "3.5.1";
1515
1616 src = fetchPypi {
1717 inherit pname version;
18− sha256 = "4e6e86c05de588cbf5a2c35ddd080f23cd1770a1ad15c84dc1b2c78d65113af7";
18+ sha256 = "af6aea84ca42c889986f8baf86ccb9e3faae5ac1eaef470d2317dfe4131708b3";
1919 };
2020
2121 checkInputs = [ nose pytest hypothesis six ];
pkgs/development/python-modules/uproot/default.nix+2−2
@@ -16,11 +16,11 @@
1616
1717buildPythonPackage rec {
1818 pname = "uproot";
19− version = "3.10.10";
19+ version = "3.10.12";
2020
2121 src = fetchPypi {
2222 inherit pname version;
23− sha256 = "2c780472c5c328d2e34508db1da399038653142572fc3d0b5777b2311edabd83";
23+ sha256 = "34953903abe09bbab3ec1a9a4843b05c75b218daa6132c8275d871e88b6e3447";
2424 };
2525
2626 nativeBuildInputs = [ pytestrunner ];
pkgs/development/python-modules/urllib3/default.nix+2−2
@@ -4,11 +4,11 @@
44
55buildPythonPackage rec {
66 pname = "urllib3";
7− version = "1.25.6";
7+ version = "1.25.7";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86";
11+ sha256 = "f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e48b0745";
1212 };
1313
1414 outputs = [ "out" "dev" ];
pkgs/development/python-modules/wxPython/4.0.nix+2−2
@@ -28,11 +28,11 @@
2828
2929buildPythonPackage rec {
3030 pname = "wxPython";
31− version = "4.0.7.post1";
31+ version = "4.0.7.post2";
3232
3333 src = fetchPypi {
3434 inherit pname version;
35− sha256 = "da43eaa2eea32c34a52531331b0a69bd791c237803a7c5df451509624766f7ca";
35+ sha256 = "5a229e695b64f9864d30a5315e0c1e4ff5e02effede0a07f16e8d856737a0c4e";
3636 };
3737
3838 doCheck = false;
pkgs/development/python-modules/xxhash/default.nix+2−2
@@ -4,12 +4,12 @@
44}:
55
66buildPythonPackage rec {
7− version = "1.4.2";
7+ version = "1.4.3";
88 pname = "xxhash";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "82cdc67b41da904aa2921107e9877814079d9b067a99f19852b5d85e8a40555d";
12+ sha256 = "8b6b1afe7731d7d9cbb0398b4a811ebb5e6be5c174f72c68abf81f919a435de9";
1313 };
1414
1515 meta = with stdenv.lib; {
pkgs/development/python-modules/zope_proxy/default.nix+2−2
@@ -6,11 +6,11 @@
66
77buildPythonPackage rec {
88 pname = "zope.proxy";
9− version = "4.3.2";
9+ version = "4.3.3";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "ab6d6975d9c51c13cac828ff03168de21fb562b0664c59bcdc4a4b10f39a5b17";
13+ sha256 = "dac4279aa05055d3897ab5e5ee5a7b39db121f91df65a530f8b1ac7f9bd93119";
1414 };
1515
1616 propagatedBuildInputs = [ zope_interface ];
pkgs/development/r-modules/default.nix+1−1
@@ -311,7 +311,7 @@ let
311311 rgdal = [ pkgs.proj.dev pkgs.gdal ];
312312 rgeos = [ pkgs.geos ];
313313 rggobi = [ pkgs.ggobi pkgs.gtk2.dev pkgs.libxml2.dev ];
314− rgl = [ pkgs.libGLU_combined pkgs.xlibsWrapper ];
314+ rgl = [ pkgs.libGLU pkgs.libGL pkgs.xlibsWrapper ];
315315 Rglpk = [ pkgs.glpk ];
316316 RGtk2 = [ pkgs.gtk2.dev ];
317317 rhdf5 = [ pkgs.zlib ];
pkgs/development/ruby-modules/gem-config/default.nix+1−6
@@ -21,7 +21,7 @@
2121, libiconv, postgresql, v8, clang, sqlite, zlib, imagemagick
2222, pkgconfig , ncurses, xapian, gpgme, utillinux, tzdata, icu, libffi
2323, cmake, libssh2, openssl, libmysqlclient, darwin, git, perl, pcre, gecode_3, curl
24−, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
24+, msgpack, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
2525, cairo, re2, rake, gobject-introspection, gdk-pixbuf, zeromq, czmq, graphicsmagick, libcxx
2626, file, libvirt, glib, vips, taglib, libopus, linux-pam, libidn, protobuf, fribidi, harfbuzz
2727, bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk
@@ -70,11 +70,6 @@ in
7070 buildInputs = [ cairo pcre xorg.libpthreadstubs xorg.libXdmcp ];
7171 };
7272
73− capybara-webkit = attrs: {
74− buildInputs = [ qt59.qtbase qt59.qtwebkit ] ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
75− NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
76− };
77−
7873 charlock_holmes = attrs: {
7974 buildInputs = [ which icu zlib ];
8075 };
pkgs/development/tools/build-managers/meson/default.nix+9
@@ -77,6 +77,15 @@ python3Packages.buildPythonApplication rec {
7777 # https://github.com/mesonbuild/meson/issues/4784
7878 # Should be fixed in 0.52
7979 ./fix-objc-linking.patch
80+
81+ # Fixes error finding some frameworks
82+ # https://github.com/NixOS/nixpkgs/pull/70690#issuecomment-553704175
83+ # https://github.com/mesonbuild/meson/pull/5980
84+ # Should be fixed in 0.52
85+ (fetchpatch {
86+ url = "https://github.com/mesonbuild/meson/commit/8d3fcb3dc4d7204a4646807f8b5191d79fb291e5.patch";
87+ sha256 = "0g95gl662mribnnz5jcyn1jaaw8w7r1vgbg2jbm91dcrr5zji5ng";
88+ })
8089 ];
8190
8291 setupHook = ./setup-hook.sh;
pkgs/development/tools/simavr/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub, libelf, which, pkgconfig, freeglut
22, avrgcc, avrlibc
3−, libGLU_combined
3+, libGLU, libGL
44, GLUT }:
55
66stdenv.mkDerivation rec {
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 ];
2424
2525 nativeBuildInputs = [ which pkgconfig avrgcc ];
26− buildInputs = [ libelf freeglut libGLU_combined ]
26+ buildInputs = [ libelf freeglut libGLU libGL ]
2727 ++ stdenv.lib.optional stdenv.isDarwin GLUT;
2828
2929 # Hack to avoid TMPDIR in RPATHs.
pkgs/games/0ad/game.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, lib, perl, fetchurl, python2
22, pkgconfig, spidermonkey_38, boost, icu, libxml2, libpng, libsodium
33, libjpeg, zlib, curl, libogg, libvorbis, enet, miniupnpc
4−, openal, libGLU_combined, xorgproto, libX11, libXcursor, nspr, SDL2
4+, openal, libGLU, libGL, xorgproto, libX11, libXcursor, nspr, SDL2
55, gloox, nvidia-texture-tools
66, withEditor ? true, wxGTK ? null
77}:
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222 buildInputs = [
2323 spidermonkey_38 boost icu libxml2 libpng libjpeg
2424 zlib curl libogg libvorbis enet miniupnpc openal
25− libGLU_combined xorgproto libX11 libXcursor nspr SDL2 gloox
25+ libGLU libGL xorgproto libX11 libXcursor nspr SDL2 gloox
2626 nvidia-texture-tools libsodium
2727 ] ++ lib.optional withEditor wxGTK;
2828
pkgs/games/adom/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, patchelf, zlib, libmad, libpng12, libcaca, libGLU_combined, alsaLib, libpulseaudio
1+{ stdenv, fetchurl, patchelf, zlib, libmad, libpng12, libcaca, libGLU, libGL, alsaLib, libpulseaudio
22, xorg }:
33
44let
@@ -6,7 +6,7 @@ let
66 inherit (xorg) libXext libX11;
77
88 lpath = "${stdenv.cc.cc.lib}/lib64:" + stdenv.lib.makeLibraryPath [
9− zlib libmad libpng12 libcaca libXext libX11 libGLU_combined alsaLib libpulseaudio];
9+ zlib libmad libpng12 libcaca libXext libX11 libGLU libGL alsaLib libpulseaudio];
1010
1111in
1212stdenv.mkDerivation rec {
pkgs/games/alienarena/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, libjpeg, libX11, libXxf86vm, curl, libogg
2−, libvorbis, freetype, openal, libGLU_combined }:
2+, libvorbis, freetype, openal, libGL }:
33
44stdenv.mkDerivation {
55 name = "alienarena-7.65";
@@ -11,12 +11,12 @@ stdenv.mkDerivation {
1111
1212 nativeBuildInputs = [ pkgconfig ];
1313 buildInputs = [ libjpeg libX11 curl libogg libvorbis
14− freetype openal libGLU_combined libXxf86vm ];
14+ freetype openal libGL libXxf86vm ];
1515
1616 patchPhase = ''
1717 substituteInPlace ./configure \
1818 --replace libopenal.so.1 ${openal}/lib/libopenal.so.1 \
19− --replace libGL.so.1 ${libGLU_combined}/lib/libGL.so.1
19+ --replace libGL.so.1 ${libGL}/lib/libGL.so.1
2020 '';
2121
2222 meta = with stdenv.lib; {
pkgs/games/armagetronad/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU_combined, zlib }:
1+{ stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib }:
22
33let
44 versionMajor = "0.2.8";
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919 enableParallelBuilding = true;
2020
2121 configureFlags = [ "--disable-etc" ];
22− buildInputs = [ SDL SDL_image libxml2 libjpeg libpng libGLU_combined zlib ];
22+ buildInputs = [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL zlib ];
2323
2424 meta = with stdenv.lib; {
2525 homepage = http://armagetronad.org;
pkgs/games/astromenace/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, cmake, xlibsWrapper, libGLU_combined, SDL, openal, freealut, libogg, libvorbis, runtimeShell }:
1+{ fetchurl, stdenv, cmake, xlibsWrapper, libGLU, libGL, SDL, openal, freealut, libogg, libvorbis, runtimeShell }:
22
33stdenv.mkDerivation rec {
44 version = "1.3.2";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv";
1010 };
1111
12− buildInputs = [ cmake xlibsWrapper libGLU_combined SDL openal freealut libogg libvorbis ];
12+ buildInputs = [ cmake xlibsWrapper libGLU libGL SDL openal freealut libogg libvorbis ];
1313
1414 buildPhase = ''
1515 cmake ./
pkgs/games/bitsnbots/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, SDL, lua, libGLU_combined }:
1+{ stdenv, fetchurl, SDL, lua, libGLU, libGL }:
22
33stdenv.mkDerivation rec {
44 name = "bitsnbots-20111230";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
2525 ln -s $out/share/${name}/bitsnbots $out/bin
2626 '';
2727
28− buildInputs = [ SDL lua libGLU_combined ];
28+ buildInputs = [ SDL lua libGLU libGL ];
2929
3030 meta = {
3131 description = "Simple puzzle game with moving robots";
pkgs/games/blackshades/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchsvn, SDL, libGLU_combined, openal, libvorbis, freealut, SDL_image}:
1+{stdenv, fetchsvn, SDL, libGLU, libGL, openal, libvorbis, freealut, SDL_image}:
22
33stdenv.mkDerivation {
44 name = "blackshades-svn-110";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010
1111 NIX_LDFLAGS = "-lSDL_image";
1212
13− buildInputs = [ SDL SDL_image libGLU_combined openal libvorbis freealut ];
13+ buildInputs = [ SDL SDL_image libGLU libGL openal libvorbis freealut ];
1414
1515 patchPhase = ''
1616 sed -i -e s,Data/,$out/opt/$name/Data/,g \
pkgs/games/blobby/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, SDL2, SDL2_image, libGLU_combined, cmake, physfs, boost, zip, zlib
1+{stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib
22, pkgconfig, unzip}:
33stdenv.mkDerivation rec {
44 version = "1.0";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [SDL2 SDL2_image libGLU_combined cmake physfs boost zip zlib
13+ buildInputs = [SDL2 SDL2_image libGLU libGL cmake physfs boost zip zlib
1414 unzip];
1515
1616 preConfigure=''
pkgs/games/bzflag/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchurl, pkgconfig
2−, curl, SDL2, libGLU_combined, glew, ncurses, c-ares
2+, curl, SDL2, libGLU, libGL, glew, ncurses, c-ares
33, Carbon, CoreServices }:
44
55stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 nativeBuildInputs = [ pkgconfig ];
15− buildInputs = [ curl SDL2 libGLU_combined glew ncurses c-ares ]
15+ buildInputs = [ curl SDL2 libGLU libGL glew ncurses c-ares ]
1616 ++ lib.optionals stdenv.isDarwin [ Carbon CoreServices ];
1717
1818 meta = with lib; {
pkgs/games/construo/default.nix+9−1
@@ -1,4 +1,12 @@
1−{ stdenv, fetchurl, libX11, zlib, xorgproto, libGL ? null, libGLU ? null, freeglut ? null }:
1+{ stdenv
2+, fetchurl
3+, libX11
4+, zlib
5+, xorgproto
6+, libGL ? null
7+, libGLU ? null
8+, freeglut ? null
9+}:
210
311stdenv.mkDerivation rec {
412 pname = "construo";
pkgs/games/crack-attack/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, gtk2, freeglut, SDL, SDL_mixer, libGLU_combined, libXi, libXmu }:
1+{ stdenv, fetchurl, pkgconfig, gtk2, freeglut, SDL, SDL_mixer, libGLU, libGL, libXi, libXmu }:
22
33stdenv.mkDerivation {
44 name = "crack-attack-1.1.14";
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
1616 configureFlags = [ "--enable-sound=yes" ];
1717
1818 nativeBuildInputs = [ pkgconfig ];
19− buildInputs = [ gtk2 freeglut SDL SDL_mixer libGLU_combined libXi libXmu ];
19+ buildInputs = [ gtk2 freeglut SDL SDL_mixer libGLU libGL libXi libXmu ];
2020
2121 hardeningDisable = [ "format" ];
2222 enableParallelBuilding = true;
pkgs/games/crawl/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchFromGitHub, fetchpatch, which, sqlite, lua5_1, perl, python3, zlib, pkgconfig, ncurses
2−, dejavu_fonts, libpng, SDL2, SDL2_image, SDL2_mixer, libGLU_combined, freetype, pngcrush, advancecomp
2+, dejavu_fonts, libpng, SDL2, SDL2_image, SDL2_mixer, libGLU, libGL, freetype, pngcrush, advancecomp
33, tileMode ? false, enableSound ? tileMode
44
55# MacOS / Darwin builds
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
2525 # Still unstable with luajit
2626 buildInputs = [ lua5_1 zlib sqlite ncurses ]
2727 ++ (with python3.pkgs; [ pyyaml ])
28− ++ lib.optionals tileMode [ libpng SDL2 SDL2_image freetype libGLU_combined ]
28+ ++ lib.optionals tileMode [ libpng SDL2 SDL2_image freetype libGLU libGL ]
2929 ++ lib.optional enableSound SDL2_mixer
3030 ++ (lib.optionals stdenv.isDarwin (
3131 assert (lib.assertMsg (darwin != null) "Must have darwin frameworks available for darwin builds");
pkgs/games/crrcsim/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libGLU_combined, SDL, SDL_mixer, plib, libjpeg }:
1+{ stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, plib, libjpeg }:
22let
33 version = "0.9.13";
44in
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 buildInputs = [
15− libGLU_combined SDL SDL_mixer plib libjpeg
15+ libGLU libGL SDL SDL_mixer plib libjpeg
1616 ];
1717
1818 patches = [
pkgs/games/dhewm3/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, cmake, SDL2, libGLU_combined, zlib, libjpeg, libogg, libvorbis
1+{ stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
22, openal, curl }:
33
44stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 sha256 = "0wsabvh1x4g12xmhzs2m2pgri2q9sir1w3m2r7fpy6kzxp32hqdk";
1313 };
1414
15− # Add libGLU_combined linking
15+ # Add libGLU libGL linking
1616 patchPhase = ''
1717 sed -i 's/\<idlib\()\?\)$/idlib GL\1/' neo/CMakeLists.txt
1818 '';
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222 '';
2323
2424 nativeBuildInputs = [ cmake ];
25− buildInputs = [ SDL2 libGLU_combined zlib libjpeg libogg libvorbis openal curl ];
25+ buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
2626
2727 enableParallelBuilding = true;
2828
pkgs/games/dwarf-fortress/dfhack/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, buildEnv, lib, fetchFromGitHub, cmake, writeScriptBin
22, perl, XMLLibXML, XMLLibXSLT, zlib
3−, enableStoneSense ? false, allegro5, libGLU_combined
3+, enableStoneSense ? false, allegro5, libGLU, libGL
44, enableTWBT ? true, twbt
55, SDL
66, dfVersion
@@ -100,7 +100,7 @@ let
100100 nativeBuildInputs = [ cmake perl XMLLibXML XMLLibXSLT fakegit ];
101101 # We don't use system libraries because dfhack needs old C++ ABI.
102102 buildInputs = [ zlib SDL ]
103− ++ lib.optionals enableStoneSense [ allegro5 libGLU_combined ];
103+ ++ lib.optionals enableStoneSense [ allegro5 libGLU libGL ];
104104
105105 preConfigure = ''
106106 # Trick build system into believing we have .git
pkgs/games/dxx-rebirth/default.nix+2−2
@@ -1,5 +1,5 @@
11{ gcc6Stdenv, fetchurl, fetchpatch, scons, pkgconfig
2−, SDL, SDL_mixer, libGLU_combined, physfs
2+, SDL, SDL_mixer, libGLU, libGL, physfs
33}:
44
55let
@@ -33,7 +33,7 @@ in gcc6Stdenv.mkDerivation rec {
3333
3434 nativeBuildInputs = [ pkgconfig scons ];
3535
36− buildInputs = [ libGLU_combined physfs SDL SDL_mixer ];
36+ buildInputs = [ libGLU libGL physfs SDL SDL_mixer ];
3737
3838 enableParallelBuilding = true;
3939
pkgs/games/eduke32/default.nix+4−4
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, makeWrapper, pkgconfig, nasm, makeDesktopItem
2−, flac, gtk2, libvorbis, libvpx, libGLU_combined
2+, flac, gtk2, libvorbis, libvpx, libGLU, libGL
33, SDL2, SDL2_mixer }:
44
55let
@@ -26,18 +26,18 @@ in stdenv.mkDerivation {
2626 sha256 = "09a7l23i6sygicc82w1in9hjw0jvivlf7q0vw8kcx9j98lm23mkn";
2727 };
2828
29− buildInputs = [ flac gtk2 libvorbis libvpx libGLU_combined SDL2 SDL2_mixer ];
29+ buildInputs = [ flac gtk2 libvorbis libvpx libGL libGLU SDL2 SDL2_mixer ];
3030
3131 nativeBuildInputs = [ makeWrapper pkgconfig ]
3232 ++ stdenv.lib.optional (stdenv.hostPlatform.system == "i686-linux") nasm;
3333
3434 postPatch = ''
3535 substituteInPlace source/build/src/glbuild.cpp \
36− --replace libGLU.so ${libGLU_combined}/lib/libGLU.so
36+ --replace libGLU.so ${libGLU}/lib/libGLU.so
3737
3838 for f in glad.c glad_wgl.c ; do
3939 substituteInPlace source/glad/src/$f \
40− --replace libGL.so ${libGLU_combined}/lib/libGL.so
40+ --replace libGL.so ${libGL}/lib/libGL.so
4141 done
4242 '';
4343
pkgs/games/egoboo/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libGLU_combined, SDL, SDL_mixer, SDL_image, SDL_ttf }:
1+{ stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_ttf }:
22
33stdenv.mkDerivation rec {
44 # pf5234 (a developer?) at freenode #egoboo told me that I better use 2.7.3 until
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 cp -v -Rd controls.txt setup.txt players modules basicdat $out/share/${name}
2929 '';
3030
31− buildInputs = [ libGLU_combined SDL SDL_mixer SDL_image SDL_ttf ];
31+ buildInputs = [ libGLU libGL SDL SDL_mixer SDL_image SDL_ttf ];
3232
3333 /*
3434 This big commented thing may be needed for versions 2.8.0 or beyond
pkgs/games/ezquake/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, curl, expat
2−, jansson, libpng, libjpeg, libGLU_combined, libXxf86vm, pcre
2+, jansson, libpng, libjpeg, libGLU, libGL, libXxf86vm, pcre
33, pkgconfig, SDL2, vim }:
44
55stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515
1616 nativeBuildInputs = [ pkgconfig ];
1717 buildInputs = [
18− expat curl jansson libpng libjpeg libGLU_combined libXxf86vm pcre SDL2 vim
18+ expat curl jansson libpng libjpeg libGLU libGL libXxf86vm pcre SDL2 vim
1919 ];
2020
2121 installPhase = with stdenv.lib; let
pkgs/games/flightgear/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, wrapQtAppsHook
2−, freeglut, freealut, libGLU_combined, libICE, libjpeg, openal, openscenegraph, plib
2+, freeglut, freealut, libGLU, libGL, libICE, libjpeg, openal, openscenegraph, plib
33, libSM, libunwind, libX11, xorgproto, libXext, libXi
44, libXmu, libXt, simgear, zlib, boost, cmake, libpng, udev, fltk13, apr
55, makeDesktopItem, qtbase, qtdeclarative, glew
@@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
5454
5555 nativeBuildInputs = [ cmake wrapQtAppsHook ];
5656 buildInputs = [
57− freeglut freealut libGLU_combined libICE libjpeg openal openscenegraph plib
57+ freeglut freealut libGLU libGL libICE libjpeg openal openscenegraph plib
5858 libSM libunwind libX11 xorgproto libXext libXi
5959 libXmu libXt simgear zlib boost libpng udev fltk13 apr qtbase
6060 glew qtdeclarative
pkgs/games/freeorion/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub, cmake, doxygen, graphviz, makeWrapper
22, boost, SDL2, python2, freetype, openal, libogg, libvorbis, zlib, libpng, libtiff
3−, libjpeg, libGLU_combined, glew, libxslt
3+, libjpeg, libGLU, libGL, glew, libxslt
44}:
55
66stdenv.mkDerivation rec {
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
1616
1717 buildInputs = [
1818 (boost.override { enablePython = true; })
19− SDL2 python2 freetype openal libogg libvorbis zlib libpng libtiff libjpeg libGLU_combined glew ];
19+ SDL2 python2 freetype openal libogg libvorbis zlib libpng libtiff libjpeg libGLU libGL glew ];
2020
2121 nativeBuildInputs = [ cmake doxygen graphviz makeWrapper ];
2222
pkgs/games/fsg/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, gtk2, glib, pkgconfig, libGLU_combined, wxGTK, libX11, xorgproto
1+{ stdenv, fetchurl, gtk2, glib, pkgconfig, libGLU, libGL, wxGTK, libX11, xorgproto
22, runtimeShell }:
33
44stdenv.mkDerivation {
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
1313 hardeningDisable = [ "format" ];
1414
1515 nativeBuildInputs = [ pkgconfig ];
16− buildInputs = [ gtk2 glib libGLU_combined wxGTK libX11 xorgproto ];
16+ buildInputs = [ gtk2 glib libGLU libGL wxGTK libX11 xorgproto ];
1717
1818 preBuild = ''
1919 sed -e '
pkgs/games/gl-117/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl
2−, libGLU_combined, SDL, freeglut, SDL_mixer, autoconf, automake, libtool
2+, libGLU, libGL, SDL, freeglut, SDL_mixer, autoconf, automake, libtool
33}:
44
55stdenv.mkDerivation rec {
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 sha256 = "1yvg1rp1yijv0b45cz085b29x5x0g5fkm654xdv5qwh2l6803gb4";
1212 };
1313
14− buildInputs = [ libGLU_combined SDL freeglut SDL_mixer autoconf automake libtool ];
14+ buildInputs = [ libGLU libGL SDL freeglut SDL_mixer autoconf automake libtool ];
1515
1616 meta = with stdenv.lib; {
1717 description = "An air combat simulator";
pkgs/games/globulation/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libGLU_combined, SDL, sconsPackages, SDL_ttf, SDL_image, zlib, SDL_net
1+{ stdenv, fetchurl, libGLU, libGL, SDL, sconsPackages, SDL_ttf, SDL_image, zlib, SDL_net
22, speex, libvorbis, libogg, boost, fribidi, bsdiff
33, fetchpatch
44}:
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
3333 '';
3434
3535 nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
36− buildInputs = [ libGLU_combined SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
36+ buildInputs = [ libGLU libGL SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
3737
3838 postConfigure = ''
3939 sconsFlags+=" BINDIR=$out/bin"
pkgs/games/gltron/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, SDL, libGLU_combined, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
1+{stdenv, fetchurl, SDL, libGLU, libGL, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
22
33stdenv.mkDerivation rec {
44 name = "gltron-0.70";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717 # The build fails, unless we disable the default -Wall -Werror
1818 configureFlags = [ "--disable-warn" ];
1919
20− buildInputs = [ SDL libGLU_combined zlib libpng libvorbis libmikmod SDL_sound ];
20+ buildInputs = [ SDL libGLU libGL zlib libpng libvorbis libmikmod SDL_sound ];
2121
2222 meta = {
2323 homepage = http://www.gltron.org/;
pkgs/games/kobodeluxe/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, SDL, SDL_image, libGLU_combined} :
1+{stdenv, fetchurl, SDL, SDL_image, libGLU, libGL} :
22
33stdenv.mkDerivation {
44 name = "kobodeluxe-0.5.1";
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
77 sha256 = "0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c";
88 };
99
10− buildInputs = [ SDL SDL_image libGLU_combined ];
10+ buildInputs = [ SDL SDL_image libGLU libGL ];
1111
1212 prePatch = ''
1313 sed -e 's/char \*tok/const char \*tok/' -i graphics/window.cpp
pkgs/games/lincity/ng.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, autoreconfHook, jam, pkgconfig
2−, zlib, libxml2, libxslt, xorgproto, libX11, libGLU_combined, SDL
2+, zlib, libxml2, libxslt, xorgproto, libX11, libGLU, libGL, SDL
33, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs
44}:
55
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
2121 ];
2222
2323 buildInputs = [
24− zlib libxml2 libxslt xorgproto libX11 libGLU_combined SDL SDL_mixer SDL_image
24+ zlib libxml2 libxslt xorgproto libX11 libGLU libGL SDL SDL_mixer SDL_image
2525 SDL_ttf SDL_gfx physfs
2626 ];
2727
pkgs/games/mars/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, cmake, libGLU_combined, sfml, fribidi, taglib }:
1+{ stdenv, fetchgit, cmake, libGLU, libGL, sfml, fribidi, taglib }:
22stdenv.mkDerivation rec {
33 name = "mars-${version}-${rev}";
44 version = "0.7.5";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 inherit rev;
99 sha256 = "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh";
1010 };
11− buildInputs = [ cmake libGLU_combined sfml fribidi taglib ];
11+ buildInputs = [ cmake libGLU libGL sfml fribidi taglib ];
1212 patches = [
1313 ./unbind_fix.patch
1414 ./fix-gluortho2d.patch
pkgs/games/minetest/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, irrlicht, libpng, bzip2, curl, libogg, jsoncpp
2−, libjpeg, libXxf86vm, libGLU_combined, openal, libvorbis, sqlite, luajit
2+, libjpeg, libXxf86vm, libGLU, libGL, openal, libvorbis, sqlite, luajit
33, freetype, gettext, doxygen, ncurses, graphviz, xorg
44, leveldb, postgresql, hiredis
55}:
@@ -47,7 +47,7 @@ let
4747 buildInputs = [
4848 irrlicht luajit jsoncpp gettext freetype sqlite curl bzip2 ncurses
4949 ] ++ optionals buildClient [
50− libpng libjpeg libGLU_combined openal libogg libvorbis xorg.libX11 libXxf86vm
50+ libpng libjpeg libGLU libGL openal libogg libvorbis xorg.libX11 libXxf86vm
5151 ] ++ optional buildServer [
5252 leveldb postgresql hiredis
5353 ];
pkgs/games/naev/default.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis
2−, libpng, libGLU_combined, makeWrapper, zlib, freetype }:
2+, libpng, libGLU, libGL, makeWrapper, zlib, freetype }:
33
44let
55 pname = "naev";
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919 sha256 = "0gahi91lmpra0wvxsz49zwwb28q9w2v1s3y7r70252hq6v80kanb";
2020 };
2121
22− buildInputs = [ SDL SDL_mixer openal libxml2 libvorbis libpng libGLU_combined zlib freetype ];
22+ buildInputs = [ SDL SDL_mixer openal libxml2 libvorbis libpng libGLU libGL zlib freetype ];
2323
2424 nativeBuildInputs = [ pkgconfig makeWrapper ];
2525
pkgs/games/newtonwars/default.nix+4−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, makeWrapper, freeglut, libGLU_combined }:
1+{ stdenv, fetchFromGitHub, makeWrapper, freeglut, libGLU, libGL }:
22
33stdenv.mkDerivation {
44 pname = "newtonwars";
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
1111 sha256 = "0g63fwfcdxxlnqlagj1fb8ngm385gmv8f7p8b4r1z5cny2znxdvs";
1212 };
1313
14− buildInputs = [ makeWrapper freeglut libGLU_combined ];
14+ buildInputs = [ makeWrapper freeglut libGL libGLU ];
1515
1616 patchPhase = ''
1717 sed -i "s;font24.raw;$out/share/font24.raw;g" display.c
@@ -26,7 +26,8 @@ stdenv.mkDerivation {
2626
2727 wrapProgram $out/bin/nw \
2828 --prefix LD_LIBRARY_PATH ":" ${freeglut}/lib \
29− --prefix LD_LIBRARY_PATH ":" ${libGLU_combined}/lib
29+ --prefix LD_LIBRARY_PATH ":" ${libGLU}/lib \
30+ --prefix LD_LIBRARY_PATH ":" ${libGL}/lib
3031 '';
3132
3233 meta = with stdenv.lib; {
pkgs/games/nexuiz/default.nix+2−2
@@ -3,7 +3,7 @@
33 unzip, zlib, curl, libjpeg, libpng, libvorbis, libtheora
44, libogg, libmodplug
55, # glx
6− libX11, libGLU_combined, libXpm, libXext, libXxf86vm, libXxf86dga, alsaLib
6+ libX11, libGLU, libGL, libXpm, libXext, libXxf86vm, libXxf86dga, alsaLib
77, # sdl
88 SDL
99}:
@@ -25,7 +25,7 @@ in stdenv.mkDerivation {
2525 # required for both
2626 unzip
2727 # glx
28− libX11 libGLU_combined libXpm libXext libXxf86vm libXxf86dga alsaLib
28+ libX11 libGLU libGL libXpm libXext libXxf86vm libXxf86dga alsaLib
2929 # sdl
3030 SDL
3131 ];
pkgs/games/openrw/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, cmake, sfml, libGLU_combined, bullet, glm, libmad, xlibsWrapper, openal
1+{ stdenv, fetchgit, cmake, sfml, libGLU, libGL, bullet, glm, libmad, xlibsWrapper, openal
22, SDL2, boost, ffmpeg, Cocoa, OpenAL }:
33
44stdenv.mkDerivation {
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
1515 nativeBuildInputs = [ cmake ];
1616
1717 buildInputs = [
18− sfml libGLU_combined bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg
18+ sfml libGLU libGL bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg
1919 ] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
2020
2121 meta = with stdenv.lib; {
pkgs/games/openxcom/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchFromGitHub, cmake, libGLU_combined, zlib, openssl, libyamlcpp, boost
1+{stdenv, fetchFromGitHub, cmake, libGLU, libGL, zlib, openssl, libyamlcpp, boost
22, SDL, SDL_image, SDL_mixer, SDL_gfx }:
33
44let version = "1.0.0.2019.10.18"; in
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
1313 };
1414
1515 nativeBuildInputs = [ cmake ];
16− buildInputs = [ SDL SDL_gfx SDL_image SDL_mixer boost libyamlcpp libGLU_combined openssl zlib ];
16+ buildInputs = [ SDL SDL_gfx SDL_image SDL_mixer boost libyamlcpp libGLU libGL openssl zlib ];
1717
1818 meta = {
1919 description = "Open source clone of UFO: Enemy Unknown";
pkgs/games/pingus/default.nix+2−2
@@ -1,5 +1,5 @@
11{stdenv, fetchurl, fetchpatch, scons, SDL, SDL_image, boost, libpng, SDL_mixer
2−, pkgconfig, libGLU_combined}:
2+, pkgconfig, libGLU, libGL}:
33let
44 s = # Generated upstream information
55 {
@@ -14,7 +14,7 @@ in
1414stdenv.mkDerivation {
1515 inherit (s) name version;
1616 nativeBuildInputs = [ pkgconfig ];
17− buildInputs = [scons SDL SDL_image boost libpng SDL_mixer libGLU_combined];
17+ buildInputs = [scons SDL SDL_image boost libpng SDL_mixer libGLU libGL];
1818 src = fetchurl {
1919 inherit (s) url sha256;
2020 };
pkgs/games/pioneer/default.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchFromGitHub, stdenv, cmake, pkgconfig, curl, libsigcxx, SDL2
2−, SDL2_image, freetype, libvorbis, libpng, assimp, libGLU_combined
2+, SDL2_image, freetype, libvorbis, libpng, assimp, libGLU, libGL
33, glew
44}:
55
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818
1919 buildInputs = [
2020 curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng
21− assimp libGLU_combined glew
21+ assimp libGLU libGL glew
2222 ];
2323
2424 preConfigure = ''
pkgs/games/prboom/default.nix+5−2
@@ -1,8 +1,11 @@
11{ stdenv, fetchurl, SDL, SDL_mixer, SDL_net
2−, libGLU_combined ? assert false; null
2+, libGLU ? null
3+, libGL ? null
34, useOpenGL ? stdenv.hostPlatform == stdenv.buildPlatform
45}:
56
7+assert useOpenGL -> libGL != null && libGLU != null;
8+
69stdenv.mkDerivation rec {
710 name = "prboom-2.5.0";
811 src = fetchurl {
@@ -11,7 +14,7 @@ stdenv.mkDerivation rec {
1114 };
1215
1316 buildInputs = [ SDL SDL_mixer SDL_net ]
14− ++ stdenv.lib.optional useOpenGL libGLU_combined;
17+ ++ stdenv.lib.optionals useOpenGL [ libGL libGLU ];
1518
1619 doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
1720
pkgs/games/privateer/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchsvn, boost, cmake, ffmpeg, freeglut, glib,
22 gtk2, libjpeg, libpng, libpthreadstubs, libvorbis, libXau, libXdmcp,
3− libXmu, libGLU_combined, openal, pixman, pkgconfig, python27, SDL }:
3+ libXmu, libGLU, libGL, openal, pixman, pkgconfig, python27, SDL }:
44
55stdenv.mkDerivation {
66 name = "privateer-1.03";
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
1414
1515 buildInputs =
1616 [ boost cmake ffmpeg freeglut glib gtk2 libjpeg libpng
17− libpthreadstubs libvorbis libXau libXdmcp libXmu libGLU_combined openal
17+ libpthreadstubs libvorbis libXau libXdmcp libXmu libGLU libGL openal
1818 pixman pkgconfig python27 SDL ];
1919
2020 patches = [ ./0001-fix-VSFile-constructor.patch ];
pkgs/games/residualvm/default.nix+3−3
@@ -1,9 +1,9 @@
11{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
22, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
3−, openglSupport ? libGLSupported, libGLU_combined ? null
3+, openglSupport ? libGLSupported, libGLU, libGL ? null
44}:
55
6−assert openglSupport -> libGLU_combined != null;
6+assert openglSupport -> libGL != null && libGLU != null;
77
88with stdenv.lib;
99
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717 };
1818
1919 buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
20− ++ optional openglSupport libGLU_combined;
20+ ++ optionals openglSupport [ libGL libGLU ];
2121
2222 configureFlags = [ "--enable-all-engines" ];
2323
pkgs/games/rigsofrods/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU_combined, boost,
1+{ fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU, libGL, boost,
22 pkgconfig, libuuid, openal, ogre, ois, curl, gtk2, mygui, unzip,
33 angelscript, ogrepaged, mysocketw, libxcb
44 }:
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
2626 '';
2727
2828 nativeBuildInputs = [ pkgconfig ];
29− buildInputs = [ wxGTK30 freeimage cmake zziplib libGLU_combined boost
29+ buildInputs = [ wxGTK30 freeimage cmake zziplib libGLU libGL boost
3030 libuuid openal ogre ois curl gtk2 mygui unzip angelscript
3131 ogrepaged mysocketw libxcb ];
3232
pkgs/games/scorched3d/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libGLU_combined, glew, pkgconfig, openalSoft, freealut, wxGTK, libogg
1+{ stdenv, fetchurl, libGLU, libGL, glew, pkgconfig, openalSoft, freealut, wxGTK, libogg
22, freetype, libvorbis, fftwSinglePrec, SDL, SDL_net, expat, libjpeg, libpng }:
33
44stdenv.mkDerivation rec {
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 buildInputs =
13− [ libGLU_combined glew openalSoft freealut wxGTK libogg freetype libvorbis
13+ [ libGLU libGL glew openalSoft freealut wxGTK libogg freetype libvorbis
1414 SDL SDL_net expat libjpeg libpng fftwSinglePrec
1515 ];
1616
pkgs/games/scummvm/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, nasm
2−, alsaLib, curl, flac, fluidsynth, freetype, libjpeg, libmad, libmpeg2, libogg, libvorbis, libGLU_combined, SDL2, zlib
2+, alsaLib, curl, flac, fluidsynth, freetype, libjpeg, libmad, libmpeg2, libogg, libvorbis, libGLU, libGL, SDL2, zlib
33}:
44
55stdenv.mkDerivation rec {
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 nativeBuildInputs = [ nasm ];
1515
1616 buildInputs = [
17− alsaLib curl freetype flac fluidsynth libjpeg libmad libmpeg2 libogg libvorbis libGLU_combined SDL2 zlib
17+ alsaLib curl freetype flac fluidsynth libjpeg libmad libmpeg2 libogg libvorbis libGLU libGL SDL2 zlib
1818 ];
1919
2020 dontDisableStatic = true;
pkgs/games/soi/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake
2−, boost, eigen2, lua, luabind, libGLU_combined, SDL }:
2+, boost, eigen2, lua, luabind, libGLU, libGL, SDL }:
33
44stdenv.mkDerivation rec {
55 pname = "soi";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 nativeBuildInputs = [ cmake ];
15− buildInputs = [ boost lua luabind libGLU_combined SDL ];
15+ buildInputs = [ boost lua luabind libGLU libGL SDL ];
1616
1717 cmakeFlags = [
1818 "-DEIGEN_INCLUDE_DIR=${eigen2}/include/eigen2"
pkgs/games/space-orbit/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl
2−, libGLU_combined, libXi, libXt, libXext, libX11, libXmu, freeglut
2+, libGLU, libGL, libXi, libXt, libXext, libX11, libXmu, freeglut
33}:
44
55stdenv.mkDerivation rec {
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
77 version = "1.01";
88 patchversion = "9";
99
10− buildInputs = [ libGLU_combined libXi libXt libXext libX11 libXmu freeglut ];
10+ buildInputs = [ libGLU libGL libXi libXt libXext libX11 libXmu freeglut ];
1111
1212 src = fetchurl {
1313 url = "mirror://debian/pool/main/s/space-orbit/space-orbit_${version}.orig.tar.gz";
pkgs/games/speed-dreams/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, libGLU_combined, freeglut, libX11, plib, openal, freealut, libXrandr, xorgproto,
1+{ fetchurl, stdenv, libGLU, libGL, freeglut, libX11, plib, openal, freealut, libXrandr, xorgproto,
22libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, openscenegraph, expat,
33libpng, zlib, bash, SDL2, enet, libjpeg, cmake, pkgconfig, libvorbis, runtimeShell, curl }:
44
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
5858
5959 nativeBuildInputs = [ pkgconfig cmake ];
6060
61− buildInputs = [ libpng libGLU_combined freeglut libX11 plib openal freealut libXrandr xorgproto
61+ buildInputs = [ libpng libGLU libGL freeglut libX11 plib openal freealut libXrandr xorgproto
6262 libXext libSM libICE libXi libXt libXrender libXxf86vm zlib bash expat
6363 SDL2 enet libjpeg openscenegraph libvorbis curl ];
6464
pkgs/games/spring/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
2−, openal, libvorbis, glew, freetype, xorg, SDL2, libGLU_combined
2+, openal, libvorbis, glew, freetype, xorg, SDL2, libGLU, libGL
33, asciidoc, libxslt, docbook_xsl, docbook_xsl_ns, curl, makeWrapper
44, jdk ? null, python ? null, systemd, libunwind, which, minizip
55, withAI ? true # support for AI Interfaces and Skirmish AIs
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
3030 "-DPREFER_STATIC_LIBS:BOOL=OFF"];
3131
3232 buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL2
33− xorg.libX11 xorg.libXcursor libGLU_combined glew asciidoc libxslt docbook_xsl curl makeWrapper
33+ xorg.libX11 xorg.libXcursor libGLU libGL glew asciidoc libxslt docbook_xsl curl makeWrapper
3434 docbook_xsl_ns systemd libunwind which minizip ]
3535 ++ stdenv.lib.optional withAI jdk
3636 ++ stdenv.lib.optional withAI python;
pkgs/games/stardust/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, zlib, libtiff, libxml2, SDL, xorgproto, libX11
2−, libXi, libXmu, libXext, libGLU_combined }:
2+, libXi, libXmu, libXext, libGLU, libGL }:
33
44stdenv.mkDerivation rec {
55 pname = "stardust";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212
1313 buildInputs = [
1414 zlib libtiff libxml2 SDL xorgproto libX11 libXi
15− libXmu libXext libGLU_combined
15+ libXmu libXext libGLU libGL
1616 ];
1717
1818 installFlags = [ "bindir=\${out}/bin" ];
pkgs/games/super-tux-kart/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, fetchsvn, cmake, pkgconfig
2−, openal, freealut, libGLU_combined, libvorbis, libogg, gettext, curl, freetype
2+, openal, freealut, libGLU, libGL, libvorbis, libogg, gettext, curl, freetype
33, fribidi, libtool, bluez, libjpeg, libpng, zlib, libX11, libXrandr, enet }:
44
55let
@@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
2929
3030 buildInputs = [
3131 libX11 libXrandr
32− openal freealut libGLU_combined libvorbis libogg zlib freetype
32+ openal freealut libGLU libGL libvorbis libogg zlib freetype
3333 curl fribidi bluez libjpeg libpng enet
3434 ];
3535
pkgs/games/supertux/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, pkgconfig, SDL2, SDL2_image , curl
2−, libogg, libvorbis, libGLU_combined, openal, boost, glew
2+, libogg, libvorbis, libGLU, libGL, openal, boost, glew
33, libpng, freetype
44}:
55
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414
1515 nativeBuildInputs = [ pkgconfig cmake ];
1616
17− buildInputs = [ SDL2 SDL2_image curl libogg libvorbis libGLU_combined openal boost glew
17+ buildInputs = [ SDL2 SDL2_image curl libogg libvorbis libGLU libGL openal boost glew
1818 libpng freetype
1919 ];
2020
pkgs/games/tdm/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, binutils-unwrapped, scons, gnum4, p7zip, glibc_multi, mesa
2−, xorg, libGLU_combined, openal
2+, xorg, libGLU, libGL, openal
33, lib, makeWrapper, makeDesktopItem }:
44
55let
@@ -29,7 +29,7 @@ in stdenv.mkDerivation {
2929 buildInputs = [
3030 glibc_multi mesa.dev xorg.libX11.dev openal
3131 xorg.libXext.dev xorg.libXxf86vm.dev
32− libGLU_combined
32+ libGL libGLU
3333 ];
3434 unpackPhase = ''
3535 7z x $src
@@ -86,7 +86,7 @@ EOF
8686 '';
8787
8888 postInstall = ''
89− wrapProgram $out/bin/tdm --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGLU_combined ]}
89+ wrapProgram $out/bin/tdm --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL libGLU ]}
9090 '';
9191
9292 enableParallelBuilding = true;
pkgs/games/tibia/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, glibc, libX11, runtimeShell, libGLU_combined }:
1+{ stdenv, fetchurl, glibc, libX11, runtimeShell, libGLU, libGL }:
22
33with stdenv.lib;
44stdenv.mkDerivation {
@@ -24,7 +24,7 @@ stdenv.mkDerivation {
2424 cp -r * $out/res
2525
2626 patchelf --set-interpreter ${glibc.out}/lib/ld-linux.so.2 \
27− --set-rpath ${stdenv.lib.makeLibraryPath [ stdenv.cc.cc libX11 libGLU_combined ]} \
27+ --set-rpath ${stdenv.lib.makeLibraryPath [ stdenv.cc.cc libX11 libGLU libGL ]} \
2828 "$out/res/Tibia"
2929
3030 # We've patchelf'd the files. The main ‘Tibia’ binary is a bit
pkgs/games/trackballs/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_ttf, gettext, zlib, SDL2_mixer, SDL2_image, guile, libGLU_combined }:
1+{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_ttf, gettext, zlib, SDL2_mixer, SDL2_image, guile, libGLU, libGL }:
22
33with stdenv.lib;
44
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 sha256 = "1yjzz50r57aahy7wcbsmhrd40abzyriq40j49225ya7m9g28vmgl";
1414 };
1515
16− buildInputs = [ cmake zlib SDL2 SDL2_ttf SDL2_mixer SDL2_image guile gettext libGLU_combined ];
16+ buildInputs = [ cmake zlib SDL2 SDL2_ttf SDL2_mixer SDL2_image guile gettext libGLU libGL ];
1717
1818 meta = {
1919 homepage = https://trackballs.github.io/;
pkgs/games/tremulous/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, unzip, libGLU_combined, libX11, SDL, openal, runtimeShell }:
1+{ stdenv, fetchurl, unzip, libGLU, libGL, libX11, SDL, openal, runtimeShell }:
22stdenv.mkDerivation rec {
33 pname = "tremulous";
44 version = "1.1.0";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 url = "http://releases.mercenariesguild.net/tremded/mg_tremded_source_1.01.tar.gz";
1616 sha256 = "1njrqlhzjvy9myddzkagszwdcf3m4h08wip888w2rmbshs6kz6ql";
1717 };
18− buildInputs = [ unzip libGLU_combined libX11 SDL openal ];
18+ buildInputs = [ unzip libGLU libGL libX11 SDL openal ];
1919 unpackPhase = ''
2020 unzip $src1
2121 cd tremulous
pkgs/games/trigger/default.nix+2−2
@@ -1,5 +1,5 @@
11{ fetchurl, stdenv, runtimeShell
2−, SDL2, freealut, SDL2_image, openal, physfs, zlib, libGLU_combined, glew }:
2+, SDL2, freealut, SDL2_image, openal, physfs, zlib, libGLU, libGL, glew }:
33
44stdenv.mkDerivation rec {
55 name = "trigger-rally-0.6.6";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 sha256 = "08qa2f2s8zyn42ff6jb1gsi64d916020ixkzvl16kbb88rabqra8";
1010 };
1111
12− buildInputs = [ SDL2 freealut SDL2_image openal physfs zlib libGLU_combined glew ];
12+ buildInputs = [ SDL2 freealut SDL2_image openal physfs zlib libGLU libGL glew ];
1313
1414 preConfigure = ''
1515 sed s,/usr/local,$out, -i bin/*defs
pkgs/games/ufoai/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libtheora, xvidcore, libGLU_combined, SDL, SDL_ttf, SDL_mixer
1+{ stdenv, fetchurl, libtheora, xvidcore, libGLU, libGL, SDL, SDL_ttf, SDL_mixer
22, curl, libjpeg, libpng, gettext, cunit, enableEditor?false }:
33
44stdenv.mkDerivation rec {
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 ++ stdenv.lib.optional enableEditor "--enable-uforadiant";
2020
2121 buildInputs = [
22− libtheora xvidcore libGLU_combined SDL SDL_ttf SDL_mixer
22+ libtheora xvidcore libGLU libGL SDL SDL_ttf SDL_mixer
2323 curl libjpeg libpng gettext cunit
2424 ];
2525
pkgs/games/ultimatestunts/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, SDL, libGLU_combined, SDL_image, freealut, openal, libvorbis,
1+{stdenv, fetchurl, SDL, libGLU, libGL, SDL_image, freealut, openal, libvorbis,
22pkgconfig}:
33
44stdenv.mkDerivation {
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
99 };
1010
1111 nativeBuildInputs = [ pkgconfig ];
12− buildInputs = [ SDL libGLU_combined SDL_image freealut openal libvorbis ];
12+ buildInputs = [ SDL libGLU libGL SDL_image freealut openal libvorbis ];
1313
1414 postPatch = ''
1515 sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cpp')
pkgs/games/ultrastardx/default.nix+2−2
@@ -1,13 +1,13 @@
11{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig
22, lua, fpc, pcre, portaudio, freetype, libpng
33, SDL2, SDL2_image, SDL2_gfx, SDL2_mixer, SDL2_net, SDL2_ttf
4−, ffmpeg, sqlite, zlib, libX11, libGLU_combined }:
4+, ffmpeg, sqlite, zlib, libX11, libGLU, libGL }:
55
66let
77 sharedLibs = [
88 pcre portaudio freetype
99 SDL2 SDL2_image SDL2_gfx SDL2_mixer SDL2_net SDL2_ttf
10− sqlite lua zlib libX11 libGLU_combined ffmpeg
10+ sqlite lua zlib libX11 libGLU libGL ffmpeg
1111 ];
1212
1313in stdenv.mkDerivation rec {
pkgs/games/uqm/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, pkgconfig, libGLU_combined
1+{ stdenv, lib, fetchurl, pkgconfig, libGLU, libGL
22, SDL, SDL_image, libpng, libvorbis, libogg, libmikmod
33
44, use3DOVideos ? false, requireFile ? null, writeText ? null
@@ -51,7 +51,7 @@ in stdenv.mkDerivation rec {
5151 };
5252
5353 nativeBuildInputs = [ pkgconfig ];
54− buildInputs = [ SDL SDL_image libpng libvorbis libogg libmikmod libGLU_combined ];
54+ buildInputs = [ SDL SDL_image libpng libvorbis libogg libmikmod libGLU libGL ];
5555
5656 postUnpack = ''
5757 mkdir -p uqm-${version}/content/packages
pkgs/games/urbanterror/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, unzip, SDL, libGLU_combined, openal, curl, libXxf86vm }:
1+{ stdenv, fetchurl, unzip, SDL, libGLU, libGL, openal, curl, libXxf86vm }:
22
33stdenv.mkDerivation rec {
44 pname = "urbanterror";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 })
1616 ];
1717
18− buildInputs = [ unzip SDL libGLU_combined openal curl libXxf86vm ];
18+ buildInputs = [ unzip SDL libGL libGLU openal curl libXxf86vm ];
1919 sourceRoot = "ioq3-for-UrbanTerror-4-release-${version}";
2020
2121 configurePhase = ''
@@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
5151 postFixup = ''
5252 p=$out/opt/urbanterror/Quake3-UrT
5353 cur_rpath=$(patchelf --print-rpath $p)
54− patchelf --set-rpath $cur_rpath:${libGLU_combined}/lib $p
54+ patchelf --set-rpath $cur_rpath:${libGL}/lib:${libGLU}/lib $p
5555 '';
5656
5757 hardeningDisable = [ "format" ];
pkgs/games/vdrift/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, fetchsvn, pkgconfig, scons, libGLU_combined, SDL2, SDL2_image
1+{ stdenv, fetchFromGitHub, fetchsvn, pkgconfig, scons, libGLU, libGL, SDL2, SDL2_image
22, libvorbis, bullet, curl, gettext, writeTextFile
33
44, data ? fetchsvn {
@@ -21,7 +21,7 @@ let
2121 };
2222
2323 nativeBuildInputs = [ pkgconfig ];
24− buildInputs = [ scons libGLU_combined SDL2 SDL2_image libvorbis bullet curl gettext ];
24+ buildInputs = [ scons libGLU libGL SDL2 SDL2_image libvorbis bullet curl gettext ];
2525
2626 patches = [ ./0001-Ignore-missing-data-for-installation.patch ];
2727
pkgs/games/voxelands/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, irrlicht, libpng, bzip2, sqlite
2−, libjpeg, libXxf86vm, libGLU_combined, openal, libvorbis, xlibsWrapper, pkgconfig }:
2+, libjpeg, libXxf86vm, libGLU, libGL, openal, libvorbis, xlibsWrapper, pkgconfig }:
33
44stdenv.mkDerivation rec {
55 pname = "voxelands";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818
1919 buildInputs = [
2020 cmake irrlicht libpng bzip2 libjpeg sqlite
21− libXxf86vm libGLU_combined openal libvorbis xlibsWrapper pkgconfig
21+ libXxf86vm libGLU libGL openal libvorbis xlibsWrapper pkgconfig
2222 ];
2323
2424 meta = with stdenv.lib; {
pkgs/games/worldofgoo/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, requireFile
2−, libX11, libXext, libXau, libxcb, libXdmcp , SDL, SDL_mixer, libvorbis, libGLU_combined
2+, libX11, libXext, libXau, libxcb, libXdmcp , SDL, SDL_mixer, libvorbis, libGLU, libGL
33, runtimeShell
44, demo ? false }:
55
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
4747
4848 # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64
4949 libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc stdenv.cc.libc ]
50− + ":" + stdenv.lib.makeLibraryPath [libX11 libXext libXau libxcb libXdmcp SDL SDL_mixer libvorbis libGLU_combined ]
50+ + ":" + stdenv.lib.makeLibraryPath [libX11 libXext libXau libxcb libXdmcp SDL SDL_mixer libvorbis libGLU libGL ]
5151 + ":" + stdenv.cc.cc + "/lib64";
5252
5353 installPhase = ''
pkgs/games/xmoto/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
2−, libpng, freeglut, libGLU_combined, SDL, SDL_mixer, SDL_image, SDL_net
2+, libpng, freeglut, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_net
33, SDL_ttf, lua5, ode, libxdg_basedir, libxml2 }:
44
55stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 buildInputs = [
1515 chipmunk sqlite curl zlib bzip2 libjpeg libpng
16− freeglut libGLU_combined SDL SDL_mixer SDL_image SDL_net SDL_ttf
16+ freeglut libGLU libGL SDL SDL_mixer SDL_image SDL_net SDL_ttf
1717 lua5 ode libxdg_basedir libxml2
1818 ];
1919
pkgs/games/xonotic/default.nix+2−2
@@ -2,7 +2,7 @@
22, # required for both
33 unzip, libjpeg, zlib, libvorbis, curl
44, # glx
5− libX11, libGLU_combined, libXpm, libXext, libXxf86vm, alsaLib
5+ libX11, libGLU, libGL, libXpm, libXext, libXxf86vm, alsaLib
66, # sdl
77 SDL2
88}:
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 # required for both
2020 unzip libjpeg
2121 # glx
22− libX11 libGLU_combined libXpm libXext libXxf86vm alsaLib
22+ libX11 libGLU libGL libXpm libXext libXxf86vm alsaLib
2323 # sdl
2424 SDL2
2525 zlib libvorbis curl
pkgs/games/xpilot/bloodspilot-client.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libX11, SDL, libGLU_combined, expat, zlib, SDL_ttf, SDL_image }:
1+{ stdenv, fetchurl, libX11, SDL, libGLU, libGL, expat, zlib, SDL_ttf, SDL_image }:
22
33stdenv.mkDerivation rec {
44 version = "1.5.0";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 buildInputs = [
13− libX11 SDL SDL_ttf SDL_image libGLU_combined expat zlib
13+ libX11 SDL SDL_ttf SDL_image libGLU libGL expat zlib
1414 ];
1515
1616 NIX_LDFLAGS = [ "-lX11" ];
pkgs/games/xpilot/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libX11, libSM, SDL, libGLU_combined, expat, SDL_ttf
1+{ stdenv, fetchurl, libX11, libSM, SDL, libGLU, libGL, expat, SDL_ttf
22, SDL_image, zlib, libXxf86misc }:
33stdenv.mkDerivation rec {
44 pname = "xpilot-ng";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 sha256 = "02a7pnp88kh88fzda5q8mzlckk6y9r5fw47j00h26wbsfly0k1zj";
99 };
1010 buildInputs = [
11− libX11 libSM SDL SDL_ttf SDL_image libGLU_combined expat zlib libXxf86misc
11+ libX11 libSM SDL SDL_ttf SDL_image libGLU libGL expat zlib libXxf86misc
1212 ];
1313 meta = with stdenv.lib; {
1414 description = "A multiplayer X11 space combat game";
pkgs/misc/emulators/atari800/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl
2−, unzip, zlib, SDL, readline, libGLU_combined, libX11 }:
2+, unzip, zlib, SDL, readline, libGLU, libGL, libX11 }:
33
44with stdenv.lib;
55stdenv.mkDerivation rec{
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec{
1111 sha256 = "1dcynsf8i52y7zyg62bkbhl3rdd22ss95zs2s9jm4y5jvn4vks88";
1212 };
1313
14− buildInputs = [ unzip zlib SDL readline libGLU_combined libX11 ];
14+ buildInputs = [ unzip zlib SDL readline libGLU libGL libX11 ];
1515
1616 configureFlags = [
1717 "--target=default"
pkgs/misc/emulators/attract-mode/default.nix+2−2
@@ -1,5 +1,5 @@
11{ expat, fetchFromGitHub, ffmpeg, fontconfig, freetype, libarchive, libjpeg
2−, libGLU_combined, openal, pkgconfig, sfml, stdenv, zlib
2+, libGLU, libGL, openal, pkgconfig, sfml, stdenv, zlib
33}:
44
55stdenv.mkDerivation rec {
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020 '';
2121
2222 buildInputs = [
23− expat ffmpeg fontconfig freetype libarchive libjpeg libGLU_combined openal sfml zlib
23+ expat ffmpeg fontconfig freetype libarchive libjpeg libGLU libGL openal sfml zlib
2424 ];
2525
2626 meta = with stdenv.lib; {
pkgs/misc/emulators/dolphin-emu/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchpatch, pkgconfig, cmake, bluez, ffmpeg, libao, gtk2, glib
2−, libGLU_combined , gettext, libpthreadstubs, libXrandr, libXext, readline
2+, libGLU, libGL , gettext, libpthreadstubs, libXrandr, libXext, readline
33, openal , libXdmcp, portaudio, fetchFromGitHub, libusb, libevdev
44, wxGTK30, soundtouch, miniupnpc, mbedtls, curl, lzo, sfml
55, libpulseaudio ? null }:
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
4545 enableParallelBuilding = true;
4646
4747 nativeBuildInputs = [ pkgconfig ];
48− buildInputs = [ cmake bluez ffmpeg libao libGLU_combined gtk2 glib
48+ buildInputs = [ cmake bluez ffmpeg libao libGLU libGL gtk2 glib
4949 gettext libpthreadstubs libXrandr libXext readline openal
5050 libevdev libXdmcp portaudio libusb libpulseaudio
5151 libevdev libXdmcp portaudio libusb libpulseaudio
pkgs/misc/emulators/dolphin-emu/master.nix+2−2
@@ -1,5 +1,5 @@
11{ lib, stdenv, fetchFromGitHub, makeDesktopItem, pkgconfig, cmake
2−, wrapQtAppsHook, qtbase, bluez, ffmpeg, libao, libGLU_combined, pcre, gettext
2+, wrapQtAppsHook, qtbase, bluez, ffmpeg, libao, libGLU, libGL, pcre, gettext
33, libXrandr, libusb, lzo, libpthreadstubs, libXext, libXxf86vm, libXinerama
44, libSM, libXdmcp, readline, openal, udev, libevdev, portaudio, curl, alsaLib
55, miniupnpc, enet, mbedtls, soundtouch, sfml
@@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
3535 ++ lib.optional stdenv.isLinux wrapQtAppsHook;
3636
3737 buildInputs = [
38− curl ffmpeg libao libGLU_combined pcre gettext libpthreadstubs libpulseaudio
38+ curl ffmpeg libao libGLU libGL pcre gettext libpthreadstubs libpulseaudio
3939 libXrandr libXext libXxf86vm libXinerama libSM readline openal libXdmcp lzo
4040 portaudio libusb libpng hidapi miniupnpc enet mbedtls soundtouch sfml
4141 qtbase
pkgs/misc/emulators/dosbox/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, makeDesktopItem, SDL, SDL_net, SDL_sound, libGLU_combined, libpng, graphicsmagick }:
1+{ stdenv, lib, fetchurl, makeDesktopItem, SDL, SDL_net, SDL_sound, libGLU, libGL, libpng, graphicsmagick }:
22
33stdenv.mkDerivation rec {
44 name = "dosbox-0.74-3";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010
1111 hardeningDisable = [ "format" ];
1212
13− buildInputs = [ SDL SDL_net SDL_sound libGLU_combined libpng ];
13+ buildInputs = [ SDL SDL_net SDL_sound libGLU libGL libpng ];
1414
1515 nativeBuildInputs = [ graphicsmagick ];
1616
pkgs/misc/emulators/emulationstation/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, pkgconfig, cmake, curl, boost, eigen
2−, freeimage, freetype, libGLU_combined, SDL2, alsaLib, libarchive }:
2+, freeimage, freetype, libGLU, libGL, SDL2, alsaLib, libarchive }:
33
44stdenv.mkDerivation {
55 pname = "emulationstation";
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
1313 };
1414
1515 nativeBuildInputs = [ pkgconfig ];
16− buildInputs = [ cmake alsaLib boost curl eigen freeimage freetype libarchive libGLU_combined SDL2 ];
16+ buildInputs = [ cmake alsaLib boost curl eigen freeimage freetype libarchive libGLU libGL SDL2 ];
1717
1818 buildPhase = "cmake . && make";
1919 installPhase = ''
pkgs/misc/emulators/epsxe/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, alsaLib, curl, gdk-pixbuf, glib, gtk3, libGLU_combined,
1+{ stdenv, fetchurl, alsaLib, curl, gdk-pixbuf, glib, gtk3, libGLU, libGL,
22 libX11, openssl_1_0_2, ncurses5, SDL, SDL_ttf, unzip, zlib, wrapGAppsHook, autoPatchelfHook }:
33
44with stdenv.lib;
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
2727 glib
2828 gtk3
2929 libX11
30− libGLU_combined
30+ libGLU libGL
3131 openssl_1_0_2
3232 ncurses5
3333 SDL
pkgs/misc/emulators/fakenes/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, allegro, openal, libGLU_combined, zlib, hawknl, freeglut, libX11,
1+{stdenv, fetchurl, allegro, openal, libGLU, libGL, zlib, hawknl, freeglut, libX11,
22 libXxf86vm, libXcursor, libXpm }:
33
44stdenv.mkDerivation {
@@ -8,7 +8,7 @@ stdenv.mkDerivation {
88 sha256 = "026h67s4pzc1vma59pmzk02iy379255qbai2q74wln9bxqcpniy4";
99 };
1010
11− buildInputs = [ allegro openal libGLU_combined zlib hawknl freeglut libX11
11+ buildInputs = [ allegro openal libGLU libGL zlib hawknl freeglut libX11
1212 libXxf86vm libXcursor libXpm ];
1313
1414 hardeningDisable = [ "format" ];
pkgs/misc/emulators/fs-uae/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig
2−, gettext, gtk2, SDL2, zlib, glib, openal, libGLU_combined, lua, freetype, libmpeg2, zip }:
2+, gettext, gtk2, SDL2, zlib, glib, openal, libGLU, libGL, lua, freetype, libmpeg2, zip }:
33
44with stdenv.lib;
55stdenv.mkDerivation rec {
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 };
1414
1515 nativeBuildInputs = [ pkgconfig ];
16− buildInputs = [ gettext gtk2 SDL2 zlib glib openal libGLU_combined lua freetype libmpeg2 zip ];
16+ buildInputs = [ gettext gtk2 SDL2 zlib glib openal libGLU libGL lua freetype libmpeg2 zip ];
1717
1818 meta = {
1919 description = "An accurate, customizable Amiga Emulator";
pkgs/misc/emulators/gens-gs/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, gtk2, SDL, nasm, zlib, libpng, libGLU_combined }:
1+{ stdenv, fetchurl, pkgconfig, gtk2, SDL, nasm, zlib, libpng, libGLU, libGL }:
22
33stdenv.mkDerivation {
44 name = "gens-gs-7";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
99 };
1010
1111 nativeBuildInputs = [ pkgconfig ];
12− buildInputs = [ gtk2 SDL nasm zlib libpng libGLU_combined ];
12+ buildInputs = [ gtk2 SDL nasm zlib libpng libGLU libGL ];
1313
1414 # Work around build failures on recent GTK.
1515 # See http://ubuntuforums.org/showthread.php?p=10535837
pkgs/misc/emulators/higan/default.nix+2−2
@@ -2,7 +2,7 @@
22, p7zip, pkgconfig
33, libX11, libXv
44, udev
5−, libGLU_combined, SDL
5+, libGLU, libGL, SDL
66, libao, openal, libpulseaudio
77, gtk2, gtksourceview
88, runtimeShell }:
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
2424 postPatch = "sed '1i#include <cmath>' -i higan/fc/ppu/ppu.cpp";
2525
2626 buildInputs =
27− [ p7zip pkgconfig libX11 libXv udev libGLU_combined
27+ [ p7zip pkgconfig libX11 libXv udev libGLU libGL
2828 SDL libao openal libpulseaudio gtk2 gtksourceview ];
2929
3030 unpackPhase = ''
pkgs/misc/emulators/mednafen/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, freeglut, libGLU_combined, libcdio, libjack2
1+{ stdenv, fetchurl, pkgconfig, freeglut, libGLU, libGL, libcdio, libjack2
22, libsamplerate, libsndfile, libX11, SDL, SDL_net, zlib }:
33
44stdenv.mkDerivation rec {
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414
1515 buildInputs = [
1616 freeglut
17− libGLU_combined
17+ libGLU libGL
1818 libcdio
1919 libjack2
2020 libsamplerate
pkgs/misc/emulators/nestopia/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, pkgconfig, SDL2, alsaLib, gtk3
2−, makeWrapper, libGLU_combined, libarchive, libao, unzip, xdg_utils
2+, makeWrapper, libGLU, libGL, libarchive, libao, unzip, xdg_utils
33, epoxy, gdk-pixbuf, gnome3, wrapGAppsHook
44}:
55
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
2525 epoxy
2626 gtk3
2727 gdk-pixbuf
28− libGLU_combined
28+ libGLU libGL
2929 libarchive
3030 libao
3131 unzip
pkgs/misc/emulators/retroarch/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, which, pkgconfig, makeWrapper
2−, ffmpeg, libGLU_combined, freetype, libxml2, python3
2+, ffmpeg, libGLU, libGL, freetype, libxml2, python3
33, libobjc, AppKit, Foundation
44, alsaLib ? null
55, libdrm ? null
@@ -41,7 +41,7 @@ in stdenv.mkDerivation rec {
4141 nativeBuildInputs = [ pkgconfig ]
4242 ++ optional withVulkan [ makeWrapper ];
4343
44− buildInputs = [ ffmpeg freetype libxml2 libGLU_combined python3 SDL2 which ]
44+ buildInputs = [ ffmpeg freetype libxml2 libGLU libGL python3 SDL2 which ]
4545 ++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
4646 ++ optional withVulkan [ vulkan-loader ]
4747 ++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ]
pkgs/misc/emulators/vbam/default.nix+2−2
@@ -4,7 +4,7 @@
44, fetchFromGitHub
55, ffmpeg
66, gettext
7−, libGLU_combined
7+, libGLU, libGL
88, openal
99, pkgconfig
1010, SDL2
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929 cairo
3030 ffmpeg
3131 gettext
32− libGLU_combined
32+ libGLU libGL
3333 openal
3434 SDL2
3535 sfml
pkgs/misc/emulators/vice/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, libGLU_combined, libXaw
1+{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, libGLU, libGL, libXaw
22, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
33}:
44
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
1111 };
1212
13− buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline libGLU_combined
13+ buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline libGLU libGL
1414 pkgconfig gtk2 SDL autoreconfHook libXaw ];
1515 dontDisableStatic = true;
1616 configureFlags = [ "--enable-fullscreen --enable-gnomeui" ];
pkgs/misc/emulators/wine/base.nix+1−1
@@ -58,7 +58,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
5858 ++ lib.optionals openclSupport [ pkgs.opencl-headers pkgs.ocl-icd ]
5959 ++ lib.optionals xmlSupport [ pkgs.libxml2 pkgs.libxslt ]
6060 ++ lib.optionals tlsSupport [ pkgs.openssl pkgs.gnutls ]
61− ++ lib.optionals openglSupport [ pkgs.libGLU_combined pkgs.mesa.osmesa pkgs.libdrm ]
61+ ++ lib.optionals openglSupport [ pkgs.libGLU pkgs.libGL pkgs.mesa.osmesa pkgs.libdrm ]
6262 ++ lib.optionals stdenv.isDarwin (with pkgs.buildPackages.darwin.apple_sdk.frameworks; [
6363 CoreServices Foundation ForceFeedback AppKit OpenGL IOKit DiskArbitration Security
6464 ApplicationServices AudioToolbox CoreAudio AudioUnit CoreMIDI OpenAL OpenCL Cocoa Carbon
pkgs/misc/emulators/wxmupen64plus/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU_combined
1+{ stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU, libGL
22, wafHook }:
33
44stdenv.mkDerivation {
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
99 };
1010
1111 nativeBuildInputs = [ wafHook ];
12− buildInputs = [ python wxGTK29 SDL libX11 libGLU_combined ];
12+ buildInputs = [ python wxGTK29 SDL libX11 libGLU libGL ];
1313
1414 preConfigure = ''
1515 tar xf ${mupen64plus.src}
pkgs/misc/emulators/yabause/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, pkgconfig, qtbase, qt5, libGLU_combined
1+{ stdenv, fetchurl, cmake, pkgconfig, qtbase, qt5, libGLU, libGL
22, freeglut ? null, openal ? null, SDL2 ? null }:
33
44stdenv.mkDerivation rec {
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 };
1212
1313 nativeBuildInputs = [ cmake pkgconfig ];
14− buildInputs = [ qtbase qt5.qtmultimedia libGLU_combined freeglut openal SDL2 ];
14+ buildInputs = [ qtbase qt5.qtmultimedia libGLU libGL freeglut openal SDL2 ];
1515
1616 patches = [
1717 ./linkage-rwx-linux-elf.patch
pkgs/misc/emulators/zsnes/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchFromGitHub, nasm, SDL, zlib, libpng, ncurses, libGLU_combined
1+{stdenv, fetchFromGitHub, nasm, SDL, zlib, libpng, ncurses, libGLU, libGL
22, makeDesktopItem }:
33
44let
@@ -22,7 +22,7 @@ in stdenv.mkDerivation {
2222 sha256 = "1gy79d5wdaacph0cc1amw7mqm7i0716n6mvav16p1svi26iz193v";
2323 };
2424
25− buildInputs = [ nasm SDL zlib libpng ncurses libGLU_combined ];
25+ buildInputs = [ nasm SDL zlib libpng ncurses libGLU libGL ];
2626
2727 prePatch = ''
2828 for i in $(cat debian/patches/series); do
pkgs/misc/ghostscript/default.nix+5
@@ -47,6 +47,11 @@ stdenv.mkDerivation rec {
4747 patches = [
4848 ./urw-font-files.patch
4949 ./doc-no-ref.diff
50+ (fetchpatch {
51+ name = "CVE-2019-14869.patch";
52+ url = "https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=485904772c5f0aa1140032746e5a0abfc40f4cef";
53+ sha256 = "0z5gnvgpp0dlzgvpw9a1yan7qyycv3mf88l93fvb1kyay893rshp";
54+ })
5055 ];
5156
5257 outputs = [ "out" "man" "doc" ];
pkgs/misc/gnash/default.nix+7−5
@@ -6,7 +6,9 @@
66# renderers
77, enableAGG ? true, agg ? null
88, enableCairo ? false, cairo ? null
9−, enableOpenGL ? false, libGLU_combined ? null
9+, enableOpenGL ? false
10+, libGLU ? null
11+, libGL ? null
1012
1113# GUI toolkits
1214, enableGTK ? true, gtk2 ? null, gnome2 ? null
@@ -45,7 +47,7 @@ in
4547# renderers
4648assert enableAGG -> available agg;
4749assert enableCairo -> available cairo;
48−assert enableOpenGL -> available libGLU_combined;
50+assert enableOpenGL -> all available [ libGLU libGL ];
4951
5052# GUI toolkits
5153assert enableGTK -> all available [ gtk2 gnome2.gtkglext gnome2.GConf ];
@@ -57,7 +59,7 @@ assert enableFFmpeg -> available ffmpeg_2 ;
5759
5860# misc
5961assert enableJemalloc -> available jemalloc;
60−assert enableHwAccel -> available libGLU_combined;
62+assert enableHwAccel -> all available [ libGLU libGL ];
6163assert enablePlugins -> all available [ xulrunner npapi_sdk ];
6264
6365assert length toolkits == 0 -> throw "at least one GUI toolkit must be enabled";
@@ -85,11 +87,11 @@ stdenv.mkDerivation {
8587 libpng libjpeg giflib pango atk
8688 ] ++ optional enableAGG agg
8789 ++ optional enableCairo cairo
88− ++ optional enableOpenGL libGLU_combined
8990 ++ optional enableQt qt4
9091 ++ optional enableFFmpeg ffmpeg_2
9192 ++ optional enableJemalloc jemalloc
92− ++ optional enableHwAccel libGLU_combined
93+ ++ optional enableHwAccel [ libGL libGLU ]
94+ ++ optionals enableOpenGL [ libGL libGLU ]
9395 ++ optionals enablePlugins [ xulrunner npapi_sdk ]
9496 ++ optionals enableGTK [ gtk2 gnome2.gtkglext gnome2.GConf ];
9597
pkgs/misc/jackaudio/default.nix+4−5
@@ -1,5 +1,4 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
2−, fetchpatch
1+{ stdenv, fetchFromGitHub, pkgconfig, python3Packages, makeWrapper
32, bash, libsamplerate, libsndfile, readline, eigen, celt
43, wafHook
54# Darwin Dependencies
@@ -15,7 +14,7 @@
1514
1615with stdenv.lib;
1716let
18− inherit (python2Packages) python dbus-python;
17+ inherit (python3Packages) python dbus-python;
1918 shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;
2019
2120 libOnly = prefix == "lib";
@@ -28,13 +27,13 @@ let
2827in
2928stdenv.mkDerivation rec {
3029 name = "${prefix}jack2-${version}";
31− version = "1.9.13";
30+ version = "1.9.14";
3231
3332 src = fetchFromGitHub {
3433 owner = "jackaudio";
3534 repo = "jack2";
3635 rev = "v${version}";
37− sha256 = "1dnq75ylcv3npsyvzzkj0g8mdnzwis1whc2pk6s5hkcc1bgvv2xy";
36+ sha256 = "1prxg1l8wrxfp2mh7l4mvjvmml6816fciq1la88ylhwm1qnfvnax";
3837 };
3938
4039 nativeBuildInputs = [ pkgconfig python makeWrapper wafHook ];
pkgs/misc/screensavers/electricsheep/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, libav, lua5_1, curl
2−, libpng, xorg, pkgconfig, flam3, libgtop, boost, tinyxml, freeglut, libGLU_combined
2+, libpng, xorg, pkgconfig, flam3, libgtop, boost, tinyxml, freeglut, libGLU, libGL
33, glee }:
44
55stdenv.mkDerivation rec {
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717
1818 buildInputs = [
1919 wxGTK30 libav lua5_1 curl libpng xorg.libXrender
20− flam3 libgtop boost tinyxml freeglut libGLU_combined glee
20+ flam3 libgtop boost tinyxml freeglut libGLU libGL glee
2121 ];
2222
2323 preAutoreconf = ''
pkgs/misc/screensavers/rss-glx/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, pkgconfig, xlibsWrapper, libXext, libGLU_combined, imagemagick, libtiff, bzip2}:
1+{stdenv, fetchurl, pkgconfig, xlibsWrapper, libXext, libGLU, libGL, imagemagick, libtiff, bzip2}:
22
33stdenv.mkDerivation rec {
44 version = "0.9.1";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ libGLU_combined xlibsWrapper imagemagick libtiff bzip2 ];
13+ buildInputs = [ libGLU libGL xlibsWrapper imagemagick libtiff bzip2 ];
1414
1515 NIX_CFLAGS_COMPILE = "-I${imagemagick.dev}/include/ImageMagick";
1616 NIX_LDFLAGS= "-rpath ${libXext}/lib";
pkgs/misc/screensavers/xscreensaver/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, bc, perl, perlPackages, pam, libXext, libXScrnSaver, libX11
2−, libXrandr, libXmu, libXxf86vm, libXrender, libXxf86misc, libjpeg, libGLU_combined, gtk2
2+, libXrandr, libXmu, libXxf86vm, libXrender, libXxf86misc, libjpeg, libGLU, libGL, gtk2
33, libxml2, libglade, intltool, xorg, makeWrapper, gle
44, forceInstallAllHacks ? false
55}:
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 };
1515
1616 buildInputs =
17− [ pkgconfig bc perl libjpeg libGLU_combined gtk2 libxml2 libglade pam
17+ [ pkgconfig bc perl libjpeg libGLU libGL gtk2 libxml2 libglade pam
1818 libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
1919 libXxf86misc intltool xorg.appres makeWrapper gle
2020 ];
pkgs/os-specific/linux/ati-drivers/builder.sh+2−2
@@ -246,9 +246,9 @@ if test -z "$libsOnly"; then
246246 ( # build and install fgl_glxgears
247247 cd fgl_glxgears;
248248 gcc -DGL_ARB_texture_multisample=1 -g \
249− -I$libGLU_combined/include \
249+ -I$libGL/include -I$libGLU/include \
250250 -I$out/include \
251− -L$libGLU_combined/lib -lGL -lGLU -lX11 -lm \
251+ -L$libGL/lib -L$libGLU/lib -lGL -lGLU -lX11 -lm \
252252 -o $out/bin/fgl_glxgears -Wall fgl_glxgears.c
253253 )
254254
pkgs/os-specific/linux/ati-drivers/default.nix+4−4
@@ -1,6 +1,6 @@
11{ stdenv, lib, fetchurl, kernel ? null, which
22, xorg, makeWrapper, glibc, patchelf, unzip
3−, fontconfig, freetype, libGLU_combined # for fgl_glxgears
3+, fontconfig, freetype, libGLU, libGL # for fgl_glxgears
44, # Whether to build the libraries only (i.e. not the kernel module or
55 # driver utils). Used to support 32-bit binaries on 64-bit
66 # Linux.
@@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
9090 xorg.libXrandr xorg.libXxf86vm xorg.xorgproto xorg.imake xorg.libICE
9191 patchelf
9292 unzip
93− libGLU_combined
93+ libGLU libGL
9494 fontconfig
9595 freetype
9696 makeWrapper
@@ -108,7 +108,7 @@ stdenv.mkDerivation rec {
108108 LD_LIBRARY_PATH = makeLibraryPath
109109 [ xorg.libXrender xorg.libXext xorg.libX11 xorg.libXinerama xorg.libSM
110110 xorg.libXrandr xorg.libXxf86vm xorg.xorgproto xorg.imake xorg.libICE
111− libGLU_combined
111+ libGLU libGL
112112 fontconfig
113113 freetype
114114 stdenv.cc.cc
@@ -122,7 +122,7 @@ stdenv.mkDerivation rec {
122122 xorg.libX11.out xorg.libXinerama.out xorg.libSM.out
123123 xorg.libICE.out ];
124124
125− inherit libGLU_combined; # only required to build the examples
125+ inherit libGLU libGL; # only required to build the examples
126126
127127 enableParallelBuilding = true;
128128
pkgs/os-specific/linux/keyutils/default.nix+3−3
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 pname = "keyutils";
5− version = "1.6";
5+ version = "1.6.1";
66
77 src = fetchurl {
8− url = "https://people.redhat.com/dhowells/keyutils/${pname}-${version}.tar.bz2";
9− sha256 = "05bi5ja6f3h3kdi7p9dihlqlfrsmi1wh1r2bdgxc0180xh6g5bnk";
8+ url = "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/${pname}-${version}.tar.gz";
9+ sha256 = "0mzmw8c7gqmqaxm3sa0xki8ycjla47xxhqg0yh17pl00d7ydqw9w";
1010 };
1111
1212 patches = [
pkgs/os-specific/linux/kmscon/default.nix+2−2
@@ -4,7 +4,7 @@
44, systemd
55, libxkbcommon
66, libdrm
7−, libGLU_combined
7+, libGLU, libGL
88, pango
99, pixman
1010, pkgconfig
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
2525 systemd
2626 libxkbcommon
2727 libdrm
28− libGLU_combined
28+ libGLU libGL
2929 pango
3030 pixman
3131 pkgconfig
pkgs/servers/sql/postgresql/default.nix+10−10
@@ -180,41 +180,41 @@ let
180180in self: {
181181
182182 postgresql_9_5 = self.callPackage generic {
183− version = "9.5.19";
183+ version = "9.5.20";
184184 psqlSchema = "9.5";
185− sha256 = "1cqvbsyfs9048wbvdv0vhhaksjyjqv2vvh6ij4vqmjibc4kal34n";
185+ sha256 = "03fygn3nn6l6ar66sldy5akdg1gynny3yxbrpvmmp5ygfnrm2mwj";
186186 this = self.postgresql_9_5;
187187 inherit self;
188188 };
189189
190190 postgresql_9_6 = self.callPackage generic {
191− version = "9.6.15";
191+ version = "9.6.16";
192192 psqlSchema = "9.6";
193− sha256 = "02hp69h2p02asfblkaahblzdz2zmawd2r11h6237y5j7yadgxn9w";
193+ sha256 = "1rr2dgv4ams8r2lp13w85c77rkmzpb88fjlc28mvlw6zq2fblv2w";
194194 this = self.postgresql_9_6;
195195 inherit self;
196196 };
197197
198198 postgresql_10 = self.callPackage generic {
199− version = "10.10";
199+ version = "10.11";
200200 psqlSchema = "10.0"; # should be 10, but changing it is invasive
201− sha256 = "0lzj46dwd9cw94gnqm36bxd7jlhfdyqjrfzr3c4xd3prfn2rnkxd";
201+ sha256 = "02fcmvbh0mhplj3s2jd24s642ysx7bggnf0h8bs5amh7dgzi8p8d";
202202 this = self.postgresql_10;
203203 inherit self;
204204 };
205205
206206 postgresql_11 = self.callPackage generic {
207− version = "11.5";
207+ version = "11.6";
208208 psqlSchema = "11.1"; # should be 11, but changing it is invasive
209− sha256 = "106ikalvrilihlvhq7xj7snq98hgbgq6qsgjrd252wgw1c327pvz";
209+ sha256 = "0w1iq488kpzfgfnlw4k32lz5by695mpnkq461jrgsr99z5zlz4j9";
210210 this = self.postgresql_11;
211211 inherit self;
212212 };
213213
214214 postgresql_12 = self.callPackage generic {
215− version = "12.0";
215+ version = "12.1";
216216 psqlSchema = "12";
217− sha256 = "1ijm13gx1d9ai09n26nbdc77n9b8akh6pj21yy9vfn7p2mr3k8nd";
217+ sha256 = "1vc3hjcbgkdfczc1ipkk02rahabn7fabpb7qs203jxpnpamz76x0";
218218 this = self.postgresql_12;
219219 inherit self;
220220 };
pkgs/tools/graphics/enblend-enfuse/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl
2−, boost, freeglut, glew, gsl, lcms2, libpng, libtiff, libGLU_combined, vigra
2+, boost, freeglut, glew, gsl, lcms2, libpng, libtiff, libGLU, libGL, vigra
33, help2man, pkgconfig, perl, texlive }:
44
55stdenv.mkDerivation rec {
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 sha256 = "0j5x011ilalb47ssah50ag0a4phgh1b0wdgxdbbp1gcyjcjf60w7";
1212 };
1313
14− buildInputs = [ boost freeglut glew gsl lcms2 libpng libtiff libGLU_combined vigra ];
14+ buildInputs = [ boost freeglut glew gsl lcms2 libpng libtiff libGLU libGL vigra ];
1515
1616 nativeBuildInputs = [ help2man perl pkgconfig texlive.combined.scheme-small ];
1717
pkgs/tools/graphics/glee/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchgit, cmake, libGLU_combined, xorg }:
1+{stdenv, fetchgit, cmake, libGLU, libGL, xorg }:
22
33stdenv.mkDerivation rec {
44 pname = "glee";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ cmake ];
1515
16− buildInputs = [ libGLU_combined xorg.libX11 ];
16+ buildInputs = [ libGLU libGL xorg.libX11 ];
1717
1818 configureScript = ''
1919 cmake
pkgs/tools/graphics/logstalgia/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, SDL2, ftgl, pkgconfig, libpng, libjpeg, pcre, SDL2_image, glew
2−, libGLU_combined, boost, glm, freetype }:
2+, libGLU, libGL, boost, glm, freetype }:
33
44stdenv.mkDerivation rec {
55 pname = "logstalgia";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 };
1212
1313 nativeBuildInputs = [ pkgconfig ];
14− buildInputs = [ glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU_combined boost
14+ buildInputs = [ glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU libGL boost
1515 glm freetype ];
1616
1717 meta = with stdenv.lib; {
pkgs/tools/graphics/nifskope/default.nix+6−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, substituteAll, libGLU, wrapQtAppsHook }:
1+{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, substituteAll, libGLU, wrapQtAppsHook, fetchpatch }:
22
33stdenv.mkDerivation {
44 pname = "nifskope";
@@ -18,6 +18,11 @@ stdenv.mkDerivation {
1818 src = ./qttools-bins.patch;
1919 qttools = "${qttools.dev}/bin";
2020 })
21+ (fetchpatch {
22+ name = "qt512-build-fix.patch";
23+ url = "https://github.com/niftools/nifskope/commit/30954e7f01f3d779a2a1fd37d363e8a6ad560bd3.patch";
24+ sha256 = "0d6xjj2mjjhdd7w1aig5f75jksjni16jyj0lxsz51pys6xqb6fpj";
25+ })
2126 ];
2227
2328 buildInputs = [ qtbase qttools libGLU.dev ];
pkgs/tools/graphics/pfstools/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, pkgconfig, darwin
2−, openexr, zlib, imagemagick, libGLU_combined, freeglut, fftwFloat
2+, openexr, zlib, imagemagick, libGLU, libGL, freeglut, fftwFloat
33, fftw, gsl, libexif, perl, opencv, qt5, netpbm
44}:
55
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
3434 ] ++ (if stdenv.isDarwin then (with darwin.apple_sdk.frameworks; [
3535 OpenGL GLUT
3636 ]) else [
37− libGLU_combined freeglut
37+ libGLU libGL freeglut
3838 ]);
3939
4040 patches = [ ./threads.patch ./pfstools.patch ./pfsalign.patch ];
pkgs/tools/inputmethods/touchegg/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, xorg, xorgserver, qt4, libGLU_combined, geis, qmake4Hook }:
1+{ stdenv, fetchurl, xorg, xorgserver, qt4, libGLU, libGL, geis, qmake4Hook }:
22
33stdenv.mkDerivation rec {
44 pname = "touchegg";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 sha256 = "95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038";
99 };
1010
11− buildInputs = [ xorgserver libGLU_combined xorg.libX11 xorg.libXtst xorg.libXext qt4 geis ];
11+ buildInputs = [ xorgserver libGLU libGL xorg.libX11 xorg.libXtst xorg.libXext qt4 geis ];
1212
1313 nativeBuildInputs = [ qmake4Hook ];
1414
pkgs/tools/misc/kisslicer/default.nix+3−3
@@ -1,6 +1,6 @@
11{ fetchzip
22, libX11
3−, libGLU_combined
3+, libGLU, libGL
44, makeWrapper
55, stdenv
66}:
@@ -8,7 +8,7 @@
88let
99
1010 libPath = stdenv.lib.makeLibraryPath [
11− libGLU_combined
11+ libGLU libGL
1212 stdenv.cc.cc
1313 libX11
1414 ];
@@ -30,7 +30,7 @@ stdenv.mkDerivation {
3030
3131 buildInputs = [
3232 makeWrapper
33− libGLU_combined
33+ libGLU libGL
3434 libX11
3535 ];
3636
pkgs/tools/misc/ocz-ssd-guru/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, xorg, freetype, fontconfig, libGLU_combined, glibc, makeWrapper }:
1+{ fetchurl, stdenv, xorg, freetype, fontconfig, libGLU, libGL, glibc, makeWrapper }:
22
33let
44 system = if stdenv.hostPlatform.system == "x86_64-linux" then "linux64" else "linux32";
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
2424 xorg.libXrender
2525 stdenv.cc.cc
2626 glibc
27− libGLU_combined
27+ libGLU libGL
2828 ];
2929
3030 installPhase = ''
pkgs/tools/misc/pipelight/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, libGLU_combined, wine-staging }:
1+{ stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, libGLU, libGL, wine-staging }:
22
33let
44 wine_custom = wine-staging;
@@ -17,7 +17,7 @@ in stdenv.mkDerivation rec {
1717 sha256 = "1kyy6knkr42k34rs661r0f5sf6l1s2jdbphdg89n73ynijqmzjhk";
1818 };
1919
20− buildInputs = [ wine_custom libX11 libGLU_combined curl ];
20+ buildInputs = [ wine_custom libX11 libGLU libGL curl ];
2121
2222 propagatedbuildInputs = [ curl cabextract ];
2323
pkgs/tools/misc/slop/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, pkgconfig
2−, glew, glm, libGLU_combined, libX11, libXext, libXrender, icu
2+, glew, glm, libGLU, libGL, libX11, libXext, libXrender, icu
33, cppcheck
44}:
55
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 };
1616
1717 nativeBuildInputs = [ cmake pkgconfig ];
18− buildInputs = [ glew glm libGLU_combined libX11 libXext libXrender icu ]
18+ buildInputs = [ glew glm libGLU libGL libX11 libXext libXrender icu ]
1919 ++ stdenv.lib.optional doCheck cppcheck;
2020
2121 doCheck = false;
pkgs/tools/networking/network-manager/default.nix+2−9
@@ -10,11 +10,11 @@ let
1010 pythonForDocs = python3.withPackages (pkgs: with pkgs; [ pygobject3 ]);
1111in stdenv.mkDerivation rec {
1212 pname = "network-manager";
13− version = "1.20.4";
13+ version = "1.20.6";
1414
1515 src = fetchurl {
1616 url = "mirror://gnome/sources/NetworkManager/${stdenv.lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz";
17− sha256 = "0k4i6m8acp48vl6l13267wv6kfkmzfjq2mraaa5m9n82wyvkimx3";
17+ sha256 = "0fa5my2czxxlr0lcrzm4zcbcfmvzflnzg1n0yrf6wssa07qaklp8";
1818 };
1919
2020 outputs = [ "out" "dev" "devdoc" "man" "doc" ];
@@ -61,13 +61,6 @@ in stdenv.mkDerivation rec {
6161 # Meson does not support using different directories during build and
6262 # for installation like Autotools did with flags passed to make install.
6363 ./fix-install-paths.patch
64−
65− # Fixes https://github.com/NixOS/nixpkgs/issues/72330
66− # Upstream MR: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/323
67− (fetchpatch {
68− url = "https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commit/4c11364201c094ad19ab9980ea6051a82bd2a550.patch";
69− sha256 = "14dgb6ijxyzcglrk67is2fn49iwrhljf2sld8w557i6zkypilmsv";
70− })
7164 ];
7265
7366 buildInputs = [
pkgs/tools/security/enpass/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, dpkg, xorg
2−, glib, libGLU_combined, libpulseaudio, zlib, dbus, fontconfig, freetype
2+, glib, libGLU, libGL, libpulseaudio, zlib, dbus, fontconfig, freetype
33, gtk3, pango
44, makeWrapper , python2Packages, lib
55, lsof, curl, libuuid, cups, mesa
@@ -19,7 +19,7 @@ let
1919 # used of both wrappers and libpath
2020 libPath = lib.makeLibraryPath (with xorg; [
2121 mesa.drivers
22− libGLU_combined
22+ libGLU libGL
2323 fontconfig
2424 freetype
2525 libpulseaudio
pkgs/top-level/all-packages.nix+6−54
@@ -5212,7 +5212,7 @@ in
52125212
52135213 niff = callPackage ../tools/package-management/niff { };
52145214
5215− nifskope = libsForQt59.callPackage ../tools/graphics/nifskope { };
5215+ nifskope = libsForQt5.callPackage ../tools/graphics/nifskope { };
52165216
52175217 nilfs-utils = callPackage ../tools/filesystems/nilfs-utils {};
52185218
@@ -9896,7 +9896,7 @@ in
98969896
98979897 funnelweb = callPackage ../development/tools/literate-programming/funnelweb { };
98989898
9899− gede = libsForQt59.callPackage ../development/tools/misc/gede { };
9899+ gede = libsForQt5.callPackage ../development/tools/misc/gede { };
99009900
99019901 gdbgui = python3Packages.callPackage ../development/tools/misc/gdbgui { };
99029902
@@ -13090,16 +13090,6 @@ in
1309013090 # Default libGLU
1309113091 libGLU = mesa_glu;
1309213092
13093− # Combined derivation, contains both libGL and libGLU
13094− # Please, avoid using this attribute. It was meant as transitional hack
13095− # for packages that assume that libGLU and libGL live in the same prefix.
13096− # libGLU_combined propagates both libGL and libGLU
13097− libGLU_combined = buildEnv {
13098− name = "libGLU-combined";
13099− paths = [ libGL libGLU ];
13100− extraOutputsToInstall = [ "dev" ];
13101− };
13102−
1310313093 mesa = callPackage ../development/libraries/mesa {
1310413094 llvmPackages = llvmPackages_9;
1310513095 inherit (darwin.apple_sdk.frameworks) OpenGL;
@@ -13539,10 +13529,7 @@ in
1353913529
1354013530 python-qt = callPackage ../development/libraries/python-qt {
1354113531 python = python27;
13542− qmake = qt59.qmake;
13543− qttools = qt59.qttools;
13544− qtwebengine = qt59.qtwebengine;
13545− qtxmlpatterns = qt59.qtxmlpatterns;
13532+ inherit (qt5) qmake qttools qtwebengine qtxmlpatterns;
1354613533 };
1354713534
1354813535 pyotherside = libsForQt5.callPackage ../development/libraries/pyotherside {};
@@ -13593,39 +13580,6 @@ in
1359313580 developerBuild = true;
1359413581 });
1359513582
13596− qt59 = recurseIntoAttrs (makeOverridable
13597− (import ../development/libraries/qt-5/5.9) {
13598− inherit newScope;
13599− inherit stdenv fetchurl fetchpatch makeSetupHook makeWrapper;
13600− bison = bison2; # error: too few arguments to function 'int yylex(...
13601− inherit cups;
13602− harfbuzz = harfbuzzFull;
13603− inherit libGL;
13604− inherit perl;
13605− inherit (gst_all_1) gstreamer gst-plugins-base;
13606− inherit gtk3;
13607− inherit (gnome3) dconf;
13608− });
13609−
13610− libsForQt59 = lib.makeScope qt59.newScope mkLibsForQt5;
13611−
13612− qt511 = recurseIntoAttrs (makeOverridable
13613− (import ../development/libraries/qt-5/5.11) {
13614− inherit newScope;
13615− inherit stdenv fetchurl fetchFromGitHub fetchpatch makeSetupHook makeWrapper;
13616− bison = bison2; # error: too few arguments to function 'int yylex(...
13617− inherit cups;
13618− harfbuzz = harfbuzzFull;
13619− inherit libGL;
13620− inherit perl;
13621− inherit gtk3;
13622− inherit (gnome3) dconf;
13623− inherit (gst_all_1) gstreamer gst-plugins-base;
13624− inherit llvmPackages_5;
13625− });
13626−
13627− libsForQt511 = recurseIntoAttrs (lib.makeScope qt511.newScope mkLibsForQt5);
13628−
1362913583 qt512 = recurseIntoAttrs (makeOverridable
1363013584 (import ../development/libraries/qt-5/5.12) {
1363113585 inherit newScope;
@@ -18271,7 +18225,7 @@ in
1827118225 pygments = python27Packages.pygments;
1827218226 };
1827318227
18274− csound-qt = libsForQt59.callPackage ../applications/audio/csound/csound-qt {
18228+ csound-qt = libsForQt5.callPackage ../applications/audio/csound/csound-qt {
1827518229 python = python27;
1827618230 };
1827718231
@@ -19975,9 +19929,7 @@ in
1997519929
1997619930 mercurialFull = appendToName "full" (pkgs.mercurial.override { guiSupport = true; });
1997719931
19978− merkaartor = libsForQt59.callPackage ../applications/misc/merkaartor {
19979− gdal = gdal_2; # https://github.com/openstreetmap/merkaartor/issues/179
19980− };
19932+ merkaartor = libsForQt5.callPackage ../applications/misc/merkaartor { };
1998119933
1998219934 meshlab = libsForQt5.callPackage ../applications/graphics/meshlab { };
1998319935
@@ -22606,7 +22558,7 @@ in
2260622558 });
2260722559
2260822560 construo = construoBase.override {
22609− inherit freeglut libGL libGLU;
22561+ inherit libGL libGLU freeglut;
2261022562 };
2261122563
2261222564 crack_attack = callPackage ../games/crack-attack { };
pkgs/top-level/perl-packages.nix+34−2
@@ -10552,6 +10552,22 @@ let
1055210552 };
1055310553 };
1055410554
10555+ LWPUserAgentDNSHosts = buildPerlModule {
10556+ pname = "LWP-UserAgent-DNS-Hosts";
10557+ version = "0.13";
10558+ src = fetchurl {
10559+ url = mirror://cpan/authors/id/M/MA/MASAKI/LWP-UserAgent-DNS-Hosts-0.13.tar.gz;
10560+ sha256 = "0piwcsb0m1xpzxbakhr9zq45a9hq3rx7s55lrjg66nd4x5n7xs5y";
10561+ };
10562+ propagatedBuildInputs = [ LWP ScopeGuard ];
10563+ buildInputs = [ ModuleBuildTiny TestFakeHTTPD TestSharedFork TestTCP TestUseAllModules ];
10564+ meta = {
10565+ description = "Override LWP HTTP/HTTPS request's host like /etc/hosts";
10566+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
10567+ homepage = "https://github.com/masaki/p5-LWP-UserAgent-DNS-Hosts";
10568+ };
10569+ };
10570+
1055510571 LWPUserAgentDetermined = buildPerlPackage {
1055610572 pname = "LWP-UserAgent-Determined";
1055710573 version = "1.07";
@@ -13702,8 +13718,8 @@ let
1370213718 sha256 = "1q3lz168q081iwl9jg21fbzhp9la79gav9mv6nmh2jab83s2l3mj";
1370313719 };
1370413720
13705− # FIXME: try with libGL + libGLU instead of libGLU_combined
13706− buildInputs = [ pkgs.libGLU_combined pkgs.libGLU pkgs.freeglut pkgs.xorg.libX11 pkgs.xorg.libXi pkgs.xorg.libXmu pkgs.xorg.libXext pkgs.xdummy ];
13721+ # FIXME: try with libGL + libGLU instead of libGLU libGL
13722+ buildInputs = [ pkgs.libGLU pkgs.libGL pkgs.libGLU pkgs.freeglut pkgs.xorg.libX11 pkgs.xorg.libXi pkgs.xorg.libXmu pkgs.xorg.libXext pkgs.xdummy ];
1370713723
1370813724 patches = [ ../development/perl-modules/perl-opengl.patch ];
1370913725
@@ -17566,6 +17582,22 @@ let
1756617582 };
1756717583 };
1756817584
17585+ TestFakeHTTPD = buildPerlModule {
17586+ pname = "Test-Fake-HTTPD";
17587+ version = "0.08";
17588+ src = fetchurl {
17589+ url = mirror://cpan/authors/id/M/MA/MASAKI/Test-Fake-HTTPD-0.08.tar.gz;
17590+ sha256 = "1jkflkcjzrdvnlxff1xqfhfdcpsmvvjqzayl7hk3whavsxdrf9yh";
17591+ };
17592+ propagatedBuildInputs = [ HTTPDaemon Plack ];
17593+ buildInputs = [ LWP ModuleBuildTiny TestException TestSharedFork TestTCP TestUseAllModules ];
17594+ meta = {
17595+ description = "a fake HTTP server";
17596+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
17597+ homepage = "https://github.com/masaki/Test-Fake-HTTPD";
17598+ };
17599+ };
17600+
1756917601 TestFatal = buildPerlPackage {
1757017602 pname = "Test-Fatal";
1757117603 version = "0.014";