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