2016-05-03 00:50:19 +01:00
|
|
|
/*
|
|
|
|
|
2017-02-26 00:24:13 +00:00
|
|
|
# New packages
|
|
|
|
|
|
|
|
READ THIS FIRST
|
|
|
|
|
|
|
|
This module is for official packages in Qt 5. All available packages are listed
|
|
|
|
in `./srcs.nix`, although a few are not yet packaged in Nixpkgs (see below).
|
2016-05-03 00:50:19 +01:00
|
|
|
|
2017-02-26 00:24:13 +00:00
|
|
|
IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE.
|
|
|
|
|
|
|
|
Many of the packages released upstream are not yet built in Nixpkgs due to lack
|
|
|
|
of demand. To add a Nixpkgs build for an upstream package, copy one of the
|
|
|
|
existing packages here and modify it as necessary.
|
|
|
|
|
|
|
|
# Updates
|
2016-05-03 00:50:19 +01:00
|
|
|
|
2017-02-26 00:24:13 +00:00
|
|
|
1. Update the URL in `./fetch.sh`.
|
|
|
|
2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/development/libraries/qt-5/$VERSION/`
|
|
|
|
from the top of the Nixpkgs tree.
|
2017-05-15 12:44:33 +01:00
|
|
|
3. Update `qtCompatVersion` below if the minor version number changes.
|
|
|
|
4. Check that the new packages build correctly.
|
|
|
|
5. Commit the changes and open a pull request.
|
2016-05-03 00:50:19 +01:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2017-02-25 15:44:01 +00:00
|
|
|
{
|
|
|
|
newScope,
|
qt56: fix CVE-2018-{15518,19873,19870,19871,19865,19869}
* CVE-2018-15518, Qt Base: “double free or corruption” in QXmlStreamReader
* CVE-2018-19873, Qt Base: QBmpHandler segfault on malformed BMP file
* CVE-2018-19870, Qt Base: Check for QImage allocation failure in qgifhandler
* CVE-2018-19871, Qt Imageformats: QImage: QTgaFile CPU exhaustion
* CVE-2018-19865, Qt Virtual Keyboard: Qt Virtual Keyboard logs all key presses
* CVE-2018-19869, Qt Svg: Fix crash when parsing malformed url reference
More details can be obtained from the Qt annoucement [1].
[1] https://blog.qt.io/blog/2018/12/04/qt-5-11-3-released-important-security-updates/
2019-01-30 23:26:03 +00:00
|
|
|
stdenv, fetchurl, fetchpatch, makeSetupHook,
|
2018-02-24 13:38:25 +00:00
|
|
|
bison, cups ? null, harfbuzz, libGL, perl,
|
2017-02-25 15:44:01 +00:00
|
|
|
gstreamer, gst-plugins-base,
|
2019-02-16 17:13:10 +00:00
|
|
|
cf-private,
|
2017-02-25 15:44:01 +00:00
|
|
|
|
|
|
|
# options
|
|
|
|
developerBuild ? false,
|
|
|
|
decryptSslTraffic ? false,
|
2018-01-19 13:59:17 +00:00
|
|
|
debug ? false,
|
2016-05-03 00:50:19 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-05-15 12:44:33 +01:00
|
|
|
qtCompatVersion = "5.6";
|
|
|
|
|
2016-05-03 00:50:19 +01:00
|
|
|
mirror = "http://download.qt.io";
|
2017-02-25 15:44:01 +00:00
|
|
|
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
|
2016-05-03 00:50:19 +01:00
|
|
|
|
2017-10-24 12:39:54 +01:00
|
|
|
patches = {
|
qt56: fix CVE-2018-{15518,19873,19870,19871,19865,19869}
* CVE-2018-15518, Qt Base: “double free or corruption” in QXmlStreamReader
* CVE-2018-19873, Qt Base: QBmpHandler segfault on malformed BMP file
* CVE-2018-19870, Qt Base: Check for QImage allocation failure in qgifhandler
* CVE-2018-19871, Qt Imageformats: QImage: QTgaFile CPU exhaustion
* CVE-2018-19865, Qt Virtual Keyboard: Qt Virtual Keyboard logs all key presses
* CVE-2018-19869, Qt Svg: Fix crash when parsing malformed url reference
More details can be obtained from the Qt annoucement [1].
[1] https://blog.qt.io/blog/2018/12/04/qt-5-11-3-released-important-security-updates/
2019-01-30 23:26:03 +00:00
|
|
|
qtbase = [
|
|
|
|
./qtbase.patch
|
|
|
|
./qtbase-fixguicmake.patch
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-15518.patch";
|
|
|
|
url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=28a6e642af2ccb454dd019f551c2908753f76f08";
|
|
|
|
sha256 = "0nyssg7d0br7qgzp481f1w8b4p1bj2ggv9iyfrm1mng5v9fypdd7";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19873.patch";
|
|
|
|
url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=c9b9f663d7243988bcb5fee9180ea9cb3a321a86";
|
|
|
|
sha256 = "1q01cafy92c1j8cgrv4sk133mi3d48x8kbg3glbnnbijpc4k6di5";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19870.patch";
|
|
|
|
url = "http://code.qt.io/cgit/qt/qtbase.git/patch/?id=ac0a910756f91726e03c0e6a89d213bdb4f48fec";
|
|
|
|
sha256 = "00qb9yqwvwnp202am3lqirkjxln1cj8v4wvmlyqya6hna176lj2l";
|
|
|
|
})
|
|
|
|
];
|
2017-10-24 12:39:54 +01:00
|
|
|
qtdeclarative = [ ./qtdeclarative.patch ];
|
|
|
|
qtscript = [ ./qtscript.patch ];
|
|
|
|
qtserialport = [ ./qtserialport.patch ];
|
|
|
|
qttools = [ ./qttools.patch ];
|
2018-12-22 11:49:41 +00:00
|
|
|
qtwebengine = [ ./qtwebengine-seccomp.patch ];
|
2017-10-24 12:39:54 +01:00
|
|
|
qtwebkit = [ ./qtwebkit.patch ];
|
qt56: fix CVE-2018-{15518,19873,19870,19871,19865,19869}
* CVE-2018-15518, Qt Base: “double free or corruption” in QXmlStreamReader
* CVE-2018-19873, Qt Base: QBmpHandler segfault on malformed BMP file
* CVE-2018-19870, Qt Base: Check for QImage allocation failure in qgifhandler
* CVE-2018-19871, Qt Imageformats: QImage: QTgaFile CPU exhaustion
* CVE-2018-19865, Qt Virtual Keyboard: Qt Virtual Keyboard logs all key presses
* CVE-2018-19869, Qt Svg: Fix crash when parsing malformed url reference
More details can be obtained from the Qt annoucement [1].
[1] https://blog.qt.io/blog/2018/12/04/qt-5-11-3-released-important-security-updates/
2019-01-30 23:26:03 +00:00
|
|
|
qtvirtualkeyboard = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19865-A.patch";
|
|
|
|
url = "https://codereview.qt-project.org/gitweb?p=qt/qtvirtualkeyboard.git;a=patch;h=c02115db1de1f3aba81e109043766d600f886522";
|
|
|
|
sha256 = "0ncnyl8f3ypi1kcb9z2i8j33snix111h28njrx8rb49ny01ap8x2";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19865-B.patch";
|
|
|
|
url = "https://codereview.qt-project.org/gitweb?p=qt/qtvirtualkeyboard.git;a=patch;h=01fc537adc74d5e102c8cc93384cdf5cb08b4442";
|
|
|
|
sha256 = "19z8kxqf2lpjqr8189ingrpadch4niviw3p5v93zgx24v7950q27";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19865-C.patch";
|
|
|
|
url = "https://codereview.qt-project.org/gitweb?p=qt/qtvirtualkeyboard.git;a=patch;h=993a21ba03534b172d5354405cc9d50a2a822e24";
|
|
|
|
sha256 = "1bipqxr9bvy8z402pv9kj2w1yzcsj1v03l09pg5jyg1xh6jbgiky";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
qtimageformats = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19871.patch";
|
|
|
|
url = "https://codereview.qt-project.org/gitweb?p=qt/qtimageformats.git;a=patch;h=9299ab07df61c56b70e047f1fe5f06b6ff541aa3";
|
|
|
|
sha256 = "0fd3mxdlc0s405j02bc0g72fvdfvpi31a837xfwf40m5j4jbyndr";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
qtsvg = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19869.patch";
|
|
|
|
url = "http://code.qt.io/cgit/qt/qtsvg.git/patch/?id=c5f1dd14098d1cc2cb52448fb44f53966d331443";
|
|
|
|
sha256 = "1kgyfsxw2f0qv5fx9y7wysjsvqikam0qc7wzhklf0406zz6rhxbl";
|
|
|
|
})
|
|
|
|
];
|
2017-10-24 12:39:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
mkDerivation =
|
|
|
|
import ../mkDerivation.nix
|
|
|
|
{ inherit stdenv; inherit (stdenv) lib; }
|
|
|
|
{ inherit debug; };
|
|
|
|
|
|
|
|
qtModule =
|
|
|
|
import ../qtModule.nix
|
|
|
|
{ inherit mkDerivation perl; inherit (stdenv) lib; }
|
|
|
|
{ inherit self srcs patches; };
|
2016-05-03 00:50:19 +01:00
|
|
|
|
|
|
|
addPackages = self: with self;
|
|
|
|
let
|
2017-10-24 12:39:54 +01:00
|
|
|
callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
|
2016-05-03 00:50:19 +01:00
|
|
|
in {
|
|
|
|
|
2017-06-02 16:49:32 +01:00
|
|
|
inherit mkDerivation;
|
|
|
|
|
2017-10-24 12:39:54 +01:00
|
|
|
qtbase = callPackage ../modules/qtbase.nix {
|
2018-02-24 13:38:25 +00:00
|
|
|
inherit bison cups harfbuzz libGL;
|
2017-10-24 12:39:54 +01:00
|
|
|
inherit (srcs.qtbase) src version;
|
|
|
|
patches = patches.qtbase;
|
2016-05-03 00:50:19 +01:00
|
|
|
inherit developerBuild decryptSslTraffic;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* qt3d = not packaged */
|
|
|
|
/* qtactiveqt = not packaged */
|
|
|
|
/* qtandroidextras = not packaged */
|
|
|
|
/* qtcanvas3d = not packaged */
|
2019-02-16 17:13:10 +00:00
|
|
|
qtconnectivity = callPackage ../modules/qtconnectivity.nix {
|
|
|
|
inherit cf-private;
|
|
|
|
};
|
2017-10-24 12:39:54 +01: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 {};
|
2016-05-03 00:50:19 +01:00
|
|
|
/* qtmacextras = not packaged */
|
2017-10-24 12:39:54 +01:00
|
|
|
qtmultimedia = callPackage ../modules/qtmultimedia.nix {
|
2017-02-25 15:44:01 +00:00
|
|
|
inherit gstreamer gst-plugins-base;
|
2016-05-03 00:50:19 +01:00
|
|
|
};
|
2017-02-26 20:59:00 +00:00
|
|
|
qtquick1 = null;
|
2017-10-24 12:39:54 +01:00
|
|
|
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 {};
|
|
|
|
qtsvg = callPackage ../modules/qtsvg.nix {};
|
|
|
|
qttools = callPackage ../modules/qttools.nix {};
|
|
|
|
qttranslations = callPackage ../modules/qttranslations.nix {};
|
|
|
|
qtwayland = callPackage ../modules/qtwayland.nix {};
|
|
|
|
qtwebchannel = callPackage ../modules/qtwebchannel.nix {};
|
|
|
|
qtwebengine = callPackage ../modules/qtwebengine.nix {};
|
|
|
|
qtwebkit = callPackage ../modules/qtwebkit.nix {};
|
|
|
|
qtwebsockets = callPackage ../modules/qtwebsockets.nix {};
|
2016-05-03 00:50:19 +01:00
|
|
|
/* qtwinextras = not packaged */
|
2017-10-24 12:39:54 +01:00
|
|
|
qtx11extras = callPackage ../modules/qtx11extras.nix {};
|
|
|
|
qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
|
2019-01-30 23:21:51 +00:00
|
|
|
qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {};
|
2016-05-03 00:50:19 +01:00
|
|
|
|
|
|
|
env = callPackage ../qt-env.nix {};
|
2018-02-18 12:28:26 +00:00
|
|
|
full = env "qt-full-${qtbase.version}" [
|
2017-10-24 12:39:54 +01:00
|
|
|
qtconnectivity qtdeclarative qtdoc qtgraphicaleffects qtimageformats
|
|
|
|
qtlocation qtmultimedia qtquickcontrols qtquickcontrols2 qtscript
|
|
|
|
qtsensors qtserialport qtsvg qttools qttranslations qtwayland
|
2017-03-07 19:59:39 +00:00
|
|
|
qtwebchannel qtwebengine qtwebkit qtwebsockets qtx11extras qtxmlpatterns
|
2016-05-03 00:50:19 +01:00
|
|
|
];
|
|
|
|
|
2017-05-17 20:25:42 +01:00
|
|
|
qmake = makeSetupHook {
|
|
|
|
deps = [ self.qtbase.dev ];
|
|
|
|
substitutions = { inherit (stdenv) isDarwin; };
|
2017-10-24 12:39:54 +01:00
|
|
|
} ../hooks/qmake-hook.sh;
|
2016-05-03 00:50:19 +01:00
|
|
|
};
|
|
|
|
|
2017-02-25 15:44:01 +00:00
|
|
|
self = makeScope newScope addPackages;
|
2016-05-03 00:50:19 +01:00
|
|
|
|
|
|
|
in self
|