commit 1063644c92967f94e79e09ac7132986cbf4f53db parent 36619aaabb9e071b560d93681543afbdf06938da Author: Nikolay Korotkiy <sikmir@disroot.org> Date: Thu, 24 Nov 2022 19:23:55 +0300 mqtt-to-influxdb: fix build on linux Diffstat:
M | pkgs/mqtt/influxdb-cxx/default.nix | | | 1 | + |
M | pkgs/mqtt/mqtt-to-influxdb/default.nix | | | 6 | ++++-- |
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/pkgs/mqtt/influxdb-cxx/default.nix b/pkgs/mqtt/influxdb-cxx/default.nix @@ -20,5 +20,6 @@ stdenv.mkDerivation (finalAttrs: { inherit (finalAttrs.src.meta) homepage; license = licenses.mit; maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; }; }) diff --git a/pkgs/mqtt/mqtt-to-influxdb/default.nix b/pkgs/mqtt/mqtt-to-influxdb/default.nix @@ -29,10 +29,11 @@ stdenv.mkDerivation (finalAttrs: { }; postPatch = '' - substituteInPlace src/libmqtt-to-influxdb/CMakeLists.txt \ - --replace "stdc++fs" "" substituteInPlace src/app/CMakeLists.txt \ --replace "/usr" "$out" + '' + lib.optionalString stdenv.cc.isClang '' + substituteInPlace src/libmqtt-to-influxdb/CMakeLists.txt \ + --replace "stdc++fs" "" ''; nativeBuildInputs = [ cmake ]; @@ -57,5 +58,6 @@ stdenv.mkDerivation (finalAttrs: { inherit (finalAttrs.src.meta) homepage; license = licenses.mit; maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; }; })