2022-09-29 15:09:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, libxcrypt }:
|
2015-01-17 14:48:54 +00:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libcli";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "1.9.7";
|
2015-01-17 14:48:54 +00:00
|
|
|
|
2015-04-07 15:35:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "libcli";
|
|
|
|
owner = "dparrish";
|
2015-01-17 14:48:54 +00:00
|
|
|
};
|
|
|
|
|
2016-03-02 16:34:14 +00:00
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
|
|
|
url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
|
|
|
|
sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-09-29 15:09:21 +00:00
|
|
|
buildInputs = [ libxcrypt ];
|
|
|
|
|
2015-01-17 14:48:54 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-03-11 18:42:04 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "AR=${stdenv.cc.targetPrefix}ar" "PREFIX=$(out)" ];
|
2015-01-17 14:48:54 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-01-17 14:48:54 +00:00
|
|
|
description = "Emulate a Cisco-style telnet command-line interface";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://sites.dparrish.com/libcli";
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-03-11 18:42:04 +00:00
|
|
|
platforms = platforms.all;
|
2015-01-17 14:48:54 +00:00
|
|
|
};
|
|
|
|
}
|