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

This commit is contained in:
Ben Siraphob
2021-01-21 19:11:02 -08:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ lib, stdenv, fetchurl
, CoreServices ? null
, buildPackages }:
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
preConfigure = ''
cd nspr
'' + stdenv.lib.optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace '@executable_path/' "$out/lib/"
substituteInPlace configure.in --replace '@executable_path/' "$out/lib/"
'';
@@ -32,18 +32,18 @@ stdenv.mkDerivation {
configureFlags = [
"--enable-optimize"
"--disable-debug"
] ++ stdenv.lib.optional stdenv.is64bit "--enable-64bit";
] ++ lib.optional stdenv.is64bit "--enable-64bit";
postInstall = ''
find $out -name "*.a" -delete
moveToOutput share "$dev" # just aclocal
'';
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
buildInputs = [] ++ lib.optionals stdenv.isDarwin [ CoreServices ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.mozilla.org/projects/nspr/";
description = "Netscape Portable Runtime, a platform-neutral API for system-level and libc-like functions";
platforms = platforms.all;