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