libcli: 1.9.7 -> 1.10.7

+20 -19
+20 -19
pkgs/by-name/li/libcli/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - fetchurl, 6 libxcrypt, 7 }: 8 9 stdenv.mkDerivation rec { 10 pname = "libcli"; 11 - version = "1.9.7"; 12 13 src = fetchFromGitHub { 14 - sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c"; 15 - rev = "v${version}"; 16 repo = "libcli"; 17 - owner = "dparrish"; 18 }; 19 20 patches = [ 21 - (fetchurl { 22 - url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch"; 23 - sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl"; 24 }) 25 ]; 26 27 - buildInputs = [ libxcrypt ]; 28 29 enableParallelBuilding = true; 30 31 makeFlags = [ 32 "CC=${stdenv.cc.targetPrefix}cc" 33 "AR=${stdenv.cc.targetPrefix}ar" 34 - "PREFIX=$(out)" 35 ]; 36 37 - env.NIX_CFLAGS_COMPILE = toString [ 38 - # Needed with GCC 12 39 - "-Wno-error=address" 40 - ]; 41 - 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 }; 48 }
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + fetchDebianPatch, 6 libxcrypt, 7 }: 8 9 stdenv.mkDerivation rec { 10 pname = "libcli"; 11 + version = "1.10.7"; 12 13 src = fetchFromGitHub { 14 + owner = "dparrish"; 15 repo = "libcli"; 16 + rev = "V${version}"; 17 + hash = "sha256-ItmZfclx2mprKUOk/MwlS2w4f0ukiiPA5/QaRdGfEO8="; 18 }; 19 20 patches = [ 21 + (fetchDebianPatch { 22 + pname = "libcli"; 23 + version = "1.10.7"; 24 + debianRevision = "2"; 25 + patch = "02-fix-transposed-calloc-args"; 26 + hash = "sha256-lSZeg5h+LUIGa4DnkAmwIEs+tctCYs/tuY63hbBUjuw="; 27 }) 28 ]; 29 30 + buildInputs = [ 31 + libxcrypt 32 + ]; 33 34 enableParallelBuilding = true; 35 36 makeFlags = [ 37 "CC=${stdenv.cc.targetPrefix}cc" 38 "AR=${stdenv.cc.targetPrefix}ar" 39 + "PREFIX=${placeholder "out"}" 40 ]; 41 42 + meta = { 43 description = "Emulate a Cisco-style telnet command-line interface"; 44 + homepage = "https://dparrish.com/pages/libcli"; 45 + license = lib.licenses.lgpl21Plus; 46 + maintainers = with lib.maintainers; [ wegank ]; 47 + platforms = lib.platforms.linux; 48 }; 49 }