1 {lib, stdenv, fetchurl, cyrus_sasl, libevent, nixosTests }:
3 stdenv.mkDerivation rec {
8 url = "https://memcached.org/files/${pname}-${version}.tar.gz";
9 sha256 = "sha256-dP4UR8hmit+RD6epKftjWKr0pm73NOdRxbgSgHGw97U=";
13 "ac_cv_c_endian=${if stdenv.hostPlatform.isBigEndian then "big" else "little"}"
16 buildInputs = [cyrus_sasl libevent];
18 hardeningEnable = [ "pie" ];
20 env.NIX_CFLAGS_COMPILE = toString ([ "-Wno-error=deprecated-declarations" ]
21 ++ lib.optional stdenv.isDarwin "-Wno-error");
24 description = "Distributed memory object caching system";
25 homepage = "http://memcached.org/";
26 license = licenses.bsd3;
27 maintainers = [ maintainers.coconnor ];
28 platforms = platforms.linux ++ platforms.darwin;
29 mainProgram = "memcached";
32 smoke-tests = nixosTests.memcached;