nixpkgs/pkgs/servers/mqtt/flashmq/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
814 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, installShellFiles, openssl }:
stdenv.mkDerivation rec {
pname = "flashmq";
version = "1.9.1";
src = fetchFromGitHub {
owner = "halfgaar";
repo = "FlashMQ";
rev = "v${version}";
hash = "sha256-LxmD/NfD4OJR77erwRnHoe6VRiytqzMlWvRtgY8RD94=";
};
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;
};
}