chromedriver: fix on Darwin
A refactor broke it by forcing a bunch of Linux-specific dependencies on Darwin that only get used in the patchelf invocation.
This commit is contained in:
parent
4ef4a17f77
commit
b8538c6801
@ -22,6 +22,14 @@ let
|
|||||||
|
|
||||||
spec = allSpecs."${stdenv.system}"
|
spec = allSpecs."${stdenv.system}"
|
||||||
or (throw "missing chromedriver binary for ${stdenv.system}");
|
or (throw "missing chromedriver binary for ${stdenv.system}");
|
||||||
|
|
||||||
|
libs = stdenv.lib.makeLibraryPath [
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
cairo fontconfig freetype
|
||||||
|
gdk_pixbuf glib gtk2 gconf
|
||||||
|
libX11 nspr nss pango libXrender
|
||||||
|
gconf libXext libXi
|
||||||
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "chromedriver-${version}";
|
name = "chromedriver-${version}";
|
||||||
@ -36,14 +44,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
unpackPhase = "unzip $src";
|
unpackPhase = "unzip $src";
|
||||||
|
|
||||||
libs = stdenv.lib.makeLibraryPath [
|
|
||||||
stdenv.cc.cc.lib
|
|
||||||
cairo fontconfig freetype
|
|
||||||
gdk_pixbuf glib gtk2 gconf
|
|
||||||
libX11 nspr nss pango libXrender
|
|
||||||
gconf libXext libXi
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -m755 -D chromedriver $out/bin/chromedriver
|
install -m755 -D chromedriver $out/bin/chromedriver
|
||||||
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
|
Loading…
Reference in New Issue
Block a user