nixpkgs/pkgs/development/libraries/libmcrypt/default.nix
Artturin 7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00

26 lines
691 B
Nix

{ lib, stdenv, fetchurl, darwin, disablePosixThreads ? false }:
with lib;
stdenv.mkDerivation rec {
pname = "libmcrypt";
version = "2.5.8";
src = fetchurl {
url = "mirror://sourceforge/mcrypt/Libmcrypt/${version}/libmcrypt-${version}.tar.gz";
sha256 = "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4";
};
buildInputs = optional stdenv.isDarwin darwin.cctools;
configureFlags = optionals 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;
};
}