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

@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, libXScrnSaver
, makeWrapper
, fetchurl

View File

@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, libXScrnSaver
, makeWrapper
, fetchurl
@@ -20,7 +20,7 @@ version: hashes:
let
name = "electron-${version}";
meta = with stdenv.lib; {
meta = with lib; {
description = "Cross platform desktop application shell";
homepage = "https://github.com/electron/electron";
license = licenses.mit;
@@ -56,7 +56,7 @@ let
passthru.headers = headersFetcher version hashes.headers;
};
electronLibPath = with stdenv.lib; makeLibraryPath (
electronLibPath = with lib; makeLibraryPath (
[ libuuid at-spi2-atk at-spi2-core libappindicator-gtk3 ]
++ optionals (! versionOlder version "9.0.0") [ libdrm mesa ]
++ optionals (! versionOlder version "11.0.0") [ libxkbcommon ]
@@ -89,7 +89,7 @@ let
$out/lib/electron/electron
wrapProgram $out/lib/electron/electron \
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \
"''${gappsWrapperArgs[@]}"
'';
};