1 { lib, stdenv, fetchurl, darwin, disablePosixThreads ? false }:
5 stdenv.mkDerivation rec {
10 url = "mirror://sourceforge/mcrypt/Libmcrypt/${version}/libmcrypt-${version}.tar.gz";
11 sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
14 buildInputs = optional stdenv.isDarwin darwin.cctools;
16 configureFlags = optionals disablePosixThreads
17 [ "--disable-posix-threads" ];
20 description = "Replacement for the old crypt() package and crypt(1) command, with extensions";
21 homepage = "http://mcrypt.sourceforge.net";
23 platforms = platforms.all;