storj-uplink: 1.119.15 -> 1.120.4 (#375732)
[NixPkgs.git] / pkgs / by-name / li / libcli / package.nix
blob71aca93bf84b8b6860034188090a297a10d284ed
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchurl,
6   libxcrypt,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libcli";
11   version = "1.9.7";
13   src = fetchFromGitHub {
14     sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
15     rev = "v${version}";
16     repo = "libcli";
17     owner = "dparrish";
18   };
20   patches = [
21     (fetchurl {
22       url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
23       sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
24     })
25   ];
27   buildInputs = [ libxcrypt ];
29   enableParallelBuilding = true;
31   makeFlags = [
32     "CC=${stdenv.cc.targetPrefix}cc"
33     "AR=${stdenv.cc.targetPrefix}ar"
34     "PREFIX=$(out)"
35   ];
37   env.NIX_CFLAGS_COMPILE = toString [
38     # Needed with GCC 12
39     "-Wno-error=address"
40   ];
42   meta = with lib; {
43     description = "Emulate a Cisco-style telnet command-line interface";
44     homepage = "http://sites.dparrish.com/libcli";
45     license = licenses.lgpl21Plus;
46     platforms = platforms.all;
47   };