2017-02-28 15:37:57 +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`.
|
|
|
|
|
2017-12-11 17:32:16 +00:00
|
|
|
1. Update the URL in `pkgs/development/libraries/qt-5/$VERSION/fetch.sh`.
|
2017-02-28 15:37:57 +00:00
|
|
|
2. From the top of the Nixpkgs tree, run
|
2017-12-11 17:32:16 +00:00
|
|
|
`./maintainers/scripts/fetch-kde-qt.sh > pkgs/development/libraries/qt-5/$VERSION/srcs.nix`.
|
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.
|
2017-02-28 15:37:57 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
newScope,
|
|
|
|
stdenv, fetchurl, makeSetupHook, makeWrapper,
|
|
|
|
bison, cups ? null, harfbuzz, mesa, perl,
|
2017-03-20 17:18:47 +00:00
|
|
|
gstreamer, gst-plugins-base, gtk3, dconf,
|
2017-02-28 15:37:57 +00:00
|
|
|
|
|
|
|
# options
|
|
|
|
developerBuild ? false,
|
|
|
|
decryptSslTraffic ? false,
|
2017-06-02 16:49:32 +01:00
|
|
|
debug ? null,
|
2017-02-28 15:37:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-06-28 03:15:44 +01:00
|
|
|
qtCompatVersion = "5.9";
|
2017-05-15 12:44:33 +01:00
|
|
|
|
2017-02-28 15:37:57 +00:00
|
|
|
mirror = "http://download.qt.io";
|
|
|
|
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
|
|
|
|
|
2017-10-24 12:39:54 +01:00
|
|
|
patches = {
|
|
|
|
qtbase = [ ./qtbase.patch ];
|
|
|
|
qtdeclarative = [ ./qtdeclarative.patch ];
|
|
|
|
qtscript = [ ./qtscript.patch ];
|
|
|
|
qtserialport = [ ./qtserialport.patch ];
|
|
|
|
qttools = [ ./qttools.patch ];
|
|
|
|
qtwebengine = optional stdenv.needsPax ./qtwebengine-paxmark-mksnapshot.patch;
|
|
|
|
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; };
|
2017-02-28 15:37:57 +00:00
|
|
|
|
|
|
|
addPackages = self: with self;
|
|
|
|
let
|
2017-10-24 12:39:54 +01:00
|
|
|
callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; };
|
2017-02-28 15:37:57 +00: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 {
|
2017-02-28 15:37:57 +00:00
|
|
|
inherit (srcs.qtbase) src version;
|
2017-10-24 12:39:54 +01:00
|
|
|
patches = patches.qtbase;
|
2017-02-28 15:37:57 +00:00
|
|
|
inherit bison cups harfbuzz mesa;
|
2017-10-24 12:39:54 +01:00
|
|
|
withGtk3 = true; inherit dconf gtk3;
|
2017-02-28 15:37:57 +00:00
|
|
|
inherit developerBuild decryptSslTraffic;
|
|
|
|
};
|
|
|
|
|
2017-10-24 12:39:54 +01:00
|
|
|
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 {};
|
|
|
|
qtmacextras = callPackage ../modules/qtmacextras.nix {};
|
|
|
|
qtmultimedia = callPackage ../modules/qtmultimedia.nix {
|
2017-02-28 15:37:57 +00:00
|
|
|
inherit gstreamer gst-plugins-base;
|
|
|
|
};
|
|
|
|
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 {};
|
2017-12-27 21:38:09 +00:00
|
|
|
qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {};
|
2017-10-24 12:39:54 +01:00
|
|
|
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 {};
|
|
|
|
qtx11extras = callPackage ../modules/qtx11extras.nix {};
|
|
|
|
qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
|
2017-02-28 15:37:57 +00:00
|
|
|
|
|
|
|
env = callPackage ../qt-env.nix {};
|
2017-03-25 23:16:51 +00:00
|
|
|
full = env "qt-${qtbase.version}" ([
|
2017-07-01 14:48:18 +01:00
|
|
|
qtcharts qtconnectivity qtdeclarative qtdoc qtgraphicaleffects
|
2017-11-11 16:53:01 +00:00
|
|
|
qtimageformats qtlocation qtmultimedia qtquickcontrols qtscript
|
|
|
|
qtsensors qtserialport qtsvg qttools qttranslations qtwebsockets
|
2017-12-27 21:38:09 +00:00
|
|
|
qtx11extras qtxmlpatterns qtvirtualkeyboard
|
2017-03-25 23:16:51 +00:00
|
|
|
] ++ optional (!stdenv.isDarwin) qtwayland
|
|
|
|
++ optional (stdenv.isDarwin) qtmacextras);
|
2017-02-28 15:37:57 +00:00
|
|
|
|
2017-05-17 20:25:42 +01:00
|
|
|
qmake = makeSetupHook {
|
|
|
|
deps = [ self.qtbase.dev ];
|
2017-10-24 12:39:54 +01:00
|
|
|
substitutions = {
|
|
|
|
inherit (stdenv) isDarwin;
|
|
|
|
qtbase_dev = self.qtbase.dev;
|
|
|
|
fix_qt_builtin_paths = ../hooks/fix-qt-builtin-paths.sh;
|
|
|
|
};
|
|
|
|
} ../hooks/qmake-hook.sh;
|
2017-02-28 15:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
self = makeScope newScope addPackages;
|
|
|
|
|
|
|
|
in self
|