summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libtelnet/package.nix
blob: 42dc062400d328feb49f3e83ddc03de53037bd7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  autoreconfHook,
  zlib,
}:

stdenv.mkDerivation {
  pname = "libtelnet";
  version = "0.21+45f2d5c";

  src = fetchFromGitHub {
    owner = "seanmiddleditch";
    repo = "libtelnet";
    rev = "45f2d5cfcf383312280e61c85b107285fed260cf";
    sha256 = "1lp6gdbndsp2w8mhy88c2jknxj2klvnggvq04ln7qjg8407ifpda";
  };

  nativeBuildInputs = [
    pkg-config
    autoreconfHook
  ];
  buildInputs = [ zlib ];

  meta = {
    description = "Simple RFC-compliant TELNET implementation as a C library";
    homepage = "https://github.com/seanmiddleditch/libtelnet";
    license = lib.licenses.publicDomain;
    maintainers = [ lib.maintainers.tomberek ];
    platforms = lib.platforms.linux;
  };
}