mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
36 lines
815 B
Nix
36 lines
815 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, installShellFiles, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flashmq";
|
|
version = "1.15.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "halfgaar";
|
|
repo = "FlashMQ";
|
|
rev = "v${version}";
|
|
hash = "sha256-798BUwjVpsv4OW12mWWXbyqogGX1y182H/u/0Cz3Xow=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|