23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
34 lines
785 B
Nix
34 lines
785 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, installShellFiles, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flashmq";
|
|
version = "1.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "halfgaar";
|
|
repo = "FlashMQ";
|
|
rev = "v${version}";
|
|
hash = "sha256-CMZim7FSTzjUaViVFq5OABOAUX3Aee+I3/HQhNIdIVM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake installShellFiles ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 flashmq -t $out/bin
|
|
installManPage $src/man/*.{1,5}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast light-weight MQTT broker/server";
|
|
homepage = "https://www.flashmq.org/";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|