depot/third_party/nixpkgs/pkgs/by-name/fl/flashmq/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
815 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, installShellFiles, openssl }:
stdenv.mkDerivation rec {
pname = "flashmq";
version = "1.14.0";
src = fetchFromGitHub {
owner = "halfgaar";
repo = "FlashMQ";
rev = "v${version}";
hash = "sha256-rOhH3mRPW4LweQmzztr6/xGqSfo02nFBWrAVd0/oQGA=";
};
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";
mainProgram = "flashmq";
homepage = "https://www.flashmq.org/";
license = licenses.agpl3Only;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.linux;
};
}