at 18.03-beta 28 lines 923 B view raw
1{ stdenv, fetchurl, libmcrypt, libmhash }: 2 3stdenv.mkDerivation rec { 4 version = "2.6.8"; 5 name = "mcrypt-${version}"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/mcrypt/MCrypt/${version}/${name}.tar.gz"; 9 sha256 = "5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098"; 10 }; 11 12 patches = [ ./format-string.patch ./overflow.patch ./segv.patch ./sprintf.patch ]; 13 14 buildInputs = [ libmcrypt libmhash ]; 15 16 meta = { 17 description = "Replacement for old UNIX crypt(1)"; 18 longDescription = '' 19 mcrypt, and the accompanying libmcrypt, are intended to be replacements 20 for the old Unix crypt, except that they are under the GPL and support an 21 ever-wider range of algorithms and modes. 22 ''; 23 homepage = http://mcrypt.sourceforge.net; 24 license = stdenv.lib.licenses.gpl2; 25 platforms = stdenv.lib.platforms.all; 26 maintainers = [ stdenv.lib.maintainers.qknight ]; 27 }; 28}