Merge pull request #162641 from wheelsandmetal/init-redis-plus-plus

redis-plus-plus: init at 1.3.3
main
Michele Guerini Rocco 2 years ago committed by GitHub
commit 2ea2f7b6d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 38
      pkgs/development/libraries/redis-plus-plus/default.nix
  2. 2
      pkgs/top-level/all-packages.nix

@ -0,0 +1,38 @@
{ lib, stdenv, fetchFromGitHub, cmake, hiredis
, enableShared ? !stdenv.hostPlatform.isStatic
, enableStatic ? stdenv.hostPlatform.isStatic
}:
# You must build at one type of library
assert enableShared || enableStatic;
stdenv.mkDerivation rec {
pname = "redis-plus-plus";
version = "1.3.3";
src = fetchFromGitHub {
owner = "sewenew";
repo = "redis-plus-plus";
rev = version;
sha256 = "sha256-k4q5YbbbKKHXcL0nndzJPshzXS20ARz4Tdy5cBg7kMc=";
};
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ hiredis ];
cmakeFlags = [
"-DREDIS_PLUS_PLUS_BUILD_TEST=OFF"
] ++ lib.optional (!enableShared) [
"-DREDIS_PLUS_PLUS_BUILD_SHARED=OFF"
] ++ lib.optional (!enableStatic) [
"-DREDIS_PLUS_PLUS_BUILD_STATIC=OFF"
];
meta = with lib; {
homepage = "https://github.com/sewenew/redis-plus-plus";
description = "Redis client written in C++";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ wheelsandmetal ];
};
}

@ -15951,6 +15951,8 @@ with pkgs;
redis-dump = callPackage ../development/tools/redis-dump { };
redis-plus-plus = callPackage ../development/libraries/redis-plus-plus { };
redo = callPackage ../development/tools/build-managers/redo { };
redo-apenwarr = callPackage ../development/tools/build-managers/redo-apenwarr { };

Loading…
Cancel
Save