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, fetchurl, perl, gettext, buildPackages }:
{ lib, stdenv, fetchurl, perl, gettext, buildPackages }:
stdenv.mkDerivation rec {
pname = "texi2html";
@@ -18,13 +18,13 @@ stdenv.mkDerivation rec {
patchShebangs separated_to_hash.pl
'';
postInstall = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
postInstall = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
for f in $out/bin/*; do
substituteInPlace $f --replace "${buildPackages.perl}" "${perl}"
done
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Perl script which converts Texinfo source files to HTML output";
homepage = "https://www.nongnu.org/texi2html/";
license = licenses.gpl2;