2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, darwin, disablePosixThreads ? false }:
|
2013-02-12 19:33:39 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
with lib;
|
2012-12-01 21:28:32 +01:00
|
|
|
|
2021-06-22 15:21:29 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libmcrypt";
|
|
|
|
version = "2.5.8";
|
2021-01-19 22:20:11 +01:00
|
|
|
|
2012-12-01 21:28:32 +01:00
|
|
|
src = fetchurl {
|
2021-06-22 15:21:29 +02:00
|
|
|
url = "mirror://sourceforge/mcrypt/Libmcrypt/${version}/libmcrypt-${version}.tar.gz";
|
2012-12-01 21:28:32 +01:00
|
|
|
sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
|
|
|
|
};
|
|
|
|
|
2016-05-31 10:18:37 +02:00
|
|
|
buildInputs = optional stdenv.isDarwin darwin.cctools;
|
2012-12-01 21:28:32 +01:00
|
|
|
|
2013-02-12 19:33:39 +01:00
|
|
|
configureFlags = optional disablePosixThreads
|
|
|
|
[ "--disable-posix-threads" ];
|
|
|
|
|
2012-12-01 21:28:32 +01:00
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Replacement for the old crypt() package and crypt(1) command, with extensions";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://mcrypt.sourceforge.net";
|
2013-02-12 19:33:39 +01:00
|
|
|
license = "GPL";
|
2016-05-31 10:18:37 +02:00
|
|
|
platforms = platforms.all;
|
2012-12-01 21:28:32 +01:00
|
|
|
};
|
|
|
|
}
|