2018-01-01 20:50:26 +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`.
|
|
|
|
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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
newScope,
|
2018-07-21 01:44:44 +01:00
|
|
|
stdenv, fetchurl, fetchFromGitHub, makeSetupHook,
|
2018-02-24 13:38:25 +00:00
|
|
|
bison, cups ? null, harfbuzz, libGL, perl,
|
2018-01-01 20:50:26 +00:00
|
|
|
gstreamer, gst-plugins-base, gtk3, dconf,
|
2018-11-17 19:59:38 +00:00
|
|
|
cf-private,
|
2018-01-01 20:50:26 +00:00
|
|
|
|
|
|
|
# options
|
|
|
|
developerBuild ? false,
|
|
|
|
decryptSslTraffic ? false,
|
2018-01-19 13:59:17 +00:00
|
|
|
debug ? false,
|
2018-01-01 20:50:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2018-05-26 08:05:18 +01:00
|
|
|
qtCompatVersion = "5.11";
|
2018-01-01 20:50:26 +00:00
|
|
|
|
2018-11-07 09:07:45 +00:00
|
|
|
mirror = "https://download.qt.io";
|
2018-09-08 18:29:54 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
2018-01-01 20:50:26 +00:00
|
|
|
|
|
|
|
patches = {
|
2018-06-05 07:06:35 +01:00
|
|
|
qtbase = [
|
|
|
|
./qtbase.patch
|
|
|
|
./qtbase-darwin.patch
|
|
|
|
./qtbase-revert-no-macos10.10.patch
|
2018-11-18 18:29:43 +00:00
|
|
|
./qtbase-fixguicmake.patch
|
2018-07-10 16:22:49 +01:00
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
./qtbase-darwin-nseventtype.patch
|
2019-02-06 01:45:10 +00:00
|
|
|
./qtbase-darwin-revert-69221.patch
|
2018-06-05 07:06:35 +01:00
|
|
|
];
|
2018-01-01 20:50:26 +00:00
|
|
|
qtdeclarative = [ ./qtdeclarative.patch ];
|
|
|
|
qtscript = [ ./qtscript.patch ];
|
|
|
|
qtserialport = [ ./qtserialport.patch ];
|
|
|
|
qttools = [ ./qttools.patch ];
|
2019-02-17 05:31:19 +00:00
|
|
|
qtwebengine = [ ./qtwebengine-no-build-skip.patch ]
|
|
|
|
++ optional stdenv.cc.isClang ./qtwebengine-clang-fix.patch
|
2019-01-12 14:28:11 +00:00
|
|
|
++ optional stdenv.isDarwin ./qtwebengine-darwin-sdk-10.10.patch;
|
2018-01-01 20:50:26 +00:00
|
|
|
qtwebkit = [ ./qtwebkit.patch ];
|
|
|
|
};
|
|
|
|
|
|
|
|
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; };
|
|
|
|
|
|
|
|
addPackages = self: with self;
|
|
|
|
let
|
|
|
|
callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
|
|
|
|
in {
|
|
|
|
|
|
|
|
inherit mkDerivation;
|
|
|
|
|
|
|
|
qtbase = callPackage ../modules/qtbase.nix {
|
|
|
|
inherit (srcs.qtbase) src version;
|
|
|
|
patches = patches.qtbase;
|
2018-02-24 13:38:25 +00:00
|
|
|
inherit bison cups harfbuzz libGL;
|
2018-01-01 20:50:26 +00:00
|
|
|
withGtk3 = true; inherit dconf gtk3;
|
|
|
|
inherit developerBuild decryptSslTraffic;
|
|
|
|
};
|
|
|
|
|
|
|
|
qtcharts = callPackage ../modules/qtcharts.nix {};
|
|
|
|
qtconnectivity = callPackage ../modules/qtconnectivity.nix {};
|
|
|
|
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 {};
|
2018-11-17 19:59:38 +00:00
|
|
|
qtmacextras = callPackage ../modules/qtmacextras.nix {
|
|
|
|
inherit cf-private;
|
|
|
|
};
|
2018-01-01 20:50:26 +00:00
|
|
|
qtmultimedia = callPackage ../modules/qtmultimedia.nix {
|
|
|
|
inherit gstreamer gst-plugins-base;
|
|
|
|
};
|
|
|
|
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 {};
|
2018-03-24 11:07:52 +00:00
|
|
|
qtspeech = callPackage ../modules/qtspeech.nix {};
|
2018-01-01 20:50:26 +00:00
|
|
|
qtsvg = callPackage ../modules/qtsvg.nix {};
|
|
|
|
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 {};
|
2018-11-10 18:40:12 +00:00
|
|
|
qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {};
|
2018-09-08 18:29:54 +01:00
|
|
|
qtwebkit = callPackage ../modules/qtwebkit.nix {};
|
2018-01-01 20:50:26 +00:00
|
|
|
qtwebsockets = callPackage ../modules/qtwebsockets.nix {};
|
|
|
|
qtx11extras = callPackage ../modules/qtx11extras.nix {};
|
|
|
|
qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
|
|
|
|
|
|
|
|
env = callPackage ../qt-env.nix {};
|
2018-02-18 12:28:26 +00:00
|
|
|
full = env "qt-full-${qtbase.version}" ([
|
2018-01-01 20:50:26 +00:00
|
|
|
qtcharts qtconnectivity qtdeclarative qtdoc qtgraphicaleffects
|
2018-02-17 12:23:17 +00:00
|
|
|
qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2
|
|
|
|
qtscript qtsensors qtserialport qtsvg qttools qttranslations
|
|
|
|
qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets
|
2018-01-01 20:50:26 +00:00
|
|
|
qtx11extras qtxmlpatterns
|
|
|
|
] ++ optional (!stdenv.isDarwin) qtwayland
|
|
|
|
++ optional (stdenv.isDarwin) qtmacextras);
|
|
|
|
|
|
|
|
qmake = makeSetupHook {
|
|
|
|
deps = [ self.qtbase.dev ];
|
|
|
|
substitutions = {
|
|
|
|
inherit (stdenv) isDarwin;
|
|
|
|
qtbase_dev = self.qtbase.dev;
|
|
|
|
fix_qt_builtin_paths = ../hooks/fix-qt-builtin-paths.sh;
|
|
|
|
};
|
|
|
|
} ../hooks/qmake-hook.sh;
|
|
|
|
};
|
|
|
|
|
|
|
|
self = makeScope newScope addPackages;
|
|
|
|
|
|
|
|
in self
|