Merge pull request #124127 from LeSuisse/redis-6.2.3

redis: 6.2.1 -> 6.2.3
This commit is contained in:
Mario Rodas 2021-05-23 19:54:59 -05:00 committed by GitHub
commit fc6084c0af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,20 +5,22 @@
stdenv.mkDerivation rec {
pname = "redis";
version = "6.2.1";
version = "6.2.3";
src = fetchurl {
url = "https://download.redis.io/releases/${pname}-${version}.tar.gz";
sha256 = "sha256-zSIlBQEsziCyVoL8qTHsk70hrpLLSr/nQs97dqqQdSA=";
sha256 = "sha256-mO19UytelnH13wglu3Hw83SDoWVGNkBJOExj24dkUSs=";
};
# Cross-compiling fixes
configurePhase = ''
runHook preConfigure
${lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
# This fixes hiredis, which has the AR awkwardly coded.
# Probably a good candidate for a patch upstream.
makeFlagsArray+=('STLIB_MAKE_CMD=${stdenv.cc.targetPrefix}ar rcs $(STLIBNAME)')
''}
runHook postConfigure
'';
nativeBuildInputs = [ pkg-config ];