2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, darwin, disablePosixThreads ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libmcrypt";
|
|
|
|
version = "2.5.8";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "mirror://sourceforge/mcrypt/Libmcrypt/${version}/libmcrypt-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = optional stdenv.isDarwin darwin.cctools;
|
|
|
|
|
|
|
|
configureFlags = optional disablePosixThreads
|
|
|
|
[ "--disable-posix-threads" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Replacement for the old crypt() package and crypt(1) command, with extensions";
|
|
|
|
homepage = "http://mcrypt.sourceforge.net";
|
|
|
|
license = "GPL";
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|