Merge pull request #269600 from szlend/fix-libmcrypt-darwin

{mcrypt,libmcrypt}: fix build on darwin
This commit is contained in:
Nikolay Korotkiy 2023-11-26 07:50:19 +04:00 committed by GitHub
commit 3599977406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
"ac_cv_func_realloc_0_nonnull=yes"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration -Wno-implicit-int";
};
meta = {
description = "Replacement for the old crypt() package and crypt(1) command, with extensions";
homepage = "https://mcrypt.sourceforge.net";

View File

@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
buildInputs = [ libmcrypt libmhash ];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};
meta = {
description = "Replacement for old UNIX crypt(1)";
longDescription = ''