1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

mbpoll: init at 1.5

This commit is contained in:
almini 2024-03-12 10:30:42 +01:00
parent eb4f8bd5bb
commit 81401567b7

View file

@ -0,0 +1,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;
};
})