redis: 7.2.7 -> 8.0.2 (#403628)

authored by Wolfgang Walther and committed by GitHub 1144b439 d3347025

+21 -12
+21 -12
pkgs/by-name/re/redis/package.nix
··· 14 systemd, 15 openssl, 16 python3, 17 - 18 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 19 tlsSupport ? true, 20 # Using system jemalloc fixes cross-compilation and various setups. ··· 25 26 stdenv.mkDerivation (finalAttrs: { 27 pname = "redis"; 28 - version = "7.2.7"; 29 30 src = fetchFromGitHub { 31 owner = "redis"; 32 repo = "redis"; 33 - rev = finalAttrs.version; 34 - hash = "sha256-WZ89BUm3zz6n0dZKyODHCyMGExbqaPJJ1qxLvJKUSDI="; 35 }; 36 37 patches = lib.optional useSystemJemalloc (fetchpatch2 { ··· 65 66 hardeningEnable = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "pie" ]; 67 68 - env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-std=c11" ]); 69 env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isFreeBSD "-lexecinfo"; 70 71 # darwin currently lacks a pure `pgrep` which is extensively used here ··· 81 # disable test "Connect multiple replicas at the same time": even 82 # upstream find this test too timing-sensitive 83 substituteInPlace tests/integration/replication.tcl \ 84 - --replace 'foreach mdl {no yes}' 'foreach mdl {}' 85 86 substituteInPlace tests/support/server.tcl \ 87 - --replace 'exec /usr/bin/env' 'exec env' 88 89 - sed -i '/^proc wait_load_handlers_disconnected/{n ; s/wait_for_condition 50 100/wait_for_condition 50 500/; }' \ 90 tests/support/util.tcl 91 92 ./runtest \ ··· 100 runHook postCheck 101 ''; 102 103 - passthru.tests.redis = nixosTests.redis; 104 - passthru.serverBin = "redis-server"; 105 106 meta = { 107 homepage = "https://redis.io"; 108 description = "Open source, advanced key-value store"; 109 - license = lib.licenses.bsd3; 110 platforms = lib.platforms.all; 111 - changelog = "https://github.com/redis/redis/raw/${finalAttrs.version}/00-RELEASENOTES"; 112 maintainers = with lib.maintainers; [ 113 berdario 114 globin
··· 14 systemd, 15 openssl, 16 python3, 17 + nix-update-script, 18 + versionCheckHook, 19 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 20 tlsSupport ? true, 21 # Using system jemalloc fixes cross-compilation and various setups. ··· 26 27 stdenv.mkDerivation (finalAttrs: { 28 pname = "redis"; 29 + version = "8.0.2"; 30 31 src = fetchFromGitHub { 32 owner = "redis"; 33 repo = "redis"; 34 + tag = finalAttrs.version; 35 + hash = "sha256-BZJEBp3M7Gw/6/fZjfaMfU777dFmMzAS4bDI06ErkSc="; 36 }; 37 38 patches = lib.optional useSystemJemalloc (fetchpatch2 { ··· 66 67 hardeningEnable = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "pie" ]; 68 69 env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isFreeBSD "-lexecinfo"; 70 71 # darwin currently lacks a pure `pgrep` which is extensively used here ··· 81 # disable test "Connect multiple replicas at the same time": even 82 # upstream find this test too timing-sensitive 83 substituteInPlace tests/integration/replication.tcl \ 84 + --replace-fail 'foreach sdl {disabled swapdb} {' 'foreach sdl {} {' 85 86 substituteInPlace tests/support/server.tcl \ 87 + --replace-fail 'exec /usr/bin/env' 'exec env' 88 89 + sed -i -e '/^proc wait_load_handlers_disconnected/{n ; s/wait_for_condition 50 100/wait_for_condition 50 500/; }' \ 90 + -e '/^proc wait_for_ofs_sync/{n ; s/wait_for_condition 50 100/wait_for_condition 50 500/; }' \ 91 tests/support/util.tcl 92 93 ./runtest \ ··· 101 runHook postCheck 102 ''; 103 104 + doInstallCheck = true; 105 + nativeInstallCheckInputs = [ versionCheckHook ]; 106 + versionCheckProgram = "${placeholder "out"}/bin/redis-server"; 107 + versionCheckProgramArg = "--version"; 108 + 109 + passthru = { 110 + tests.redis = nixosTests.redis; 111 + serverBin = "redis-server"; 112 + updateScript = nix-update-script { }; 113 + }; 114 115 meta = { 116 homepage = "https://redis.io"; 117 description = "Open source, advanced key-value store"; 118 + license = lib.licenses.agpl3Only; 119 platforms = lib.platforms.all; 120 + changelog = "https://github.com/redis/redis/releases/tag/${finalAttrs.version}"; 121 maintainers = with lib.maintainers; [ 122 berdario 123 globin