2016-05-03 01:50:19 +02:00
|
|
|
/*
|
|
|
|
|
2016-06-17 16:47:16 +02:00
|
|
|
# Updates
|
2016-05-03 01:50:19 +02:00
|
|
|
|
2016-06-17 16:47:16 +02:00
|
|
|
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
|
2016-06-17 19:20:18 +02:00
|
|
|
top-level attribute to `top-level/all-packages.nix`.
|
2016-05-03 01:50:19 +02:00
|
|
|
|
2016-06-17 19:20:18 +02:00
|
|
|
1. Update the URL in `maintainers/scripts/generate-qt.sh`.
|
2016-06-17 16:47:16 +02:00
|
|
|
2. From the top of the Nixpkgs tree, run
|
2016-06-17 19:20:18 +02:00
|
|
|
`./maintainers/scripts/generate-qt.sh > pkgs/development/libraries/qt-5/$VERSION/srcs.nix`.
|
2016-06-17 16:47:16 +02:00
|
|
|
3. Check that the new packages build correctly.
|
|
|
|
4. Commit the changes and open a pull request.
|
2016-05-03 01:50:19 +02:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{ pkgs
|
|
|
|
|
|
|
|
# options
|
|
|
|
, developerBuild ? false
|
|
|
|
, decryptSslTraffic ? false
|
|
|
|
}:
|
|
|
|
|
2016-06-17 16:47:16 +02:00
|
|
|
let inherit (pkgs) makeSetupHook makeWrapper stdenv; in
|
2016-05-03 01:50:19 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
mirror = "http://download.qt.io";
|
2016-06-17 16:47:16 +02:00
|
|
|
srcs = import ./srcs.nix { inherit (pkgs) fetchurl; inherit mirror; };
|
2016-05-03 01:50:19 +02:00
|
|
|
|
|
|
|
qtSubmodule = args:
|
|
|
|
let
|
|
|
|
inherit (args) name;
|
|
|
|
version = args.version or srcs."${name}".version;
|
|
|
|
src = args.src or srcs."${name}".src;
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
in mkDerivation (args // {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
inherit src;
|
|
|
|
|
|
|
|
propagatedBuildInputs = args.qtInputs ++ (args.propagatedBuildInputs or []);
|
|
|
|
nativeBuildInputs =
|
|
|
|
(args.nativeBuildInputs or [])
|
2016-05-11 17:19:28 +02:00
|
|
|
++ [ pkgs.perl self.qmakeHook ];
|
2016-05-03 01:50:19 +02:00
|
|
|
|
|
|
|
NIX_QT_SUBMODULE = args.NIX_QT_SUBMODULE or true;
|
|
|
|
|
2016-08-26 21:52:15 +02:00
|
|
|
outputs = args.outputs or [ "out" "dev" ];
|
2016-05-03 01:50:19 +02:00
|
|
|
setOutputFlags = args.setOutputFlags or false;
|
|
|
|
|
2016-12-03 16:53:18 +01:00
|
|
|
setupHook = ../qtsubmodule-setup-hook.sh;
|
2016-05-30 23:29:41 +02:00
|
|
|
|
2016-05-03 01:50:19 +02:00
|
|
|
enableParallelBuilding = args.enableParallelBuilding or true;
|
|
|
|
|
|
|
|
meta = self.qtbase.meta // (args.meta or {});
|
|
|
|
});
|
|
|
|
|
|
|
|
addPackages = self: with self;
|
|
|
|
let
|
|
|
|
callPackage = self.newScope { inherit qtSubmodule srcs; };
|
|
|
|
in {
|
|
|
|
|
|
|
|
qtbase = callPackage ./qtbase {
|
|
|
|
mesa = pkgs.mesa_noglu;
|
|
|
|
harfbuzz = pkgs.harfbuzz-icu;
|
|
|
|
cups = if stdenv.isLinux then pkgs.cups else null;
|
|
|
|
bison = pkgs.bison2; # error: too few arguments to function 'int yylex(...
|
|
|
|
inherit developerBuild decryptSslTraffic;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* qt3d = not packaged */
|
|
|
|
/* qtactiveqt = not packaged */
|
|
|
|
/* qtandroidextras = not packaged */
|
|
|
|
/* qtcanvas3d = not packaged */
|
|
|
|
qtconnectivity = callPackage ./qtconnectivity.nix {};
|
|
|
|
qtdeclarative = callPackage ./qtdeclarative {};
|
|
|
|
qtdoc = callPackage ./qtdoc.nix {};
|
|
|
|
qtenginio = callPackage ./qtenginio.nix {};
|
|
|
|
qtgraphicaleffects = callPackage ./qtgraphicaleffects.nix {};
|
|
|
|
qtimageformats = callPackage ./qtimageformats.nix {};
|
|
|
|
qtlocation = callPackage ./qtlocation.nix {};
|
|
|
|
/* qtmacextras = not packaged */
|
|
|
|
qtmultimedia = callPackage ./qtmultimedia.nix {
|
|
|
|
inherit (pkgs.gst_all_1) gstreamer gst-plugins-base;
|
|
|
|
};
|
|
|
|
qtquickcontrols = callPackage ./qtquickcontrols.nix {};
|
|
|
|
qtscript = callPackage ./qtscript {};
|
|
|
|
qtsensors = callPackage ./qtsensors.nix {};
|
|
|
|
qtserialport = callPackage ./qtserialport {};
|
|
|
|
qtsvg = callPackage ./qtsvg.nix {};
|
2016-08-08 15:29:20 +02:00
|
|
|
qttools = callPackage ./qttools {};
|
2016-05-03 01:50:19 +02:00
|
|
|
qttranslations = callPackage ./qttranslations.nix {};
|
2016-08-28 06:57:43 +02:00
|
|
|
qtwayland = callPackage ./qtwayland.nix {};
|
2016-06-26 22:48:03 +02:00
|
|
|
qtwebchannel = callPackage ./qtwebchannel.nix {};
|
2016-11-04 23:09:09 +01:00
|
|
|
qtwebengine = callPackage ./qtwebengine {};
|
2016-08-17 15:37:27 +02:00
|
|
|
qtwebkit = callPackage ./qtwebkit {};
|
2016-05-03 01:50:19 +02:00
|
|
|
qtwebsockets = callPackage ./qtwebsockets.nix {};
|
|
|
|
/* qtwinextras = not packaged */
|
|
|
|
qtx11extras = callPackage ./qtx11extras.nix {};
|
|
|
|
qtxmlpatterns = callPackage ./qtxmlpatterns.nix {};
|
|
|
|
|
|
|
|
env = callPackage ../qt-env.nix {};
|
|
|
|
full = env "qt-${qtbase.version}" [
|
|
|
|
qtconnectivity qtdeclarative qtdoc qtenginio qtgraphicaleffects
|
|
|
|
qtimageformats qtlocation qtmultimedia qtquickcontrols qtscript
|
2016-08-28 06:57:43 +02:00
|
|
|
qtsensors qtserialport qtsvg qttools qttranslations qtwayland
|
2016-11-21 20:59:05 +01:00
|
|
|
qtwebchannel qtwebengine qtwebsockets qtx11extras qtxmlpatterns
|
2016-05-03 01:50:19 +02:00
|
|
|
];
|
|
|
|
|
2016-12-03 16:57:17 +01:00
|
|
|
makeQtWrapper =
|
|
|
|
makeSetupHook
|
|
|
|
{ deps = [ makeWrapper ]; }
|
2016-11-16 03:17:45 +01:00
|
|
|
(if stdenv.isDarwin then ../make-qt-wrapper-darwin.sh else ../make-qt-wrapper.sh);
|
2016-12-03 16:57:17 +01:00
|
|
|
|
2016-12-03 16:55:39 +01:00
|
|
|
qmakeHook =
|
|
|
|
makeSetupHook
|
|
|
|
{ deps = [ self.qtbase.dev ]; }
|
2016-11-16 03:17:45 +01:00
|
|
|
(if stdenv.isDarwin then ../qmake-hook-darwin.sh else ../qmake-hook.sh);
|
2016-05-03 01:50:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
self = makeScope pkgs.newScope addPackages;
|
|
|
|
|
|
|
|
in self
|