1{ lib, stdenv, fetchurl, darwin, disablePosixThreads ? false }:
2
3with lib;
4
5stdenv.mkDerivation rec {
6 pname = "libmcrypt";
7 version = "2.5.8";
8
9 src = fetchurl {
10 url = "mirror://sourceforge/mcrypt/Libmcrypt/${version}/libmcrypt-${version}.tar.gz";
11 sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
12 };
13
14 buildInputs = optional stdenv.isDarwin darwin.cctools;
15
16 configureFlags = optional disablePosixThreads
17 [ "--disable-posix-threads" ];
18
19 meta = {
20 description = "Replacement for the old crypt() package and crypt(1) command, with extensions";
21 homepage = "http://mcrypt.sourceforge.net";
22 license = "GPL";
23 platforms = platforms.all;
24 };
25}