1{
2 autoreconfHook,
3 fetchFromGitHub,
4 gensio,
5 lib,
6 libyaml,
7 nix-update-script,
8 pkg-config,
9 stdenv,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "ser2net";
14 version = "4.6.5";
15
16 src = fetchFromGitHub {
17 owner = "cminyard";
18 repo = "ser2net";
19 rev = "v${version}";
20 hash = "sha256-Iyr0ix+V9EXK01RceVQLc37tN/b83TvhUfuD+HSUjc0=";
21 };
22
23 passthru = {
24 updateScript = nix-update-script { };
25 };
26
27 nativeBuildInputs = [
28 pkg-config
29 autoreconfHook
30 ];
31
32 buildInputs = [
33 gensio
34 libyaml
35 ];
36
37 meta = with lib; {
38 description = "Serial to network connection server";
39 homepage = "https://github.com/cminyard/ser2net";
40 license = licenses.gpl2Only;
41 maintainers = with maintainers; [ emantor ];
42 platforms = with platforms; linux;
43 mainProgram = "ser2net";
44 };
45}