diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/mqtt/flashmq/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/mqtt/flashmq/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/mqtt/flashmq/default.nix b/nixpkgs/pkgs/servers/mqtt/flashmq/default.nix new file mode 100644 index 000000000000..8a579d948881 --- /dev/null +++ b/nixpkgs/pkgs/servers/mqtt/flashmq/default.nix @@ -0,0 +1,35 @@ +{ 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; + }; +} |