idsk, indi-full: more gcc12 fixups

This commit is contained in:
Vladimír Čunát 2023-02-05 10:18:54 +01:00
parent 7677b9afd0
commit c2fb9453ab
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 4 additions and 2 deletions

View file

@ -48,6 +48,8 @@ stdenv.mkDerivation rec {
--replace "/etc/udev/rules.d" "lib/udev/rules.d" \
--replace "/lib/firmware" "lib/firmware"
done
sed '1i#include <ctime>' -i indi-duino/libfirmata/src/firmata.cpp # gcc12
'';
cmakeFlags = [

View file

@ -14,8 +14,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
NIX_CFLAGS_COMPILE = [
# Needed with GCC 12
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
# Needed with GCC 12 but breaks on darwin (with clang)
"-std=c++14"
];