From eadbf855b0498ea8d75fd3a69e36f48271032a59 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 24 Mar 2014 03:20:12 +0100 Subject: [PATCH] chromium: Revert back to copying bundled sources. I'm giving up on this after several attempts to correctly unbundle the largest part, namely Google's WebKit fork Blink. Right now it's so much tied into the Chromium source it's going to be fairly hard to do if you're not working full time on it. Also, the intermediate steps needed to do this properly would introduce uneccesary complexity on our side, so we really need to finish this without leaving it in the "messy" state in order to not make Chromium even more difficult to maintain than it is already. However, anyone who wants to proceed on this messy step is free to revert this commit and continue doing so. In my case I'm going to try again once https://crbug.com/239107 and https://crbug.com/239181 are fixed in _stable_ (I don't want to introduce *lots* of conditionals on the version either). Signed-off-by: aszlig --- .../networking/browsers/chromium/browser.nix | 130 ++---------------- 1 file changed, 12 insertions(+), 118 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/browser.nix b/pkgs/applications/networking/browsers/chromium/browser.nix index 321c03a3ede..34e8347b2d6 100644 --- a/pkgs/applications/networking/browsers/chromium/browser.nix +++ b/pkgs/applications/networking/browsers/chromium/browser.nix @@ -110,126 +110,19 @@ in stdenv.mkDerivation rec { ++ optional cupsSupport libgcrypt ++ optional pulseSupport pulseaudio; - prePatch = let - lntree = [ "cp" "-dsr" "--no-preserve=mode" ]; - lntreeList = concatStringsSep ", " (map (arg: "'${arg}'") lntree); - lntreeSh = concatStringsSep " " lntree; - in '' - ${lntreeSh} "${source.main}"/* . - ${lntreeSh} "${source.sandbox}" sandbox - - ensureDir third_party - - # ONLY the dependencies we can't use from nixpkgs! - for bundled in ${concatStringsSep " " ([ - # This is in preparation of splitting up the bundled sources into separate - # derivations so we some day can tremendously reduce build time. - "adobe" - "angle" - "cacheinvalidation" - "cld_2" - "codesighs" - "cros_dbus_cplusplus" - "cros_system_api" - "flot" - "freetype2" - "hunspell" - "iccjpeg" - "jinja2" - "JSON" - "jstemplate" - "khronos" - "leveldatabase" - "libaddressinput" - "libjingle" - "libmtp" - "libphonenumber" - "libsrtp" - "libXNVCtrl" - "libyuv" - "lss" - "lzma_sdk" - "markupsafe" - "mesa" - "modp_b64" - "mt19937ar" - "mtpd" - "npapi" - "ots" - "ply" - "protobuf" - "qcms" - "readability" - "safe_browsing" - "sfntly" - "skia" - "smhasher" - "speech-dispatcher" - "tcmalloc" - "trace-viewer" - "undoview" - "usb_ids" - "usrsctp" - "WebKit" - "webrtc" - "widevine" - "x86inc" - "yasm" - ] ++ optionals (!versionOlder source.version "34.0.0.0") [ - "brotli" - "libwebm" - "nss.isolate" - "polymer" - ])}; do - echo -n "Linking ${source.bundled}/$bundled to third_party/..." >&2 - ${lntreeSh} "${source.bundled}/$bundled" third_party/ - echo " done." >&2 - done - - # Everything else is decided based on gypFlags. - PYTHONPATH="build/linux/unbundle:$PYTHONPATH" python <