scheme48: fix build with clang 16

This commit is contained in:
Randy Eckenrode 2023-11-03 12:41:23 -04:00
parent 1a2c0b89c6
commit 80fc3eb8a6
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -14,6 +14,15 @@ stdenv.mkDerivation rec {
substituteInPlace build/build-usual-image --replace '"(made by $USER on $date)"' '""'
'';
# Silence warnings related to use of implicitly declared library functions and implicit ints.
# TODO: Remove and/or fix with patches the next time this package is updated.
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=implicit-int"
];
};
meta = with lib; {
homepage = "https://s48.org/";
description = "Scheme 48 interpreter for R5RS";