Skip to content

Commit 9f372a5

Browse files
authored
idnkit: fix build on gcc-14 & modernize (#384260)
2 parents 2fce603 + 58a975e commit 9f372a5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pkgs/by-name/id/idnkit/package.nix

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,28 @@
55
libiconv,
66
}:
77

8-
stdenv.mkDerivation rec {
8+
stdenv.mkDerivation (finalAttrs: {
99
pname = "idnkit";
1010
version = "2.3";
1111

1212
src = fetchurl {
13-
url = "https://jprs.co.jp/idn/${pname}-${version}.tar.bz2";
14-
sha256 = "0zp9yc84ff5s0g2i6v9yfyza2n2x4xh0kq7hjd3anhh0clbp3l16";
13+
url = "https://jprs.co.jp/idn/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
14+
hash = "sha256-JtBxF2UAQqtGk/DgCWAnXVihvnc+bRPFA7o4RxDz6X4=";
1515
};
1616

1717
buildInputs = [ libiconv ];
1818

19-
meta = with lib; {
19+
# Ignore errors since gcc-14.
20+
# localconverter.c:602:21/607:26/633:26: error: passing argument 2 of 'iconv' from incompatible pointer type
21+
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
22+
23+
meta = {
2024
homepage = "https://jprs.co.jp/idn/index-e.html";
2125
description = "Provides functionalities about i18n domain name processing";
2226
license = {
2327
fullName = "Open Source Code License version 1.1";
2428
url = "https://jprs.co.jp/idn/idnkit2-OSCL.txt";
2529
};
26-
platforms = platforms.linux;
30+
platforms = lib.platforms.linux;
2731
};
28-
}
32+
})

0 commit comments

Comments
 (0)