mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
24 lines
693 B
Nix
24 lines
693 B
Nix
{ lib, stdenv, fetchurl, darwin, disablePosixThreads ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmcrypt";
|
|
version = "2.5.8";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mcrypt/Libmcrypt/${version}/libmcrypt-${version}.tar.gz";
|
|
sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
|
|
};
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin darwin.cctools;
|
|
|
|
configureFlags = lib.optionals disablePosixThreads
|
|
[ "--disable-posix-threads" ];
|
|
|
|
meta = {
|
|
description = "Replacement for the old crypt() package and crypt(1) command, with extensions";
|
|
homepage = "https://mcrypt.sourceforge.net";
|
|
license = "GPL";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|