3
0
Fork 0
forked from mirrors/nixpkgs

chromium: Fix build for versions older than 21.x.

The current stable version won't build if gyp can't use svnversion from the
subversion package, so let's provide it for versions below 21.x.
This commit is contained in:
aszlig 2012-07-04 14:12:36 +02:00
parent f6e063e7fc
commit 834d8be46e

View file

@ -1,5 +1,8 @@
{ stdenv, getConfig, fetchurl, makeWrapper, which
# this is needed in order to build the versions older than 21.x
, subversion
# default dependencies
, bzip2, flac, speex
, libevent, expat, libjpeg
@ -70,12 +73,14 @@ let
use_system_v8 = false;
};
needsSubversion = stdenv.lib.versionOlder sourceInfo.version "21.0.0.0";
defaultDependencies = [
bzip2 flac speex
libevent expat libjpeg
libpng libxml2 libxslt
xdg_utils yasm zlib
];
] ++ stdenv.lib.optional needsSubversion subversion;
in stdenv.mkDerivation rec {
name = "${packageName}-${version}";