Merge pull request #72419 from WilliButz/rubyPackages/remove-global-v8-pinning
rubyPackages: remove global v8 pinning
This commit is contained in:
commit
01f6d4d36f
@ -80,7 +80,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Google's open source JavaScript engine";
|
description = "Google's open source JavaScript engine";
|
||||||
platforms = platforms.linux;
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,81 +0,0 @@
|
|||||||
{ stdenv, lib, fetchurl, gyp, readline, python, which, icu, utillinux, cctools }:
|
|
||||||
|
|
||||||
assert readline != null;
|
|
||||||
|
|
||||||
let
|
|
||||||
arch = if stdenv.isAarch32
|
|
||||||
then (if stdenv.is64bit then "arm64" else "arm")
|
|
||||||
else (if stdenv.is64bit then "x64" else "ia32");
|
|
||||||
armHardFloat = stdenv.isAarch32 && (stdenv.hostPlatform.platform.gcc.float or null) == "hard";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "v8";
|
|
||||||
version = "3.16.14.11";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://commondatastorage.googleapis.com/chromium-browser-official/"
|
|
||||||
+ "${pname}-${version}.tar.bz2";
|
|
||||||
sha256 = "1gpf2xvhxfs5ll3m2jlslsx9jfjbmrbz55iq362plflrvf8mbxhj";
|
|
||||||
};
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -i 's/-Werror//' build/standalone.gypi build/common.gypi
|
|
||||||
'';
|
|
||||||
|
|
||||||
configurePhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
||||||
export GYP_DEFINES="mac_deployment_target=$MACOSX_DEPLOYMENT_TARGET"
|
|
||||||
'' + ''
|
|
||||||
PYTHONPATH="tools/generate_shim_headers:$PYTHONPATH" \
|
|
||||||
${gyp}/bin/gyp \
|
|
||||||
-f make \
|
|
||||||
--generator-output="out" \
|
|
||||||
-Dflock_index=0 \
|
|
||||||
-Dv8_enable_i18n_support=1 \
|
|
||||||
-Duse_system_icu=1 \
|
|
||||||
-Dconsole=readline \
|
|
||||||
-Dcomponent=shared_library \
|
|
||||||
-Dv8_target_arch=${arch} \
|
|
||||||
${lib.optionalString armHardFloat "-Dv8_use_arm_eabi_hardfloat=true"} \
|
|
||||||
--depth=. -Ibuild/standalone.gypi \
|
|
||||||
build/all.gyp
|
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
||||||
sed -i 's@/usr/bin/env python@${python}/bin/python@g' out/gyp-mac-tool
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ which ];
|
|
||||||
buildInputs = [ readline python icu ]
|
|
||||||
++ lib.optional stdenv.isLinux utillinux
|
|
||||||
++ lib.optional stdenv.isDarwin cctools;
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error -w";
|
|
||||||
|
|
||||||
buildFlags = [
|
|
||||||
"-C out"
|
|
||||||
"builddir=$(CURDIR)/Release"
|
|
||||||
"BUILDTYPE=Release"
|
|
||||||
];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -vD out/Release/d8 "$out/bin/d8"
|
|
||||||
${if stdenv.isDarwin then ''
|
|
||||||
install -vD out/Release/libv8.dylib "$out/lib/libv8.dylib"
|
|
||||||
'' else ''
|
|
||||||
install -vD out/Release/lib.target/libv8.so "$out/lib/libv8.so"
|
|
||||||
''}
|
|
||||||
cp -vr include "$out/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = if stdenv.isDarwin then ''
|
|
||||||
install_name_tool -change /usr/local/lib/libv8.dylib $out/lib/libv8.dylib $out/bin/d8
|
|
||||||
install_name_tool -id $out/lib/libv8.dylib $out/lib/libv8.dylib
|
|
||||||
'' else null;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "V8 is Google's open source JavaScript engine";
|
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
|
||||||
license = licenses.bsd3;
|
|
||||||
};
|
|
||||||
}
|
|
@ -18,7 +18,7 @@
|
|||||||
# (to make gems behave if necessary).
|
# (to make gems behave if necessary).
|
||||||
|
|
||||||
{ lib, fetchurl, writeScript, ruby, kerberos, libxml2, libxslt, python, stdenv, which
|
{ lib, fetchurl, writeScript, ruby, kerberos, libxml2, libxslt, python, stdenv, which
|
||||||
, libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick
|
, libiconv, postgresql, v8, clang, sqlite, zlib, imagemagick
|
||||||
, pkgconfig , ncurses, xapian, gpgme, utillinux, tzdata, icu, libffi
|
, pkgconfig , ncurses, xapian, gpgme, utillinux, tzdata, icu, libffi
|
||||||
, cmake, libssh2, openssl, libmysqlclient, darwin, git, perl, pcre, gecode_3, curl
|
, cmake, libssh2, openssl, libmysqlclient, darwin, git, perl, pcre, gecode_3, curl
|
||||||
, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
|
, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
|
||||||
@ -29,8 +29,6 @@
|
|||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
let
|
let
|
||||||
v8 = v8_3_16_14;
|
|
||||||
|
|
||||||
rainbow_rake = buildRubyGem {
|
rainbow_rake = buildRubyGem {
|
||||||
pname = "rake";
|
pname = "rake";
|
||||||
gemName = "rake";
|
gemName = "rake";
|
||||||
@ -567,14 +565,6 @@ in
|
|||||||
buildInputs = [ freetds ];
|
buildInputs = [ freetds ];
|
||||||
};
|
};
|
||||||
|
|
||||||
therubyracer = attrs: {
|
|
||||||
buildFlags = [
|
|
||||||
"--with-v8-dir=${v8}"
|
|
||||||
"--with-v8-include=${v8}/include"
|
|
||||||
"--with-v8-lib=${v8}/lib"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
typhoeus = attrs: {
|
typhoeus = attrs: {
|
||||||
buildInputs = [ curl ];
|
buildInputs = [ curl ];
|
||||||
};
|
};
|
||||||
|
@ -144,7 +144,6 @@ source 'https://rubygems.org' do
|
|||||||
gem 'snappy'
|
gem 'snappy'
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
gem 'taglib-ruby'
|
gem 'taglib-ruby'
|
||||||
gem 'therubyracer'
|
|
||||||
gem 'thrift'
|
gem 'thrift'
|
||||||
gem 'tilt'
|
gem 'tilt'
|
||||||
gem 'tiny_tds'
|
gem 'tiny_tds'
|
||||||
|
@ -392,8 +392,9 @@ mapAliases ({
|
|||||||
ultrastardx-beta = ultrastardx; # added 2017-08-12
|
ultrastardx-beta = ultrastardx; # added 2017-08-12
|
||||||
usb_modeswitch = usb-modeswitch; # added 2016-05-10
|
usb_modeswitch = usb-modeswitch; # added 2016-05-10
|
||||||
usbguard-nox = usbguard; # added 2019-09-04
|
usbguard-nox = usbguard; # added 2019-09-04
|
||||||
valadoc = throw "deprecated 2019-10-10: valadoc was merged into vala 0.38";
|
|
||||||
v4l_utils = v4l-utils; # added 2019-08-07
|
v4l_utils = v4l-utils; # added 2019-08-07
|
||||||
|
v8_3_16_14 = throw "removed 2019-11-01: no longer referenced by other packages";
|
||||||
|
valadoc = throw "deprecated 2019-10-10: valadoc was merged into vala 0.38";
|
||||||
vimbWrapper = vimb; # added 2015-01
|
vimbWrapper = vimb; # added 2015-01
|
||||||
vimprobable2Wrapper = vimprobable2; # added 2015-01
|
vimprobable2Wrapper = vimprobable2; # added 2015-01
|
||||||
virtviewer = virt-viewer; # added 2015-12-24
|
virtviewer = virt-viewer; # added 2015-12-24
|
||||||
|
@ -14170,12 +14170,6 @@ in
|
|||||||
stdenv = gcc5Stdenv;
|
stdenv = gcc5Stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
v8_3_16_14 = callPackage ../development/libraries/v8/3.16.14.nix {
|
|
||||||
inherit (python2Packages) python gyp;
|
|
||||||
cctools = darwin.cctools;
|
|
||||||
stdenv = if stdenv.isDarwin then stdenv else gcc5Stdenv;
|
|
||||||
};
|
|
||||||
|
|
||||||
v8_5_x = callPackage ../development/libraries/v8/5_x.nix ({
|
v8_5_x = callPackage ../development/libraries/v8/5_x.nix ({
|
||||||
inherit (python2Packages) python gyp;
|
inherit (python2Packages) python gyp;
|
||||||
icu = icu58; # v8-5.4.232 fails against icu4c-59.1
|
icu = icu58; # v8-5.4.232 fails against icu4c-59.1
|
||||||
|
@ -2466,17 +2466,6 @@
|
|||||||
};
|
};
|
||||||
version = "1.8.0";
|
version = "1.8.0";
|
||||||
};
|
};
|
||||||
therubyracer = {
|
|
||||||
dependencies = ["libv8" "ref"];
|
|
||||||
groups = ["default"];
|
|
||||||
platforms = [];
|
|
||||||
source = {
|
|
||||||
remotes = ["https://rubygems.org"];
|
|
||||||
sha256 = "1g95bzs2axjglyjyj6xvsywqgr80bnzlkw7mddxx1fdrak5wni2q";
|
|
||||||
type = "gem";
|
|
||||||
};
|
|
||||||
version = "0.12.3";
|
|
||||||
};
|
|
||||||
thor = {
|
thor = {
|
||||||
groups = ["default"];
|
groups = ["default"];
|
||||||
platforms = [];
|
platforms = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user