Merge pull request #280768 from trofi/seq66-gcc-13-fix

seq66: fix build against `gcc-13`
This commit is contained in:
7c6f434c 2024-01-14 13:42:06 +00:00 committed by GitHub
commit 21c6a516b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, qttools, which
, alsa-lib, libjack2, liblo, qtbase
, alsa-lib, libjack2, liblo, qtbase, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "1jvra1wzlycfpvffnqidk264zw6fyl4fsghkw5256ldk22aalmq9";
};
nativeBuildInputs = [ autoreconfHook pkg-config qttools which ];
nativeBuildInputs = [ autoreconfHook pkg-config qttools which wrapQtAppsHook ];
buildInputs = [ alsa-lib libjack2 liblo qtbase ];
@ -21,17 +21,20 @@ stdenv.mkDerivation rec {
for d in libseq66/include libseq66/src libsessions/include libsessions/src seq_qt5/src seq_rtmidi/include seq_rtmidi/src Seqtool/src; do
substituteInPlace "$d/Makefile.am" --replace '$(git_info)' '${version}'
done
# gcc-13 headers compatibilty. TODO: try to remove with next version
# update
sed -e '1i #include <cstdint>' -i libseq66/src/os/daemonize.cpp
'';
enableParallelBuilding = true;
dontWrapQtApps = true;
meta = with lib; {
homepage = "https://github.com/ahlstromcj/seq66";
description = "Loop based midi sequencer with Qt GUI derived from seq24 and sequencer64";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ orivej ];
mainProgram = "qseq66";
platforms = platforms.linux;
};
}