mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-02 01:50:18 +02:00
![bbenoist](/assets/img/avatar_default.png)
Use an override with mcrypt = true to enable libmcrypt support in php. The --disable-posix-threadsds mcrypt build option was required by php.
24 lines
601 B
Nix
24 lines
601 B
Nix
{ stdenv, fetchurl, disablePosixThreads ? false }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libmcrypt-2.5.8";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz;
|
|
sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|