nixpkgs/pkgs/development/libraries/libmcrypt/default.nix

25 lines
662 B
Nix
Raw Normal View History

{ stdenv, fetchurl, darwin, disablePosixThreads ? false }:
with stdenv.lib;
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
name = "libmcrypt-2.5.8";
src = fetchurl {
url = "mirror://sourceforge/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz";
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;
};
}