about summary refs log tree commit diff
path: root/pkgs/development/libraries/v8/3.14.nix
blob: fee0f868ea922bce41fecbdb3d234a17ff963d06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, callPackage, fetchFromGitHub, python, ... } @ args:
with stdenv.lib;
let
  version = "3.14.5.10";
  sha256 = "08vhl84166x13b3cbx8y0g99yqx772zd33gawsa1nxqkyrykql6k";
in
(callPackage ./generic.nix (args // {
  inherit version sha256;
})).overrideDerivation (oldAttrs:{
  patchPhase = [
    oldAttrs.patchPhase
    "sed -i 's,#!/usr/bin/python,#!${python}/bin/python,' build/gyp_v8"
  ];

  # http://code.google.com/p/v8/issues/detail?id=2149
  NIX_CFLAGS_COMPILE = concatStringsSep " " [
    oldAttrs.NIX_CFLAGS_COMPILE
    "-Wno-unused-local-typedefs"
    "-Wno-aggressive-loop-optimizations"
  ];

  src = fetchFromGitHub {
    owner = "v8";
    repo = "v8";
    rev = "${version}";
    inherit sha256;
  };
})