2009-10-30 08:45:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ffmpeg
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, glib
|
|
|
|
, libXrender
|
|
|
|
, gtk
|
|
|
|
, nspr
|
|
|
|
, nss
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, alsaLib
|
|
|
|
, libX11
|
|
|
|
, GConf
|
|
|
|
, libXext
|
2009-10-30 12:28:44 +00:00
|
|
|
, libXt
|
2009-10-30 08:45:58 +00:00
|
|
|
, atk
|
|
|
|
, makeWrapper
|
|
|
|
, unzip
|
2009-11-05 10:50:57 +00:00
|
|
|
, expat
|
|
|
|
, zlib
|
2009-10-30 08:45:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" ;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-11-05 10:50:57 +00:00
|
|
|
name = "chrome-${version}";
|
2009-11-11 15:34:21 +00:00
|
|
|
version = "31663";
|
2009-10-30 08:45:58 +00:00
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2009-11-05 10:50:57 +00:00
|
|
|
url = "http://build.chromium.org/buildbot/snapshots/chromium-rel-linux-64/${version}/chrome-linux.zip";
|
2009-11-11 15:34:21 +00:00
|
|
|
sha256 = "0dl3kvfwlg7clq8v67wx8xydsj181qmmpg877s75ys9h1gb01gr6";
|
2009-10-30 08:45:58 +00:00
|
|
|
}
|
|
|
|
else if stdenv.system == "i686-linux" then
|
|
|
|
fetchurl {
|
2009-11-05 10:50:57 +00:00
|
|
|
url = "http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/${version}/chrome-linux.zip";
|
2009-11-11 15:34:21 +00:00
|
|
|
sha256 = "1d8fmw0rar44nabqw9sfv84vfw4a2hb9mi1j7a60nwb23wzl80s8";
|
2009-10-30 08:45:58 +00:00
|
|
|
}
|
|
|
|
else null;
|
|
|
|
|
|
|
|
phases="unpackPhase installPhase";
|
|
|
|
|
|
|
|
buildInputs = [makeWrapper unzip];
|
|
|
|
|
|
|
|
libPath =
|
|
|
|
stdenv.lib.makeLibraryPath
|
2009-11-05 10:50:57 +00:00
|
|
|
[ stdenv.glibc stdenv.gcc.gcc ffmpeg cairo pango glib libXrender gtk nspr nss fontconfig freetype alsaLib libX11 GConf libXext atk libXt expat zlib] ;
|
2009-10-30 08:45:58 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
ensureDir $out/chrome
|
|
|
|
ensureDir $out/lib
|
|
|
|
|
|
|
|
cp -R * $out/chrome
|
|
|
|
ln -s $out/chrome/chrome $out/bin/chrome
|
|
|
|
|
|
|
|
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath ${libPath}:$out/lib:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib $out/chrome/chrome
|
|
|
|
|
|
|
|
ln -s ${nss}/lib/libsmime3.so $out/lib/libsmime3.so.1d
|
|
|
|
ln -s ${nss}/lib/libnssutil3.so $out/lib/libnssutil3.so.1d
|
|
|
|
ln -s ${nss}/lib/libssl3.so $out/lib/libssl3.so.1d
|
|
|
|
ln -s ${nss}/lib/libnss3.so $out/lib/libnss3.so.1d
|
|
|
|
ln -s ${nspr}/lib/libnspr4.so $out/lib/libnspr4.so.0d
|
|
|
|
ln -s ${nspr}/lib/libplds4.so $out/lib/libplds4.so.0d
|
|
|
|
ln -s ${nspr}/lib/libplc4.so $out/lib/libplc4.so.0d
|
|
|
|
'';
|
|
|
|
|
2009-10-30 12:28:44 +00:00
|
|
|
meta = {
|
|
|
|
description = "";
|
|
|
|
};
|
2009-10-30 08:45:58 +00:00
|
|
|
}
|