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, buildPackages, fetchurl, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
{ lib, stdenv, buildPackages, fetchurl, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
stdenv.mkDerivation rec {
pname = "autogen";
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
which pkg-config perl autoreconfHook/*patches applied*/
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# autogen needs a build autogen when cross-compiling
buildPackages.buildPackages.autogen buildPackages.texinfo
];
@@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
# Debian: https://salsa.debian.org/debian/autogen/-/blob/master/debian/rules#L21
"--enable-timeout=78"
]
++ (stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
++ (lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--with-libxml2=${libxml2.dev}"
"--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2"
# the configure check for regcomp wants to run a host program
@@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
sed -e "s|$lib/lib|/no-such-autogen-lib-path|" -i $f
done
'' + stdenv.lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
'' + lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
# remove /build/** from RPATHs
for f in "$bin"/bin/*; do
local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)/build/[^:]*:@\1@g')"
@@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Automated text and program generation tool";
license = with licenses; [ gpl3Plus lgpl3Plus ];
homepage = "https://www.gnu.org/software/autogen/";