chrome 20565
svn path=/nixpkgs/trunk/; revision=18046
This commit is contained in:
parent
c22d173893
commit
d025709a8a
68
pkgs/applications/networking/browsers/chromium/default.nix
Normal file
68
pkgs/applications/networking/browsers/chromium/default.nix
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, ffmpeg
|
||||||
|
, cairo
|
||||||
|
, pango
|
||||||
|
, glib
|
||||||
|
, libXrender
|
||||||
|
, gtk
|
||||||
|
, nspr
|
||||||
|
, nss
|
||||||
|
, fontconfig
|
||||||
|
, freetype
|
||||||
|
, alsaLib
|
||||||
|
, libX11
|
||||||
|
, GConf
|
||||||
|
, libXext
|
||||||
|
, atk
|
||||||
|
, makeWrapper
|
||||||
|
, unzip
|
||||||
|
, patchelf05
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" ;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "chrome-20565";
|
||||||
|
|
||||||
|
src =
|
||||||
|
if stdenv.system == "x86_64-linux" then
|
||||||
|
fetchurl {
|
||||||
|
url = http://build.chromium.org/buildbot/snapshots/chromium-rel-linux-64/30565/chrome-linux.zip;
|
||||||
|
sha256 = "0ngxbb27g6yqwllkbwyb41vldz00nr5r0rfb3b0arznql2dkynhy";
|
||||||
|
}
|
||||||
|
else if stdenv.system == "i686-linux" then
|
||||||
|
fetchurl {
|
||||||
|
url = http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/30565/chrome-linux.zip;
|
||||||
|
sha256 = "0q5432zn9jhy54s0w0xgdc2y0h7a51b8acc782s7j179hcgfa30a";
|
||||||
|
}
|
||||||
|
else null;
|
||||||
|
|
||||||
|
phases="unpackPhase installPhase";
|
||||||
|
|
||||||
|
buildInputs = [makeWrapper unzip];
|
||||||
|
|
||||||
|
libPath =
|
||||||
|
stdenv.lib.makeLibraryPath
|
||||||
|
[ stdenv.glibc stdenv.gcc.gcc ffmpeg cairo pango glib libXrender gtk nspr nss fontconfig freetype alsaLib libX11 GConf libXext atk ] ;
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
@ -6572,6 +6572,13 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
chrome = import ../applications/networking/browsers/chromium {
|
||||||
|
inherit stdenv fetchurl ffmpeg cairo nspr nss fontconfig freetype alsaLib makeWrapper unzip patchelf05;
|
||||||
|
inherit (xlibs) libX11 libXext libXrender ;
|
||||||
|
inherit (gtkLibs) gtk glib pango atk;
|
||||||
|
inherit (gnome) GConf;
|
||||||
|
};
|
||||||
|
|
||||||
cinelerra = import ../applications/video/cinelerra {
|
cinelerra = import ../applications/video/cinelerra {
|
||||||
inherit fetchurl stdenv
|
inherit fetchurl stdenv
|
||||||
automake autoconf libtool
|
automake autoconf libtool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user