pkgs/development/tools: stdenv.lib -> lib
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
upstream-info = (stdenv.lib.importJSON ../../../../applications/networking/browsers/chromium/upstream-info.json).stable.chromedriver;
|
||||
upstream-info = (lib.importJSON ../../../../applications/networking/browsers/chromium/upstream-info.json).stable.chromedriver;
|
||||
allSpecs = {
|
||||
x86_64-linux = {
|
||||
system = "linux64";
|
||||
@@ -21,7 +21,7 @@ let
|
||||
spec = allSpecs.${stdenv.hostPlatform.system}
|
||||
or (throw "missing chromedriver binary for ${stdenv.hostPlatform.system}");
|
||||
|
||||
libs = stdenv.lib.makeLibraryPath [
|
||||
libs = lib.makeLibraryPath [
|
||||
stdenv.cc.cc.lib
|
||||
cairo fontconfig freetype
|
||||
gdk-pixbuf glib gtk2 gconf
|
||||
@@ -44,7 +44,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
install -m755 -D chromedriver $out/bin/chromedriver
|
||||
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||
'' + lib.optionalString (!stdenv.isDarwin) ''
|
||||
patchelf --set-interpreter ${glibc.out}/lib/ld-linux-x86-64.so.2 $out/bin/chromedriver
|
||||
wrapProgram "$out/bin/chromedriver" --prefix LD_LIBRARY_PATH : "${libs}:\$LD_LIBRARY_PATH"
|
||||
'';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "htmlunit-driver-standalone";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, makeWrapper, jdk, selenium-server-standalone }:
|
||||
{ lib, stdenv, fetchurl, makeWrapper, jdk, selenium-server-standalone }:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
let
|
||||
name = "selendroid-standalone-${version}";
|
||||
pluginName = "selendroid-grid-plugin-${version}";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, makeWrapper, jre
|
||||
{ lib, stdenv, fetchurl, makeWrapper, jre
|
||||
, htmlunit-driver, chromedriver, chromeSupport ? true }:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
let
|
||||
minorVersion = "3.141";
|
||||
|
||||
Reference in New Issue
Block a user