2021-01-04 13:13:57 +03:00
|
|
|
{ autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gensio
|
|
|
|
, lib
|
|
|
|
, libyaml
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-01-11 11:31:51 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ser2net";
|
2021-03-09 15:24:14 +03:00
|
|
|
version = "4.3.3";
|
2020-01-11 11:31:51 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cminyard";
|
2020-11-02 01:39:49 +03:00
|
|
|
repo = pname;
|
2020-01-11 11:31:51 +03:00
|
|
|
rev = "v${version}";
|
2021-03-09 15:24:14 +03:00
|
|
|
sha256 = "sha256-p8iQifCf/IXXPdbjB3pgcw8FgkqRLShHSSeTzJ83Ecg=";
|
2020-01-11 11:31:51 +03:00
|
|
|
};
|
|
|
|
|
2021-01-04 13:13:57 +03:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ gensio libyaml ];
|
2020-01-11 11:31:51 +03:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Serial to network connection server";
|
|
|
|
homepage = "https://sourceforge.net/projects/ser2net/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ emantor ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|