@@ -18,7 +18,6 @@ let
1818 ]);
1919
2020 pre44 = versionOlder version "44.0.0.0";
21− is44 = versionOlder version "45.0.0.0" && !pre44;
2221
2322in stdenv.mkDerivation {
2423 name = "chromium-source-${version}";
@@ -47,39 +46,9 @@ in stdenv.mkDerivation {
4746 done
4847 '';
4948
50− patches = let
51− baseURL = "https://codereview.chromium.org/download";
52−
53− mkBlinkFix = issue: sha256: fetchpatch {
54− url = "${baseURL}/issue${issue}.diff";
55− inherit sha256;
56− postFetch = ''
57− sed -i -e 's,^\(---\|+++\) *[ab]/,&third_party/WebKit/,' "$out"
58− '';
59− };
60−
61− fixes44 = [
62− # WebPluginContainer::setNeedsLayout
63− # https://codereview.chromium.org/1157943002/
64− (mkBlinkFix "1157943002_20001"
65− "0932yd15zlh2g5a5bbm6qrnfvv22jlfdg8pj0w9z58m5zdzw1p82")
66− # WebRuntimeFeatures::enablePermissionsAPI
67− # https://codereview.chromium.org/1156113007/
68− (mkBlinkFix "1156113007_1"
69− "1v76brrgdziv1q62ba4bimg0my2dmnkyl68b21nv2vw661v0hzwh")
70− # Revert of https://codereview.chromium.org/1150543002/
71− (fetchpatch {
72− url = "${baseURL}/issue1150543002_1.diff";
73− sha256 = "0x9sya0m1zcb2vcp2vfss88qqdrh6bzcbx2ngfiql7rkbynnpqn6";
74− postFetch = ''
75− ${patchutils}/bin/interdiff "$out" /dev/null > reversed.patch
76− mv reversed.patch "$out"
77− '';
78− })
79− ];
80− pluginPaths = if pre44 then singleton ./nix_plugin_paths_42.patch
81− else singleton ./nix_plugin_paths_44.patch;
82− in pluginPaths ++ optionals is44 fixes44;
49+ patches = if pre44
50+ then singleton ./nix_plugin_paths_42.patch
51+ else singleton ./nix_plugin_paths_44.patch;
8352
8453 patchPhase = let
8554 diffmod = sym: "/^${sym} /{s/^${sym} //;${transform ""};s/^/${sym} /}";