From 986d96a355c41d39245368e43c5f1707047d4908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Sat, 25 Nov 2023 20:48:00 +0100 Subject: [PATCH] mcrypt: fix build on darwin --- pkgs/tools/misc/mcrypt/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/mcrypt/default.nix b/pkgs/tools/misc/mcrypt/default.nix index ef5b8e56fa0a..c5013eb46a04 100644 --- a/pkgs/tools/misc/mcrypt/default.nix +++ b/pkgs/tools/misc/mcrypt/default.nix @@ -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 = ''