2021-01-04 10:13:57 +00:00
|
|
|
{ autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gensio
|
|
|
|
, lib
|
|
|
|
, libyaml
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-01-11 08:31:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ser2net";
|
2022-12-22 17:24:07 +00:00
|
|
|
version = "4.3.11";
|
2020-01-11 08:31:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cminyard";
|
2020-11-01 22:39:49 +00:00
|
|
|
repo = pname;
|
2020-01-11 08:31:51 +00:00
|
|
|
rev = "v${version}";
|
2022-12-22 17:24:07 +00:00
|
|
|
hash = "sha256-5Jo6wwxRwf6JbpG7vEGpEBFA9b0v7DqbfpvgETHHhpY=";
|
2020-01-11 08:31:51 +00:00
|
|
|
};
|
|
|
|
|
2021-01-04 10:13:57 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-01-04 10:13:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ gensio libyaml ];
|
2020-01-11 08:31:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Serial to network connection server";
|
2022-02-11 14:01:37 +00:00
|
|
|
homepage = "https://github.com/cminyard/ser2net";
|
|
|
|
license = licenses.gpl2Only;
|
2020-01-11 08:31:51 +00:00
|
|
|
maintainers = with maintainers; [ emantor ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|