fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, fetchpatch, cyrus_sasl, libevent }:
2
3stdenv.mkDerivation rec {
4 name = "libmemcached-1.0.18";
5
6 src = fetchurl {
7 url = https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz;
8 sha256 = "10jzi14j32lpq0if0p9vygcl2c1352hwbywzvr9qzq7x6aq0nb72";
9 };
10
11 # Fix linking against libpthread (patch from Fedora)
12 # https://bugzilla.redhat.com/show_bug.cgi?id=1037707
13 # https://bugs.launchpad.net/libmemcached/+bug/1281907
14 # Fix building on macOS (patch from Homebrew)
15 # https://bugs.launchpad.net/libmemcached/+bug/1245562
16 patches = stdenv.lib.optional stdenv.isLinux ./libmemcached-fix-linking-with-libpthread.patch
17 ++ stdenv.lib.optional stdenv.isDarwin (fetchpatch {
18 url = "https://raw.githubusercontent.com/Homebrew/homebrew/bfd4a0a4626b61c2511fdf573bcbbc6bbe86340e/Library/Formula/libmemcached.rb";
19 sha256 = "1gjf3vd7hiyzxjvlg2zfc3y2j0lyr6nhbws4xb5dmin3csyp8qb8";
20 })
21 ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl-fixes.patch;
22
23 buildInputs = [ libevent ];
24 propagatedBuildInputs = [ cyrus_sasl ];
25
26 NIX_CFLAGS_COMPILE = [ "-fpermissive"/*gcc7*/ ];
27
28 meta = with stdenv.lib; {
29 homepage = http://libmemcached.org;
30 description = "Open source C/C++ client library and tools for the memcached server";
31 license = licenses.bsd3;
32 platforms = platforms.linux ++ platforms.darwin;
33 };
34}