2017-11-08 20:40:28 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, lua }:
|
2012-02-03 13:12:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-24 16:16:11 +01:00
|
|
|
version = "4.0.2";
|
2015-06-04 16:36:53 +01:00
|
|
|
name = "redis-${version}";
|
2012-02-03 13:12:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-05-06 16:05:08 +01:00
|
|
|
url = "http://download.redis.io/releases/${name}.tar.gz";
|
2017-10-24 16:16:11 +01:00
|
|
|
sha256 = "04s8cgvwjj1979s3hg8zkwc9pyn3jkjpz5zidp87kfcipifr385i";
|
2012-02-03 13:12:07 +00:00
|
|
|
};
|
|
|
|
|
2017-11-08 20:40:28 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2017-15047.patch";
|
|
|
|
url = https://github.com/antirez/redis/commit/ffcf7d5ab1e98d84c28af9bea7be76c6737820ad.patch;
|
|
|
|
sha256 = "0cgx3lm0n7jxhsly8v9hdvy6vlamj3ck2jsid4fwyapz6907h64l";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-04-21 19:50:03 +01:00
|
|
|
buildInputs = [ lua ];
|
2012-02-03 13:12:07 +00:00
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
2013-01-21 23:27:34 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-05-15 20:11:17 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-02-03 13:12:07 +00:00
|
|
|
homepage = http://redis.io;
|
|
|
|
description = "An open source, advanced key-value store";
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-05-15 20:11:17 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.berdario ];
|
2012-02-03 13:12:07 +00:00
|
|
|
};
|
|
|
|
}
|