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
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, cyrus_sasl, libevent }:
{ lib, stdenv, fetchurl, fetchpatch, cyrus_sasl, libevent }:
stdenv.mkDerivation {
name = "libmemcached-1.0.18";
@@ -13,19 +13,19 @@ stdenv.mkDerivation {
# https://bugs.launchpad.net/libmemcached/+bug/1281907
# Fix building on macOS (patch from Homebrew)
# https://bugs.launchpad.net/libmemcached/+bug/1245562
patches = stdenv.lib.optional stdenv.isLinux ./libmemcached-fix-linking-with-libpthread.patch
++ stdenv.lib.optional stdenv.isDarwin (fetchpatch {
patches = lib.optional stdenv.isLinux ./libmemcached-fix-linking-with-libpthread.patch
++ lib.optional stdenv.isDarwin (fetchpatch {
url = "https://raw.githubusercontent.com/Homebrew/homebrew/bfd4a0a4626b61c2511fdf573bcbbc6bbe86340e/Library/Formula/libmemcached.rb";
sha256 = "1gjf3vd7hiyzxjvlg2zfc3y2j0lyr6nhbws4xb5dmin3csyp8qb8";
})
++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl-fixes.patch;
++ lib.optional stdenv.hostPlatform.isMusl ./musl-fixes.patch;
buildInputs = [ libevent ];
propagatedBuildInputs = [ cyrus_sasl ];
NIX_CFLAGS_COMPILE = "-fpermissive";
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://libmemcached.org";
description = "Open source C/C++ client library and tools for the memcached server";
license = licenses.bsd3;