ctucx.git: nixfiles

ctucx' nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, ... }:

stdenv.mkDerivation rec {

  pname = "mbusd";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner  = "3cky";
    repo   = pname;
    rev    = "v${version}";
    sha256 = "1mvrwr02vcsgf9lc9bq4mhr0s6ww5z7ml7lwpyrl4axpz59i4l9s";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  meta = with lib; {
    description = "mbusd is open-source Modbus TCP to Modbus RTU (RS-232/485) gateway";
    homepage    = "https://github.com/3cky/mbusd";
    license     = licenses.bsd3;
  };

}