git.iko.soy/typeable/nixpkgs
on master help sign in
qt5.qtwebkit: Fixes modules src being subtly broken.

b785d4813e5d0f428b9563b3cea7cc6953fc24db introduced breakage in Qt modules for 5.6 and 5.9, especially visible is Qt Webkit. This was manifested by having a non-sensical build log where it is using the top-level `src` attribute as source instead of Qt Webkit's own source. Were it not for the `src` top-level attribute (which is a legit package), the error would have been made obvious by passing `null` to `src`. This partily reverts newly introduced way `src` can be passed to a qtModule, instead relying on extending the `srcs` attrset. For ZHF #45960

commitcb380983ed941e5e40fa7423c26f363636a42233 authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateSat 8 Sep 2018, 13:29 (8 years ago) parentca2ba44
3 files changed+14−16
pkgs/development/libraries/qt-5/5.11/default.nix+13−10 pkgs/development/libraries/qt-5/modules/qtwebkit.nix−5 pkgs/development/libraries/qt-5/qtModule.nix+1−1
pkgs/development/libraries/qt-5/5.11/default.nix+13−10
@@ -34,7 +34,18 @@ let
3434 qtCompatVersion = "5.11";
3535
3636 mirror = "http://download.qt.io";
37− srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
37+ srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; } // {
38+ # Community port of the now unmaintained upstream qtwebkit.
39+ qtwebkit = {
40+ src = fetchFromGitHub {
41+ owner = "annulen";
42+ repo = "webkit";
43+ rev = "4ce8ebc4094512b9916bfa5984065e95ac97c9d8";
44+ sha256 = "05h1xnxzbf7sp3plw5dndsvpf6iigh0bi4vlj4svx0hkf1giakjf";
45+ };
46+ version = "5.212-alpha-01-26-2018";
47+ };
48+ };
3849
3950 patches = {
4051 qtbase = [
@@ -102,15 +113,7 @@ let
102113 qtwayland = callPackage ../modules/qtwayland.nix {};
103114 qtwebchannel = callPackage ../modules/qtwebchannel.nix {};
104115 qtwebengine = callPackage ../modules/qtwebengine.nix {};
105− qtwebkit = callPackage ../modules/qtwebkit.nix {
106− src = fetchFromGitHub {
107− owner = "annulen";
108− repo = "webkit";
109− rev = "4ce8ebc4094512b9916bfa5984065e95ac97c9d8";
110− sha256 = "05h1xnxzbf7sp3plw5dndsvpf6iigh0bi4vlj4svx0hkf1giakjf";
111− };
112− version = "5.212-alpha-01-26-2018";
113− };
116+ qtwebkit = callPackage ../modules/qtwebkit.nix {};
114117 qtwebsockets = callPackage ../modules/qtwebsockets.nix {};
115118 qtx11extras = callPackage ../modules/qtx11extras.nix {};
116119 qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {};
pkgs/development/libraries/qt-5/modules/qtwebkit.nix−5
@@ -5,8 +5,6 @@
55, bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby
66, darwin
77, flashplayerFix ? false
8−, src ? null
9−, version ? null
108}:
119
1210let
@@ -35,9 +33,6 @@ qtModule {
3533
3634 cmakeFlags = optionals (lib.versionAtLeast qtbase.version "5.11.0") [ "-DPORT=Qt" ];
3735
38− inherit src;
39− inherit version;
40−
4136 __impureHostDeps = optionals (stdenv.isDarwin) [
4237 "/usr/lib/libicucore.dylib"
4338 ];
pkgs/development/libraries/qt-5/qtModule.nix+1−1
@@ -8,7 +8,7 @@ args:
88
99let
1010 inherit (args) name;
11− version = if (args.version or null) == null then srcs."${name}".version else args.version;
11+ version = args.version or srcs."${name}".version;
1212 src = args.src or srcs."${name}".src;
1313in
1414