2013-06-27 11:04:46 +01:00
|
|
|
{ stdenv, fetchurl, libmcrypt, libmhash }:
|
2016-01-07 04:19:06 +00:00
|
|
|
|
2013-06-27 11:04:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.6.8";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mcrypt";
|
2016-01-07 04:19:06 +00:00
|
|
|
|
2013-06-27 11:04:46 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/mcrypt/MCrypt/${version}/${pname}-${version}.tar.gz";
|
2013-06-27 11:04:46 +01:00
|
|
|
sha256 = "5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098";
|
|
|
|
};
|
2016-01-07 04:19:06 +00:00
|
|
|
|
2020-05-06 22:18:09 +01:00
|
|
|
patches = [
|
|
|
|
./format-string_CVE-2012-4426.patch
|
|
|
|
./overflow_CVE-2012-4409.patch
|
|
|
|
./segv.patch
|
|
|
|
./sprintf_CVE-2012-4527.patch
|
|
|
|
];
|
2016-01-07 04:19:06 +00:00
|
|
|
|
|
|
|
buildInputs = [ libmcrypt libmhash ];
|
|
|
|
|
2013-06-27 11:04:46 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Replacement for old UNIX crypt(1)";
|
|
|
|
longDescription = ''
|
|
|
|
mcrypt, and the accompanying libmcrypt, are intended to be replacements
|
|
|
|
for the old Unix crypt, except that they are under the GPL and support an
|
|
|
|
ever-wider range of algorithms and modes.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://mcrypt.sourceforge.net";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-06-27 11:04:46 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.qknight ];
|
|
|
|
};
|
|
|
|
}
|