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
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkg-config, bison
{ lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkg-config, bison
, flex, twisted
}:
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-tests=no" ];
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "Library for scalable cross-language services";
homepage = "http://thrift.apache.org/";
license = licenses.asl20;
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, boost, zlib, libevent, openssl, python, cmake, pkg-config
{ lib, stdenv, fetchurl, fetchpatch, boost, zlib, libevent, openssl, python, cmake, pkg-config
, bison, flex, twisted
, static ? stdenv.hostPlatform.isStatic
}:
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config bison flex ];
buildInputs = [ boost zlib libevent openssl ]
++ stdenv.lib.optionals (!static) [ python twisted ];
++ lib.optionals (!static) [ python twisted ];
preConfigure = "export PY_PREFIX=$out";
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
# FIXME: Fails to link in static mode with undefined reference to
# `boost::unit_test::unit_test_main(bool (*)(), int, char**)'
"-DBUILD_TESTING:BOOL=${if static then "OFF" else "ON"}"
] ++ stdenv.lib.optionals static [
] ++ lib.optionals static [
"-DWITH_STATIC_LIB:BOOL=ON"
"-DOPENSSL_USE_STATIC_LIBS=ON"
];
@@ -44,13 +44,13 @@ stdenv.mkDerivation rec {
checkPhase = ''
runHook preCheck
${stdenv.lib.optionalString stdenv.isDarwin "DY"}LD_LIBRARY_PATH=$PWD/lib ctest -E PythonTestSSLSocket
${lib.optionalString stdenv.isDarwin "DY"}LD_LIBRARY_PATH=$PWD/lib ctest -E PythonTestSSLSocket
runHook postCheck
'';
enableParallelChecking = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "Library for scalable cross-language services";
homepage = "http://thrift.apache.org/";
license = licenses.asl20;