0de2d2fbcd
This package has some outdated dependencies, so old versions of mongodb and v8 had to be re-added as well.
28 lines
721 B
Nix
28 lines
721 B
Nix
{ 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;
|
|
};
|
|
})
|