commit d4be773553133e26260c1b5b6d2ddea43cd33dea parent 5ceb7a27d13ddf08d9ff687e2a9feab7b4b3528b Author: Nikolay Korotkiy <sikmir@disroot.org> Date: Sat, 12 Aug 2023 23:54:41 +0400 mqtt-to-influxdb: fix build Diffstat:
M | pkgs/mqtt/mqtt-to-influxdb/default.nix | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/pkgs/mqtt/mqtt-to-influxdb/default.nix b/pkgs/mqtt/mqtt-to-influxdb/default.nix @@ -32,6 +32,11 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace src/app/CMakeLists.txt \ --replace "/usr" "$out" + sed -i '1i #include <iostream>' src/app-validate/main.cpp + substituteInPlace src/app-validate/main.cpp \ + --replace "OptionParseException" "exceptions::parsing" + substituteInPlace src/app/main.cpp \ + --replace "OptionParseException" "exceptions::parsing" '' + lib.optionalString stdenv.cc.isClang '' substituteInPlace src/libmqtt-to-influxdb/CMakeLists.txt \ --replace "stdc++fs" ""