cpp-redis: init at 4.3.1

+50
+12
pkgs/by-name/cp/cpp-redis/01-fix-sleep_for.patch
···
··· 1 + diff --git a/sources/core/client.cpp b/sources/core/client.cpp 2 + index 7ea20e2..c5d2c40 100644 3 + --- a/sources/core/client.cpp 4 + +++ b/sources/core/client.cpp 5 + @@ -23,6 +23,7 @@ 6 + #include <cpp_redis/core/client.hpp> 7 + #include <cpp_redis/misc/error.hpp> 8 + #include <cpp_redis/misc/macro.hpp> 9 + +#include <thread> 10 + 11 + namespace cpp_redis { 12 +
+38
pkgs/by-name/cp/cpp-redis/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + pkg-config, 7 + }: 8 + 9 + stdenv.mkDerivation rec { 10 + pname = "cpp-redis"; 11 + version = "4.3.1"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "cpp-redis"; 15 + repo = "cpp_redis"; 16 + rev = version; 17 + hash = "sha256-dLAnxgldylWWKO3WIyx+F7ylOpRH+0nD7NZjWSOxuwQ="; 18 + fetchSubmodules = true; 19 + }; 20 + 21 + nativeBuildInputs = [ 22 + cmake 23 + pkg-config 24 + ]; 25 + CFLAGS = "-D_GLIBCXX_USE_NANOSLEEP"; 26 + patches = [ 27 + ./01-fix-sleep_for.patch 28 + ]; 29 + 30 + meta = with lib; { 31 + description = "C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform"; 32 + homepage = "https://github.com/cpp-redis/cpp_redis"; 33 + changelog = "https://github.com/cpp-redis/cpp_redis/blob/${src.rev}/CHANGELOG.md"; 34 + license = licenses.mit; 35 + maintainers = with maintainers; [ poelzi ]; 36 + platforms = platforms.all; 37 + }; 38 + }