mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Chromedriver: fix download URL, update from 2.0 to 2.9, add a required lib
This commit is contained in:
parent
882721b6d0
commit
25a7190336
@ -1,17 +1,17 @@
|
||||
{ stdenv, fetchurl, cairo, fontconfig, freetype, gdk_pixbuf, glib
|
||||
, glibc, gtk, libX11, makeWrapper, nspr, nss, pango, unzip, gconf
|
||||
, libXrender, libXext
|
||||
, libXi, libXrender, libXext
|
||||
}:
|
||||
|
||||
# note: there is a i686 version available as well
|
||||
assert stdenv.system == "x86_64-linux";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chromedriver_linux64_2.0";
|
||||
name = "chromedriver_linux64";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://chromedriver.googlecode.com/files/${name}.zip";
|
||||
sha256 = "165dq5550fs6262qa2jnjvm9smwjvws2zkkz7z5v4ibfg2j3409m";
|
||||
url = "http://chromedriver.storage.googleapis.com/2.9/${name}.zip";
|
||||
sha256 = "1m5xl5pz445igvhj31hby97xbizlw05b8fc6w53zq7faw7mzm665";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip makeWrapper ];
|
||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
mv chromedriver $out/bin
|
||||
patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $out/bin/chromedriver
|
||||
wrapProgram "$out/bin/chromedriver" \
|
||||
--prefix LD_LIBRARY_PATH : "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64:${cairo}/lib:${fontconfig}/lib:${freetype}/lib:${gdk_pixbuf}/lib:${glib}/lib:${gtk}/lib:${libX11}/lib:${nspr}/lib:${nss}/lib:${pango}/lib:${libXrender}/lib:${gconf}/lib:${libXext}/lib:\$LD_LIBRARY_PATH"
|
||||
--prefix LD_LIBRARY_PATH : "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64:${cairo}/lib:${fontconfig}/lib:${freetype}/lib:${gdk_pixbuf}/lib:${glib}/lib:${gtk}/lib:${libX11}/lib:${nspr}/lib:${nss}/lib:${pango}/lib:${libXrender}/lib:${gconf}/lib:${libXext}/lib:${libXi}/lib:\$LD_LIBRARY_PATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user