tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
mldonkey: fix build with gettext 0.25
Weijia Wang
6 months ago
eefa00c5
bb6f9090
+21
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
p2p
mldonkey
default.nix
gettext-0.25.patch
+7
pkgs/applications/networking/p2p/mldonkey/default.nix
···
20
20
hash = "sha256-Dbb7163CdqHY7/FJY2yWBFRudT+hTFT6fO4sFgt6C/A=";
21
21
};
22
22
23
23
+
patches = [
24
24
+
./gettext-0.25.patch
25
25
+
];
26
26
+
23
27
postPatch = ''
24
28
substituteInPlace config/Makefile.in \
25
29
--replace-fail '+camlp4' '${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4'
···
56
60
# https://github.com/ygrek/mldonkey/issues/117
57
61
// lib.optionalAttrs stdenv.cc.isClang {
58
62
CXXFLAGS = "-std=c++98";
63
63
+
}
64
64
+
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
65
65
+
NIX_LDFLAGS = "-liconv";
59
66
};
60
67
61
68
meta = {
+14
pkgs/applications/networking/p2p/mldonkey/gettext-0.25.patch
···
1
1
+
diff --git a/config/configure.in b/config/configure.in
2
2
+
index f2dd838b..e1b5ed47 100644
3
3
+
--- a/config/configure.in
4
4
+
+++ b/config/configure.in
5
5
+
@@ -10,6 +10,9 @@ AC_CONFIG_SRCDIR([Makefile.config.in])
6
6
+
AC_CONFIG_HEADER(config.h)
7
7
+
AC_CONFIG_MACRO_DIR([m4])
8
8
+
9
9
+
+AM_GNU_GETTEXT_VERSION([0.25])
10
10
+
+AM_GNU_GETTEXT([external])
11
11
+
+
12
12
+
CONFIGURE_RUN=yes
13
13
+
CONFIGURE_ARGUMENTS=$ac_configure_args
14
14
+
echo "Arguments to configure: $CONFIGURE_ARGUMENTS"