about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-01-26 10:38:20 +0800
committerGitHub <noreply@github.com>2023-01-26 10:38:20 +0800
commit4e4dedd0efab323e423472b2c1c1f871e80d98cd (patch)
treeb190cde3cf9bf5522abee645236f0ca7a0156521 /pkgs/servers
parent210016d29484dbf5dd36df6dccd1e1437cfedd69 (diff)
parent66d3118821cd4a453cd39ce1557591a800e4017e (diff)
Merge pull request #212648 from sikmir/mbusd
mbusd: init at 0.5.1
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/mbusd/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/servers/mbusd/default.nix b/pkgs/servers/mbusd/default.nix
new file mode 100644
index 0000000000000..7db22dab8e34b
--- /dev/null
+++ b/pkgs/servers/mbusd/default.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config }:
+
+stdenv.mkDerivation rec {
+  pname = "mbusd";
+  version = "0.5.1";
+
+  src = fetchFromGitHub {
+    owner = "3cky";
+    repo = "mbusd";
+    rev = "v${version}";
+    hash = "sha256-vYYaJKcnREng+2UsDIZ28hvANkQCHVixQIxo82m7MQs=";
+  };
+
+  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;
+  };
+}