2018-12-14 07:41:46 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updates
|
|
|
|
|
|
|
|
Before a major version update, make a copy of this directory. (We like to
|
|
|
|
keep the old version around for a short time after major updates.) Add a
|
|
|
|
top-level attribute to `top-level/all-packages.nix`.
|
|
|
|
|
|
|
|
1. Update the URL in `pkgs/development/libraries/qt-5/$VERSION/fetch.sh`.
|
|
|
|
2. From the top of the Nixpkgs tree, run
|
|
|
|
`./maintainers/scripts/fetch-kde-qt.sh > pkgs/development/libraries/qt-5/$VERSION/srcs.nix`.
|
2019-07-28 21:18:44 +01:00
|
|
|
3. Check that the new packages build correctly.
|
|
|
|
4. Commit the changes and open a pull request.
|
2018-12-14 07:41:46 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
newScope,
|
2019-09-14 18:18:48 +01:00
|
|
|
stdenv, fetchurl, fetchpatch, fetchFromGitHub, makeSetupHook, makeWrapper,
|
2018-12-14 07:41:46 +00:00
|
|
|
bison, cups ? null, harfbuzz, libGL, perl,
|
|
|
|
gstreamer, gst-plugins-base, gtk3, dconf,
|
2019-06-19 19:28:41 +01:00
|
|
|
llvmPackages_5,
|
2018-12-14 07:41:46 +00:00
|
|
|
|
|
|
|
# options
|
|
|
|
developerBuild ? false,
|
|
|
|
decryptSslTraffic ? false,
|
|
|
|
debug ? false,
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2019-07-28 21:18:44 +01:00
|
|
|
qtCompatVersion = srcs.qtbase.version;
|
2018-12-14 07:41:46 +00:00
|
|
|
|
2019-07-05 16:41:41 +01:00
|
|
|
stdenvActual = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
|
|
|
|
|
2018-12-14 07:41:46 +00:00
|
|
|
mirror = "https://download.qt.io";
|
|
|
|
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; } // {
|
|
|
|
# Community port of the now unmaintained upstream qtwebkit.
|
|
|
|
qtwebkit = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "annulen";
|
|
|
|
repo = "webkit";
|
|
|
|
rev = "4ce8ebc4094512b9916bfa5984065e95ac97c9d8";
|
|
|
|
sha256 = "05h1xnxzbf7sp3plw5dndsvpf6iigh0bi4vlj4svx0hkf1giakjf";
|
|
|
|
};
|
|
|
|
version = "5.212-alpha-01-26-2018";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = {
|
2019-09-15 18:00:18 +01:00
|
|
|
qtbase =
|
|
|
|
optionals stdenv.isDarwin [
|
|
|
|
./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch
|
|
|
|
./qtbase.patch.d/0002-qtbase-mac.patch
|
2019-11-10 12:29:08 +00:00
|
|
|
./qtbase.patch.d/0013-define-kiosurfacesuccess.patch
|
2019-09-15 18:00:18 +01:00
|
|
|
]
|
|
|
|
++ [
|
|
|
|
./qtbase.patch.d/0003-qtbase-mkspecs.patch
|
2019-09-18 11:40:37 +01:00
|
|
|
./qtbase.patch.d/0004-qtbase-replace-libdir.patch
|
|
|
|
./qtbase.patch.d/0005-qtbase-cmake.patch
|
|
|
|
./qtbase.patch.d/0006-qtbase-gtk3.patch
|
|
|
|
./qtbase.patch.d/0007-qtbase-xcursor.patch
|
|
|
|
./qtbase.patch.d/0008-qtbase-xcompose.patch
|
|
|
|
./qtbase.patch.d/0009-qtbase-tzdir.patch
|
|
|
|
./qtbase.patch.d/0010-qtbase-qtpluginpath.patch
|
|
|
|
./qtbase.patch.d/0011-qtbase-assert.patch
|
2019-10-01 02:18:15 +01:00
|
|
|
./qtbase.patch.d/0012-fix-header_module.patch
|
2020-02-19 22:27:50 +00:00
|
|
|
# https://bugreports.qt.io/browse/QTBUG-81715
|
|
|
|
# remove after updating to qt > 5.12.7
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-qt5_make_output_file-cmake-macro.patch";
|
|
|
|
url = "https://code.qt.io/cgit/qt/qtbase.git/patch/?id=8a3fde00bf53d99e9e4853e8ab97b0e1bcf74915";
|
|
|
|
sha256 = "1gpcbdpyazdxnmldvhsf3pfwr2gjvi08x3j6rxf543rq01bp6cpx";
|
|
|
|
})
|
2020-03-05 00:17:28 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "QTBUG-78937.patch";
|
|
|
|
url = "https://code.qt.io/cgit/qt/qtbase.git/patch/?id=67a9c600ad14ee44501a6df3509daa8234b97606";
|
|
|
|
sha256 = "1jiky1w9j8rka78r4q0yabb8w2l5j6csdjysynz7gs1ry4xjfdxd";
|
|
|
|
})
|
2019-09-15 18:00:18 +01:00
|
|
|
];
|
2018-12-14 07:41:46 +00:00
|
|
|
qtdeclarative = [ ./qtdeclarative.patch ];
|
|
|
|
qtscript = [ ./qtscript.patch ];
|
|
|
|
qtserialport = [ ./qtserialport.patch ];
|
2019-03-12 12:16:01 +00:00
|
|
|
qtwebengine = [
|
|
|
|
./qtwebengine-no-build-skip.patch
|
2019-09-14 18:18:48 +01:00
|
|
|
# https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/707
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-77037
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-build-with-pulseaudio-13.0.patch";
|
|
|
|
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/qtbug-77037-workaround.patch?h=packages/qt5-webengine&id=fc77d6b3d5ec74e421b58f199efceb2593cbf951";
|
|
|
|
sha256 = "1gv733qfdn9746nbqqxzyjx4ijjqkkb7zb71nxax49nna5bri3am";
|
|
|
|
})
|
2019-02-26 22:36:17 +00:00
|
|
|
]
|
|
|
|
++ optional stdenv.isDarwin ./qtwebengine-darwin-no-platform-check.patch;
|
2019-02-18 03:42:57 +00:00
|
|
|
qtwebkit = [ ./qtwebkit.patch ]
|
|
|
|
++ optionals stdenv.isDarwin [
|
|
|
|
./qtwebkit-darwin-no-readline.patch
|
|
|
|
./qtwebkit-darwin-no-qos-classes.patch
|
|
|
|
];
|
2019-06-23 03:20:35 +01:00
|
|
|
qttools = [ ./qttools.patch ];
|
2018-12-14 07:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
qtModule =
|
|
|
|
import ../qtModule.nix
|
2019-07-05 16:41:41 +01:00
|
|
|
{
|
|
|
|
inherit perl;
|
|
|
|
inherit (stdenv) lib;
|
|
|
|
# Use a variant of mkDerivation that does not include wrapQtApplications
|
|
|
|
# to avoid cyclic dependencies between Qt modules.
|
|
|
|
mkDerivation =
|
|
|
|
import ../mkDerivation.nix
|
|
|
|
{ inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; }
|
|
|
|
stdenvActual.mkDerivation;
|
|
|
|
}
|
2018-12-14 07:41:46 +00:00
|
|
|
{ inherit self srcs patches; };
|
|
|
|
|
|
|
|
addPackages = self: with self;
|
|
|
|
let
|
|
|
|
callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
|
|
|
|
in {
|
|
|
|
|
2019-07-05 16:41:41 +01:00
|
|
|
mkDerivationWith =
|
|
|
|
import ../mkDerivation.nix
|
|
|
|
{ inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; };
|
|
|
|
|
|
|
|
mkDerivation = mkDerivationWith stdenvActual.mkDerivation;
|
2018-12-14 07:41:46 +00:00
|
|
|
|
|
|
|
qtbase = callPackage ../modules/qtbase.nix {
|
|
|
|
inherit (srcs.qtbase) src version;
|
|
|
|
patches = patches.qtbase;
|
|
|
|
inherit bison cups harfbuzz libGL;
|
|
|
|
withGtk3 = true; inherit dconf gtk3;
|
|
|
|
inherit developerBuild decryptSslTraffic;
|
|
|
|
};
|
|
|
|
|
|
|
|
qtcharts = callPackage ../modules/qtcharts.nix {};
|
2019-06-19 19:28:41 +01:00
|
|
|
qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
|
2018-12-14 07:41:46 +00:00
|
|
|
qtdeclarative = callPackage ../modules/qtdeclarative.nix {};
|
|
|
|
qtdoc = callPackage ../modules/qtdoc.nix {};
|
|
|
|
qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {};
|
|
|
|
qtimageformats = callPackage ../modules/qtimageformats.nix {};
|
|
|
|
qtlocation = callPackage ../modules/qtlocation.nix {};
|
2019-06-19 19:28:41 +01:00
|
|
|
qtmacextras = callPackage ../modules/qtmacextras.nix {};
|
2018-12-14 07:41:46 +00:00
|
|
|
qtmultimedia = callPackage ../modules/qtmultimedia.nix {
|
|
|
|
inherit gstreamer gst-plugins-base;
|
|
|
|
};
|
2019-04-23 10:05:38 +01:00
|
|
|
qtnetworkauth = callPackage ../modules/qtnetworkauth.nix {};
|
2018-12-14 07:41:46 +00:00
|
|
|
qtquick1 = null;
|
|
|
|
qtquickcontrols = callPackage ../modules/qtquickcontrols.nix {};
|
|
|
|
qtquickcontrols2 = callPackage ../modules/qtquickcontrols2.nix {};
|
|
|
|
qtscript = callPackage ../modules/qtscript.nix {};
|
|
|
|
qtsensors = callPackage ../modules/qtsensors.nix {};
|
|
|
|
qtserialport = callPackage ../modules/qtserialport.nix {};
|
|
|
|
qtspeech = callPackage ../modules/qtspeech.nix {};
|
|
|
|
qtsvg = callPackage ../modules/qtsvg.nix {};
|
2020-03-22 15:01:49 +00:00
|
|
|
qtscxml = callPackage ../modules/qtscxml.nix {};
|
2018-12-14 07:41:46 +00:00
|
|
|
qttools = callPackage ../modules/qttools.nix {};
|
|
|
|
qttranslations = callPackage ../modules/qttranslations.nix {};
|
|
|
|
qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {};
|
|
|
|
qtwayland = callPackage ../modules/qtwayland.nix {};
|
|
|
|
qtwebchannel = callPackage ../modules/qtwebchannel.nix {};
|
|
|
|
qtwebengine = callPackage ../modules/qtwebengine.nix {};
|
|
|
|
qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {};
|
|
|
|
qtwebkit = callPackage ../modules/qtwebkit.nix {};
|
|
|
|
qtwebsockets = callPackage ../modules/qtwebsockets.nix {};
|
2019-02-22 16:36:37 +00:00
|
|
|
qtwebview = callPackage ../modules/qtwebview.nix {};
|
2018-12-14 07:41:46 +00:00
|
|
|
qtx11extras = callPackage ../modules/qtx11extras.nix {};
|
|
|
|
qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
|
|
|
|
|
|
|
|
env = callPackage ../qt-env.nix {};
|
|
|
|
full = env "qt-full-${qtbase.version}" ([
|
|
|
|
qtcharts qtconnectivity qtdeclarative qtdoc qtgraphicaleffects
|
|
|
|
qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2
|
|
|
|
qtscript qtsensors qtserialport qtsvg qttools qttranslations
|
|
|
|
qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets
|
2019-02-22 16:36:37 +00:00
|
|
|
qtwebview qtx11extras qtxmlpatterns
|
2018-12-14 07:41:46 +00:00
|
|
|
] ++ optional (!stdenv.isDarwin) qtwayland
|
|
|
|
++ optional (stdenv.isDarwin) qtmacextras);
|
|
|
|
|
|
|
|
qmake = makeSetupHook {
|
|
|
|
deps = [ self.qtbase.dev ];
|
|
|
|
substitutions = {
|
2019-09-18 21:19:31 +01:00
|
|
|
fix_qmake_libtool = ../hooks/fix-qmake-libtool.sh;
|
2018-12-14 07:41:46 +00:00
|
|
|
};
|
|
|
|
} ../hooks/qmake-hook.sh;
|
2019-07-05 16:41:41 +01:00
|
|
|
|
|
|
|
wrapQtAppsHook = makeSetupHook {
|
|
|
|
deps =
|
|
|
|
[ self.qtbase.dev makeWrapper ]
|
|
|
|
++ optional stdenv.isLinux self.qtwayland.dev;
|
|
|
|
} ../hooks/wrap-qt-apps-hook.sh;
|
2018-12-14 07:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
self = makeScope newScope addPackages;
|
|
|
|
|
|
|
|
in self
|