nixpkgs-suyu/pkgs/tools/misc/mcrypt/default.nix

29 lines
923 B
Nix
Raw Normal View History

2013-06-27 12:04:46 +02:00
{ stdenv, fetchurl, libmcrypt, libmhash }:
2013-06-27 12:04:46 +02:00
stdenv.mkDerivation rec {
version = "2.6.8";
name = "mcrypt-${version}";
2013-06-27 12:04:46 +02:00
src = fetchurl {
url = "mirror://sourceforge/mcrypt/MCrypt/${version}/${name}.tar.gz";
sha256 = "5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098";
};
patches = [ ./format-string.patch ./overflow.patch ./segv.patch ./sprintf.patch ];
buildInputs = [ libmcrypt libmhash ];
2013-06-27 12:04:46 +02:00
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.
'';
2013-06-27 12:04:46 +02:00
homepage = http://mcrypt.sourceforge.net;
license = stdenv.lib.licenses.gpl2;
2013-06-27 12:04:46 +02:00
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.qknight ];
};
}