2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libmcrypt, libmhash }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.6.8";
|
|
|
|
pname = "mcrypt";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mcrypt/MCrypt/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098";
|
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
patches = [
|
|
|
|
./format-string_CVE-2012-4426.patch
|
|
|
|
./overflow_CVE-2012-4409.patch
|
|
|
|
./segv.patch
|
|
|
|
./sprintf_CVE-2012-4527.patch
|
2021-01-09 10:05:03 +00:00
|
|
|
./malloc_to_stdlib.patch
|
2020-05-15 21:57:56 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libmcrypt libmhash ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "http://mcrypt.sourceforge.net";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = [ lib.maintainers.qknight ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|