nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09-alpha 33 lines 987 B view raw
1{ stdenv, fetchurl, libmcrypt, libmhash }: 2 3stdenv.mkDerivation rec { 4 version = "2.6.8"; 5 pname = "mcrypt"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/mcrypt/MCrypt/${version}/${pname}-${version}.tar.gz"; 9 sha256 = "5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098"; 10 }; 11 12 patches = [ 13 ./format-string_CVE-2012-4426.patch 14 ./overflow_CVE-2012-4409.patch 15 ./segv.patch 16 ./sprintf_CVE-2012-4527.patch 17 ]; 18 19 buildInputs = [ libmcrypt libmhash ]; 20 21 meta = { 22 description = "Replacement for old UNIX crypt(1)"; 23 longDescription = '' 24 mcrypt, and the accompanying libmcrypt, are intended to be replacements 25 for the old Unix crypt, except that they are under the GPL and support an 26 ever-wider range of algorithms and modes. 27 ''; 28 homepage = "http://mcrypt.sourceforge.net"; 29 license = stdenv.lib.licenses.gpl2; 30 platforms = stdenv.lib.platforms.all; 31 maintainers = [ stdenv.lib.maintainers.qknight ]; 32 }; 33}