2023-01-25 18:29:30 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mbusd";
|
2024-03-29 12:01:40 +00:00
|
|
|
version = "0.5.2";
|
2023-01-25 18:29:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "3cky";
|
|
|
|
repo = "mbusd";
|
|
|
|
rev = "v${version}";
|
2024-03-29 12:01:40 +00:00
|
|
|
hash = "sha256-RQRSqlbPwBhw0SiNSP+euMVAwVBJo3lx0qB5gyWA+cM=";
|
2023-01-25 18:29:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Modbus TCP to Modbus RTU (RS-232/485) gateway";
|
|
|
|
homepage = "https://github.com/3cky/mbusd";
|
|
|
|
changelog = "https://github.com/3cky/mbusd/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "mbusd";
|
2023-01-25 18:29:30 +00:00
|
|
|
};
|
|
|
|
}
|