lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

v8_6_x: init at 6.2.414.15

+218
+167
pkgs/development/libraries/v8/6_x.nix
··· 1 + { stdenv, lib, fetchgit, fetchFromGitHub, gn, ninja, python, glib, pkgconfig 2 + , doCheck ? false 3 + , snapshot ? true 4 + }: 5 + 6 + let 7 + arch = if stdenv.isArm 8 + then if stdenv.is64bit 9 + then"arm64" 10 + else "arm" 11 + else if stdenv.is64bit 12 + then"x64" 13 + else "ia32"; 14 + git_url = "https://chromium.googlesource.com"; 15 + 16 + deps = { 17 + "base/trace_event/common" = fetchgit { 18 + url = "${git_url}/chromium/src/base/trace_event/common.git"; 19 + rev = "65d1d42a5df6c0a563a6fdfa58a135679185e5d9"; 20 + sha256 = "0ikk0dj12adzr0138jrmwzhx8n9sl5qzs86a3mc3gva08a8wc84p"; 21 + }; 22 + "build" = fetchgit { 23 + url = "${git_url}/chromium/src/build.git"; 24 + rev = "48a2b7b39debc7c77c868c9ddb0a360af1ebc367"; 25 + sha256 = "0aj554dfdbwnikwaapznfq55wkwbvg4114h7qamixy8ryjkaiy0k"; 26 + }; 27 + "buildtools" = fetchgit { 28 + url = "${git_url}/chromium/buildtools.git"; 29 + rev = "5af0a3a8b89827a8634132080a39ab4b63dee489"; 30 + sha256 = "1841803m40w1hmnmm7qzdpk4b6q1m8cb7q4hsflqfpddpf4lp3v1"; 31 + }; 32 + "test/benchmarks/data" = fetchgit { 33 + url = "${git_url}/v8/deps/third_party/benchmarks.git"; 34 + rev = "05d7188267b4560491ff9155c5ee13e207ecd65f"; 35 + sha256 = "0ad2ay14bn67d61ks4dmzadfnhkj9bw28r4yjdjjyzck7qbnzchl"; 36 + }; 37 + "test/mozilla/data" = fetchgit { 38 + url = "${git_url}/v8/deps/third_party/mozilla-tests.git"; 39 + rev = "f6c578a10ea707b1a8ab0b88943fe5115ce2b9be"; 40 + sha256 = "0rfdan76yfawqxbwwb35aa57b723j3z9fx5a2w16nls02yk2kqyn"; 41 + }; 42 + "test/test262/data" = fetchgit { 43 + url = "${git_url}/external/github.com/tc39/test262.git"; 44 + rev = "1b911a8f8abf4cb63882cfbe72dcd4c82bb8ad91"; 45 + sha256 = "1hbp7vv41k7jka8azc78hhw4qng7gckr6dz1van7cyd067znwvr4"; 46 + }; 47 + "test/test262/harness" = fetchgit { 48 + url = "${git_url}/external/github.com/test262-utils/test262-harness-py.git"; 49 + rev = "0f2acdd882c84cff43b9d60df7574a1901e2cdcd"; 50 + sha256 = "00brj5avp43yamc92kinba2mg3a2x1rcd7wnm7z093l73idprvkp"; 51 + }; 52 + "test/wasm-js" = fetchgit { 53 + url = "${git_url}/external/github.com/WebAssembly/spec.git"; 54 + rev = "17b4a4d98c80b1ec736649d5a73496a0e6d12d4c"; 55 + sha256 = "03nyrrqffzj6xrmqi1v7f9m9395bdk53x301fy5mcq4hhpq6rsjr"; 56 + }; 57 + "testing/gmock" = fetchgit { 58 + url = "${git_url}/external/googlemock.git"; 59 + rev = "0421b6f358139f02e102c9c332ce19a33faf75be"; 60 + sha256 = "1xiky4v98maxs8fg1avcd56y0alv3hw8qyrlpd899zgzbq2k10pp"; 61 + }; 62 + "testing/gtest" = fetchgit { 63 + url = "${git_url}/external/github.com/google/googletest.git"; 64 + rev = "6f8a66431cb592dad629028a50b3dd418a408c87"; 65 + sha256 = "0bdba2lr6pg15bla9600zg0r0vm4lnrx0wqz84p376wfdxra24vw"; 66 + }; 67 + "third_party/icu" = fetchgit { 68 + url = "${git_url}/chromium/deps/icu.git"; 69 + rev = "08cb956852a5ccdba7f9c941728bb833529ba3c6"; 70 + sha256 = "0vn2iv068kmcjqqx5cgyha80x9iraz11hpx3q4n3rkvrlvbb3d7b"; 71 + }; 72 + "third_party/instrumented_libraries" = fetchgit { 73 + url = "${git_url}/chromium/src/third_party/instrumented_libraries.git"; 74 + rev = "644afd349826cb68204226a16c38bde13abe9c3c"; 75 + sha256 = "0d1vkwilgv1a4ghazn623gwmm7h51padpfi94qrmig1y748xfwfa"; 76 + }; 77 + # templates of code generator require jinja2 2.8 (while nixpkgs has 2.9.5, which breaks the template) 78 + "third_party/jinja2" = fetchgit { 79 + url = "${git_url}/chromium/src/third_party/jinja2.git"; 80 + rev = "d34383206fa42d52faa10bb9931d6d538f3a57e0"; 81 + sha256 = "0d9hyw0bvp3p0dbwy833cm9vdqxcam0qbm9jc561ynphddxlkmgd"; 82 + }; 83 + "third_party/markupsafe" = fetchgit { 84 + url = "${git_url}/chromium/src/third_party/markupsafe.git"; 85 + rev = "8f45f5cfa0009d2a70589bcda0349b8cb2b72783"; 86 + sha256 = "168ppjmicfdh4i1l0l25s86mdbrz9fgxmiq1rx33x79mph41scfz"; 87 + }; 88 + "tools/clang" = fetchgit { 89 + url = "${git_url}/chromium/src/tools/clang.git"; 90 + rev = "40f69660bf3cd407e72b8ae240fdd6c513dddbfe"; 91 + sha256 = "1plkb9dcn34yd6lad7w59s9vqwmcc592dasgdk232spkafpg8qcf"; 92 + }; 93 + }; 94 + 95 + in 96 + 97 + stdenv.mkDerivation rec { 98 + name = "v8-${version}"; 99 + version = "6.2.414.15"; 100 + 101 + inherit doCheck; 102 + 103 + src = fetchFromGitHub { 104 + owner = "v8"; 105 + repo = "v8"; 106 + rev = version; 107 + sha256 = "1c1pjj72mj097rak2zsmm2iqn00iw93dc6gvxd89p4lbfaiilsn8"; 108 + }; 109 + 110 + postUnpack = '' 111 + ${lib.concatStringsSep "\n" ( 112 + lib.mapAttrsToList (n: v: '' 113 + mkdir -p $sourceRoot/${n} 114 + cp -r ${v}/* $sourceRoot/${n} 115 + '') deps)} 116 + ''; 117 + 118 + prePatch = '' 119 + # use our gn, not the bundled one 120 + sed -i -e 's#gn_path = .*#gn_path = "${gn}/bin/gn"#' tools/mb/mb.py 121 + 122 + # disable tests 123 + if [ "$doCheck" = "" ]; then sed -i -e '/"test:gn_all",/d' BUILD.gn; fi 124 + 125 + chmod u+w build/config build/config/sysroot.gni 126 + sed -i build/config/sysroot.gni \ 127 + -e '/use_sysroot =/ { s#\(use_sysroot =\).*#\1 false#; :a n; /current_cpu/ { s/^/#/; ba }; }' 128 + ''; 129 + 130 + configurePhase = '' 131 + tools/dev/v8gen.py -vv ${arch}.release -- \ 132 + is_component_build=true \ 133 + ${if snapshot then "v8_use_external_startup_data=false" else "v8_use_snapshot=false" } \ 134 + is_clang=false \ 135 + linux_use_bundled_binutils=false \ 136 + treat_warnings_as_errors=false 137 + ''; 138 + 139 + nativeBuildInputs = [ gn ninja pkgconfig ]; 140 + buildInputs = [ python glib ]; 141 + 142 + buildPhase = '' 143 + ninja -C out.gn/x64.release/ 144 + ''; 145 + 146 + enableParallelBuilding = true; 147 + 148 + installPhase = '' 149 + install -vD out.gn/x64.release/d8 "$out/bin/d8" 150 + install -vD out.gn/x64.release/mksnapshot "$out/bin/mksnapshot" 151 + mkdir -p "$out/lib" 152 + for f in libicui18n.so libicuuc.so libv8_libbase.so libv8_libplatform.so libv8.so; do 153 + install -vD out.gn/${arch}.release/$f "$out/lib/$f" 154 + done 155 + install -vD out.gn/${arch}.release/icudtl.dat "$out/lib/icudtl.dat" 156 + mkdir -p "$out/include" 157 + cp -vr include/*.h "$out/include" 158 + cp -vr include/libplatform "$out/include" 159 + ''; 160 + 161 + meta = with lib; { 162 + description = "Google's open source JavaScript engine"; 163 + maintainers = with maintainers; [ cstrahan proglodyte ]; 164 + platforms = platforms.linux; 165 + license = licenses.bsd3; 166 + }; 167 + }
+47
pkgs/development/libraries/v8/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #! nix-shell -i bash -p curl -p nix-prefetch-git 3 + VERSION_OVERVIEW=https://omahaproxy.appspot.com/all?os=linux 4 + TARGET_CHANNEL=beta 5 + FILE_PATH=6_x.nix 6 + 7 + set -eo pipefail 8 + 9 + v8_version=$(curl -s "$VERSION_OVERVIEW" | awk -F "," "\$2 ~ /${TARGET_CHANNEL}/ { print \$11 }") 10 + 11 + echo "Using V8 version --> $v8_version" 12 + sed -e "s#\\(version = \\)\"[0-9\.]*\"#\1\"$v8_version\"#" -i ${FILE_PATH} 13 + 14 + sha256=$(nix-prefetch-git --no-deepClone https://github.com/v8/v8.git "refs/tags/${v8_version}" \ 15 + | sed -ne '/sha256/ { s#.*: "\(.*\)".*#\1#; p }') 16 + sed -e "/repo = \"v8\"/ { n;n; s#\".*\"#\"${sha256}\"# }" -i ${FILE_PATH} 17 + 18 + deps="$(mktemp)" 19 + 20 + curl -s -o "$deps" "https://raw.githubusercontent.com/v8/v8/${v8_version}/DEPS" 21 + echo $deps 22 + 23 + sed -ne '/= fetchgit {/ { s/.*"\(.*\)".*/\1/; p }' < ${FILE_PATH} | while read dep; do 24 + echo "Processing dependency --> $dep" 25 + escaped_dep=$(echo "$dep" | sed -e 's#/#\\/#g') 26 + dep_rev=$(sed -ne "/\"v8\/${escaped_dep}\":/ { n; s#.*+ \"##; s#\".*##; p }" "$deps") 27 + 28 + if [ "$dep_rev" = "" ]; then 29 + echo "Failed to resolve dependency $dep, not listed in DEPS file" 30 + rm -f "$deps" 31 + exit 2 32 + fi 33 + 34 + repo_url=$(sed -ne "/\"${escaped_dep}\" = fetchgit/ { n; s/.*\"\(.*\)\".*/\1/; s#\${git_url}#https://chromium.googlesource.com#; p }" ${FILE_PATH}) 35 + sha256=$(nix-prefetch-git --no-deepClone "$repo_url" "$dep_rev" 2>/dev/null | sed -ne '/sha256/ { s#.*: "\(.*\)".*#\1#; p }') 36 + 37 + if [ "$sha256" = "" ]; then 38 + echo "Failed to get sha256 via nix-prefetch-git $repo_url $dep_rev" 39 + rm -f "$deps" 40 + exit 2 41 + fi 42 + 43 + sed -e "/\"${escaped_dep}\" = fetchgit/ { n; n; s/\".*\"/\"${dep_rev}\"/; n; s/\".*\"/\"${sha256}\"/ }" -i ${FILE_PATH} 44 + done 45 + 46 + rm -f "$deps" 47 + echo done.
+4
pkgs/top-level/all-packages.nix
··· 10726 10726 stdenv = overrideCC stdenv gcc5; 10727 10727 }; 10728 10728 10729 + v8_6_x = callPackage ../development/libraries/v8/6_x.nix { 10730 + inherit (python2Packages) python; 10731 + }; 10732 + 10729 10733 v8 = callPackage ../development/libraries/v8 { 10730 10734 inherit (python2Packages) python gyp; 10731 10735 cctools = darwin.cctools;