1{ stdenv, fetchFromGitHub, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "libcli-${version}";
5 version = "1.9.7";
6
7 src = fetchFromGitHub {
8 sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
9 rev = "v${version}";
10 repo = "libcli";
11 owner = "dparrish";
12 };
13
14 patches =
15 [ (fetchurl {
16 url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
17 sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
18 })
19 ];
20
21 enableParallelBuilding = true;
22
23 makeFlags = [ "PREFIX=$(out)" ];
24
25 meta = with stdenv.lib; {
26 description = "Emulate a Cisco-style telnet command-line interface";
27 homepage = http://sites.dparrish.com/libcli;
28 license = licenses.lgpl21Plus;
29 platforms = platforms.linux;
30 maintainers = with maintainers; [ nckx ];
31 };
32}