php: Add mcrypt optional support

Use an override with mcrypt = true to enable libmcrypt support in php.
The --disable-posix-threadsds mcrypt build option was required by php.
This commit is contained in:
bbenoist
2013-02-12 19:52:37 +01:00
committed by Baptist BENOIST
parent b42ba898e1
commit 8fd5fcbda5
2 changed files with 19 additions and 2 deletions
@@ -1,4 +1,6 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, disablePosixThreads ? false }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "libmcrypt-2.5.8";
@@ -10,7 +12,12 @@ stdenv.mkDerivation rec {
buildInputs = [];
configureFlags = optional disablePosixThreads
[ "--disable-posix-threads" ];
meta = {
description = "MCrypt is a replacement for the old crypt() package and crypt(1) command, with extensions.";
homepage = http://mcrypt.sourceforge.net;
license = "GPL";
};
}