Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created September 22, 2019 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/1176461b9328aa4f659a25ab1fd1172c to your computer and use it in GitHub Desktop.
Save Mic92/1176461b9328aa4f659a25ab1fd1172c to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "mbpoll-${version}";
version = "1.4.11";
src = fetchFromGitHub {
owner = "epsilonrt";
repo = "mbpoll";
rev = "v${version}";
sha256 = "21ed3c28f954d822df1e397301536cfb7bfd74ee4225c500d295550e686b5f5c";
};
buildInputs = [ libmodbus ];
nativeBuildInputs = [ cmake pkgconfig ];
meta = with stdenv.lib; {
description = "command line utility to communicate with ModBus slave (RTU or TCP)";
homepage = "https://epsilonrt.fr";
license = licenses.cecill20;
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment