commit 2cd961665e4ede84418004ae3422ac8d3d6337cd
parent 576b10cd5a86b252e3d03dce3940b3b50d4f65f6
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sat, 11 Mar 2023 23:43:16 +0400
flashmq: fix cross-compilation
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/pkgs/mqtt/flashmq/default.nix b/pkgs/mqtt/flashmq/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake, installShellFiles, openssl }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, installShellFiles, openssl }:
stdenv.mkDerivation rec {
pname = "flashmq";
@@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
hash = "sha256-VikTaPczF1+Bk/K6D5lZgyLybNETtm0YTEwFgPmpiiw=";
};
+ patches = [
+ (fetchpatch {
+ url = "https://github.com/halfgaar/FlashMQ/commit/f33117351496143eb7bf8362697d40f4c74da5b8.patch";
+ hash = "sha256-gEEzQm2g1/G3eh8z1Ao90Nzg8RmTLvRpw2jVWBMyM68=";
+ })
+ ];
+
postPatch = ''
substituteInPlace mainapp.cpp --replace "/etc/flashmq" "$out/etc/flashmq"
'' + lib.optionalString (stdenv.isLinux && !stdenv.isx86_64) ''