Skip to content

Commit aa08b8e

Browse files
committed
qt5.qtwebengine: remove dead conditions for pre 5.12 support
This doesn't change the derivation.
1 parent 2472122 commit aa08b8e

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

pkgs/development/libraries/qt-5/modules/qtwebengine.nix

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{ qtModule, qtCompatVersion,
2-
qtdeclarative, qtquickcontrols, qtlocation, qtwebchannel
1+
{ qtModule
2+
, qtdeclarative, qtquickcontrols, qtlocation, qtwebchannel
33

44
, bison, coreutils, flex, git, gperf, ninja, pkgconfig, python2, which
55

@@ -54,14 +54,6 @@ qtModule {
5454
''
5555
( cd src/3rdparty/chromium; patchShebangs . )
5656
''
57-
# Patch Chromium build files
58-
+ optionalString (lib.versionOlder qtCompatVersion "5.12") ''
59-
substituteInPlace ./src/3rdparty/chromium/build/common.gypi --replace /bin/echo ${coreutils}/bin/echo
60-
substituteInPlace ./src/3rdparty/chromium/v8/gypfiles/toolchain.gypi \
61-
--replace /bin/echo ${coreutils}/bin/echo
62-
substituteInPlace ./src/3rdparty/chromium/v8/gypfiles/standalone.gypi \
63-
--replace /bin/echo ${coreutils}/bin/echo
64-
''
6557
# Prevent Chromium build script from making the path to `clang` relative to
6658
# the build directory. `clang_base_path` is the value of `QMAKE_CLANG_DIR`
6759
# from `src/core/config/mac_osx.pri`.
@@ -91,10 +83,10 @@ qtModule {
9183
''
9284
# Following is required to prevent a build error:
9385
# ninja: error: '/nix/store/z8z04p0ph48w22rqzx7ql67gy8cyvidi-SDKs/MacOSX10.12.sdk/usr/include/mach/exc.defs', needed by 'gen/third_party/crashpad/crashpad/util/mach/excUser.c', missing and no known rule to make it
94-
+ (optionalString (lib.versionAtLeast qtCompatVersion "5.11") ''
86+
+ ''
9587
substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \
9688
--replace '$sysroot/usr' "${darwin.xnu}"
97-
'')
89+
''
9890
+ ''
9991
# Apple has some secret stuff they don't share with OpenBSM
10092
substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \

0 commit comments

Comments
 (0)