Skip to content

Commit cb11cca

Browse files
committed
libmcrypt: fix build with gcc14
1 parent 53ae2f0 commit cb11cca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkgs/by-name/li/libmcrypt/package.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ stdenv.mkDerivation rec {
2525
"ac_cv_func_realloc_0_nonnull=yes"
2626
];
2727

28-
env = lib.optionalAttrs stdenv.cc.isClang {
29-
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration -Wno-implicit-int";
30-
};
28+
env.NIX_CFLAGS_COMPILE = toString [
29+
"-Wno-implicit-function-declaration"
30+
"-Wno-implicit-int"
31+
];
3132

3233
meta = {
3334
description = "Replacement for the old crypt() package and crypt(1) command, with extensions";

0 commit comments

Comments
 (0)