blob: 6a972506bfcaad78f791d59976417627262bb6cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib
, stdenv
, cmake
, pkg-config
, fetchFromGitHub
, libmodbus
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mbpoll";
version = "1.5";
src = fetchFromGitHub {
owner = "epsilonrt";
repo = "mbpoll";
rev = "v${finalAttrs.version}";
hash = "sha256-rHjLDgfKtpREemttWt0pr7VtBjwZCSplUR4OWNBVW0c=";
};
buildInputs = [ libmodbus ];
nativeBuildInputs = [ cmake pkg-config ];
meta = with lib; {
description = "Command line utility to communicate with ModBus slave (RTU or TCP)";
homepage = "https://epsilonrt.fr";
license = licenses.gpl3;
mainProgram = "mbpoll";
platforms = platforms.linux;
};
})
|