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}"
|
||||
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
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chromedriver-${version}";
|
||||
@ -36,14 +44,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
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 = ''
|
||||
install -m755 -D chromedriver $out/bin/chromedriver
|
||||
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||
|
Loading…
Reference in New Issue
Block a user