18 lines
677 B
Nix
18 lines
677 B
Nix
{ ... }:
|
|
|
|
final: prev: {
|
|
synergy = prev.synergy.overrideAttrs (oldAttrs: {
|
|
postPatch = (oldAttrs.postPatch or "") + ''
|
|
# Fix deprecated Qt endl usage in QTextStream contexts only
|
|
# Don't touch cerr/cout which use std::endl
|
|
find . -name "*.cpp" -type f -exec sed -i \
|
|
's/\(outStream.*<<.*\)endl/\1Qt::endl/g; s/\(QTextStream.*<<.*\)endl/\1Qt::endl/g' {} +
|
|
find . -name "*.h" -type f -exec sed -i \
|
|
's/\(outStream.*<<.*\)endl/\1Qt::endl/g; s/\(QTextStream.*<<.*\)endl/\1Qt::endl/g' {} +
|
|
|
|
# Fix missing SIZE_MAX include
|
|
sed -i '/#include <cstring>/a#include <cstdint>' src/lib/server/InputFilter.cpp
|
|
'';
|
|
});
|
|
}
|