Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ autoreconfHook
2, fetchFromGitHub
3, gensio
4, lib
5, libyaml
6, nix-update-script
7, pkg-config
8, stdenv
9}:
10
11stdenv.mkDerivation rec {
12 pname = "ser2net";
13 version = "4.3.12";
14
15 src = fetchFromGitHub {
16 owner = "cminyard";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-jF1tk/JeZ3RGHol+itwtkTF/cn5FHm/vhUgXJzi9J9E=";
20 };
21
22 passthru = {
23 updateScript = nix-update-script { };
24 };
25
26 nativeBuildInputs = [ pkg-config autoreconfHook ];
27
28 buildInputs = [ gensio libyaml ];
29
30 meta = with lib; {
31 description = "Serial to network connection server";
32 homepage = "https://github.com/cminyard/ser2net";
33 license = licenses.gpl2Only;
34 maintainers = with maintainers; [ emantor ];
35 platforms = with platforms; linux;
36 };
37}