Skip to content

Commit

Permalink
Merge pull request NixOS#270037 from NixOS/backport-269600-to-release…
Browse files Browse the repository at this point in the history
…-23.11

[Backport release-23.11] {mcrypt,libmcrypt}: fix build on darwin
  • Loading branch information
sikmir authored Nov 27, 2023
2 parents 3c62ff4 + 23d6731 commit f39aee0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/libmcrypt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/tools/misc/mcrypt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit f39aee0

Please sign in to comment.