Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libcli / default.nix
blob982d34f1bdce4c850120ff8b6e65550e69f8e1b1
1 { lib, stdenv, fetchFromGitHub, fetchurl, libxcrypt }:
3 stdenv.mkDerivation rec {
4   pname = "libcli";
5   version = "1.9.7";
7   src = fetchFromGitHub {
8     sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
9     rev = "v${version}";
10     repo = "libcli";
11     owner = "dparrish";
12   };
14   patches =
15     [ (fetchurl {
16         url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
17         sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
18       })
19     ];
21   buildInputs = [ libxcrypt ];
23   enableParallelBuilding = true;
25   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "AR=${stdenv.cc.targetPrefix}ar" "PREFIX=$(out)" ];
27   env.NIX_CFLAGS_COMPILE = toString [
28     # Needed with GCC 12
29     "-Wno-error=address"
30   ];
32   meta = with lib; {
33     description = "Emulate a Cisco-style telnet command-line interface";
34     homepage = "http://sites.dparrish.com/libcli";
35     license = licenses.lgpl21Plus;
36     platforms = platforms.all;
37   };