Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 33 lines 932 B view raw
1{lib, stdenv, fetchurl, cyrus_sasl, libevent, nixosTests }: 2 3stdenv.mkDerivation rec { 4 version = "1.6.20"; 5 pname = "memcached"; 6 7 src = fetchurl { 8 url = "https://memcached.org/files/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-j2BPjjoXVjfcHwad5vonORFoUMn4Hjdk8vrJo7J74wc="; 10 }; 11 12 configureFlags = [ 13 "ac_cv_c_endian=${if stdenv.hostPlatform.isBigEndian then "big" else "little"}" 14 ]; 15 16 buildInputs = [cyrus_sasl libevent]; 17 18 hardeningEnable = [ "pie" ]; 19 20 env.NIX_CFLAGS_COMPILE = toString ([ "-Wno-error=deprecated-declarations" ] 21 ++ lib.optional stdenv.isDarwin "-Wno-error"); 22 23 meta = with lib; { 24 description = "A 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 }; 30 passthru.tests = { 31 smoke-tests = nixosTests.memcached; 32 }; 33}