pkgs/development/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-23 19:26:19 +07:00
parent f6a583eeec
commit c522fec274
534 changed files with 1314 additions and 1314 deletions

View File

@@ -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"
'';

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
pname = "htmlunit-driver-standalone";

View File

@@ -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}";

View File

@@ -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";