2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, libxcrypt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcli";
|
|
|
|
version = "1.9.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "libcli";
|
|
|
|
owner = "dparrish";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
|
|
|
url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
|
|
|
|
sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [ libxcrypt ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "AR=${stdenv.cc.targetPrefix}ar" "PREFIX=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=address"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Emulate a Cisco-style telnet command-line interface";
|
|
|
|
homepage = "http://sites.dparrish.com/libcli";
|
|
|
|
license = licenses.lgpl21Plus;
|
2021-03-15 08:37:03 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|