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, fetchpatch, gettext, perlPackages, buildPackages }:
{ lib, stdenv, fetchurl, fetchpatch, gettext, perlPackages, buildPackages }:
stdenv.mkDerivation rec {
pname = "intltool";
@@ -22,12 +22,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = with perlPackages; [ perl XMLParser ];
propagatedBuildInputs = [ gettext ] ++ (with perlPackages; [ perl XMLParser ]);
postInstall = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
for f in $out/bin/*; do
substituteInPlace $f --replace "${buildPackages.perl}" "${perlPackages.perl}"
done
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Translation helper tool";
homepage = "https://launchpad.net/intltool/";
license = licenses.gpl2Plus;