depot/third_party/nixpkgs/pkgs/by-name/fl/flashmq/package.nix

45 lines
838 B
Nix

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