libcli: 1.9.7 -> 1.10.7
This commit is contained in:
parent
2bd0a0f92f
commit
a40b4b76ef
@ -2,47 +2,48 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
fetchDebianPatch,
|
||||
libxcrypt,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcli";
|
||||
version = "1.9.7";
|
||||
version = "1.10.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
|
||||
rev = "v${version}";
|
||||
repo = "libcli";
|
||||
owner = "dparrish";
|
||||
repo = "libcli";
|
||||
rev = "V${version}";
|
||||
hash = "sha256-ItmZfclx2mprKUOk/MwlS2w4f0ukiiPA5/QaRdGfEO8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchurl {
|
||||
url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
|
||||
sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
|
||||
(fetchDebianPatch {
|
||||
pname = "libcli";
|
||||
version = "1.10.7";
|
||||
debianRevision = "2";
|
||||
patch = "02-fix-transposed-calloc-args";
|
||||
hash = "sha256-lSZeg5h+LUIGa4DnkAmwIEs+tctCYs/tuY63hbBUjuw=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ libxcrypt ];
|
||||
buildInputs = [
|
||||
libxcrypt
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"AR=${stdenv.cc.targetPrefix}ar"
|
||||
"PREFIX=$(out)"
|
||||
"PREFIX=${placeholder "out"}"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
# Needed with GCC 12
|
||||
"-Wno-error=address"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Emulate a Cisco-style telnet command-line interface";
|
||||
homepage = "http://sites.dparrish.com/libcli";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.all;
|
||||
homepage = "https://dparrish.com/pages/libcli";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ wegank ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user