Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
649 B
Nix
30 lines
649 B
Nix
{ lib
|
|
, stdenv
|
|
, cmake
|
|
, pkg-config
|
|
, fetchFromGitHub
|
|
, libmodbus
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "mbpoll";
|
|
version = "1.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "epsilonrt";
|
|
repo = "mbpoll";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-rO3j/p7MABlxcwRAZm26u7wgODGFTtetSDhPWPzTuEA=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|